-
Notifications
You must be signed in to change notification settings - Fork 274
demo.lua error on some images #18
Comments
@redserpent7 Pay attention to transformer setting on the line https://github.com/facebookresearch/multipathnet/blob/master/demo.lua#L43 . Updates: The transformer problem only exists when model gets changed. If some pictures work fine, it may be that the model just can't "recognize" objects correctly, I guess. |
@samson-wang so how do you determine which transformer to use? I am trying the demo out of the box and as I said it works with most images but some crash |
@redserpent7 In my case, running demo.lua on the image from the test dataset got very tiny score, i.e. ~1.5e-12, for every candidate bounding box. While, the evaluation code is OK. So I track the data flow through both the evaluation and demo process. I find that the kinds of transformers' diff. Since most of your images work fine. I'm not sure if the transformer is the reason. Maybe the model just can't recognize the objects in those images which crash. |
@redserpent7 On this line You can solve this by building idx (a list of indices of the valid detections) yourself. Something like this:
Then you can check if size > 0, and do something else if you have no detections in the image. |
It may be worth noting that the demo will also crash on greyscale images, which are included in the COCO dataset (discovered when testing with the 2014 validation set). Copying to three colour channels solves the problem and seems to have decent results. |
Hi,
I just started with multipathnet and I am having issues with some image files. I have tested with a couple images and the test image provided and everything worked fine but some images just give this error:
Here is the image in question: https://1drv.ms/i/s!Av-Yk52R4YupvKRWWmZUdNd4IAciKg
Any suggestions?
The text was updated successfully, but these errors were encountered: