Faster-rcnn.pytorch: why demo.py and test_net.py make different results

Created on 28 Aug 2018  路  4Comments  路  Source: jwyang/faster-rcnn.pytorch

the same picture have different detect result using demo.py and test_net.py,why?

Most helpful comment

I solved this by calling _get_image_blob before the rgb -> bgr conversion.
https://github.com/jwyang/faster-rcnn.pytorch/blob/31ae20687b1b3486155809a57eeb376259a5f5d4/demo.py#L274

Hope this helps!!

All 4 comments

@Gr1tee can you show us an example?

Same here. Loaded the same model and the same video, but got different outputs. The test_net.py results seem more reasonable. I was wondering if the image loading is different?

I solved this by calling _get_image_blob before the rgb -> bgr conversion.
https://github.com/jwyang/faster-rcnn.pytorch/blob/31ae20687b1b3486155809a57eeb376259a5f5d4/demo.py#L274

Hope this helps!!

@jrcai thank you so much. I've been trying to figure out this problem for months.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

manoja328 picture manoja328  路  3Comments

CJMenart picture CJMenart  路  4Comments

ZhangJiajun1995 picture ZhangJiajun1995  路  5Comments

wanghan0501 picture wanghan0501  路  4Comments

HaiminZhang picture HaiminZhang  路  3Comments