MobileNet-YOLO icon indicating copy to clipboard operation
MobileNet-YOLO copied to clipboard

Cityscape inference issue

Open didibaba opened this issue 6 years ago • 3 comments

Dear author,

I was using the default settings and pretrained model with c++ given here https://github.com/eric612/MobileNet-YOLO/tree/master/data/cityscapes. The result seems to be wrong. However, I can obtain correct result with detect_and_segmentation.py. Is there anything that I missed to set in the program?

Thanks a lot!

Screenshot from 2020-02-29 00-26-48 Screenshot from 2020-02-29 00-27-10

didibaba avatar Feb 28 '20 16:02 didibaba

It looks like a resolution problem , the default mean , scale and input resolution were different between bdd100k and cityscapes model . The default parameter is 'bdd100k' in detect_and_segment.py

eric612 avatar Mar 02 '20 03:03 eric612

Just setting the seg_resize_scales to 8 solved my problem.

didibaba avatar Mar 03 '20 04:03 didibaba

@eric612 I tried to change the seg_resize_scales to 4, but error occured.

65 yolo_seg.cpp:33] Check failed: bottom[0]->count() == bottom[1]->count() (46208 vs. 184832) YoloSeg layer inputs must have the same count.

Could you show me how to make this work? Thanks.

didibaba avatar Mar 06 '20 03:03 didibaba