BiSeNet
BiSeNet copied to clipboard
images in kitti dataset cannot match
I want to implement the algorithm in kitti dataset. But it shows that the codes cannot match kitti dataset's images' size.
CUDA_VISIBLE_DEVICES=0 python3 demo.py --ckpt res/model_final.pth --img_path ./2.png
Traceback (most recent call last):
File "demo.py", line 39, in
I dont know if you can spare some time to fix this problem. Thank you.
The reason is likely to be that your image is an one-channel image, likely to be gray. I have added a bit fix, you can try again.
It worked.thx By the way, last question you suggested me to chang the code in demo.py from fp16.model import BiSeNet to from model import BiSeNet. Maybe you can change your code in demo.py in your repo, and prevent others from meeting the same error .