CLRNet icon indicating copy to clipboard operation
CLRNet copied to clipboard

Test on a single input image

Open hthanhle opened this issue 2 years ago • 7 comments

Anyone can show me how to run the code to test on a single input image? Any comments and suggestions would be much appreciated.

hthanhle avatar Aug 31 '22 23:08 hthanhle

https://github.com/Turoad/lanedet/blob/main/tools/detect.py

farhuaa avatar Sep 06 '22 08:09 farhuaa

Thanks so much. It's really helpful.

hthanhle avatar Sep 06 '22 23:09 hthanhle

It seems that the model works well with images from the dataset used for training (see the following screenshot). image

However, it does not work with real images (see the following screenshot). image

Could anyone give me any suggestions?

hthanhle avatar Sep 08 '22 01:09 hthanhle

I met the same problem. I think it is the image size problem. I resize my images to 1280*720 like tusimple and I get the right output. If you don't resize, it won't come out an error but the result of detect.py is not right.

mengxia1994 avatar Sep 20 '22 09:09 mengxia1994

Thanks for your comments, @mengxia1994.

I already resized the input image to 1280 x 720, but it does not work (see the 2nd image in my previous post). Following is my configuration:

  • Config: 'configs/clrnet/clr_resnet18_tusimple.py'
  • Weights: 'tusimple_r18.pth'

Could you please tell me how you can resolve the problem?

Also, I found that the parameter 'cut_height' is really tricky, that is only applicable for the existing datasets. What is the appropriate value if we test on a new image?

hthanhle avatar Sep 21 '22 03:09 hthanhle

Custom data was available for CLRNet by setting 'cut_height = 0' in configs/clrnet/

jinhoyoho avatar Aug 16 '23 17:08 jinhoyoho

您好,我已收到您的邮件,我将尽快查阅并给予回复,谢谢!(孟夏的自动回复)

mengxia1994 avatar Aug 16 '23 17:08 mengxia1994