Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

predict on cityscapes/predict on different size #175

Open
thesun9999 opened this issue Mar 8, 2024 · 3 comments
Open

predict on cityscapes/predict on different size #175

thesun9999 opened this issue Mar 8, 2024 · 3 comments

Comments

@thesun9999
Copy link

您好,我用下载的模型在cityscapes数据集上做预测的时候遇到一点问题,结果只显示一半的车道线,我猜想是因为输入尺寸变化了,请问要在哪里修改一下吗?
命令:python tools/vis/lane_img_dir.py --image-path=/home/thesun/PointPainting-master/lineseg/test_data/05181432_02031.MP4 --image-suffix=.png --save-path=/home/thesun/PointPainting-master/lineseg/my_output/output_culane/driver_37_30frame/05181432_02031.MP4 --pred --config=/home/thesun/PointPainting-master/lineseg/configs/lane_detection/scnn/vgg16_culane.py --checkpoint=/home/thesun/PointPainting-master/lineseg/pt/vgg16_scnn_culane_20210309.pt --style=line
2024-03-08 20-37-09屏幕截图
2024-03-08 20-36-34屏幕截图

@voldemortX
Copy link
Owner

@thesun9999 推理应该是resize做的,这个可能和数据集的bias有关,比如训练数据某个高度以上没有车道线。你可以尝试把车道线数据集可视化正常的图片做成cityscapes的size,看看是否正常

@voldemortX
Copy link
Owner

如果也不正常,那确实可能是个可调整的bug

@thesun9999
Copy link
Author

@thesun9999 推理应该是resize做的,这个可能和数据集的bias有关,比如训练数据某个高度以上没有车道线。你可以尝试把车道线数据集可视化正常的图片做成cityscapes的size,看看是否正常

感谢回复!我先把cityscapes的图像resize一下看看能不能解决

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants