Went-Liang / UnSniffer

[CVPR 2023] Official Pytorch code for Unknown Sniffer for Object Detection: Don’t Turn a Blind Eye to Unknown Objects
https://arxiv.org/pdf/2303.13769v1.pdf
Apache License 2.0
67 stars 9 forks source link

Making inferences with test images #9

Open mswartz2 opened 1 year ago

mswartz2 commented 1 year ago

Has anyone been able to run the pretrained UnSniffer to make inferences with test data? I have tried to import numerous objects and functions from the inference folder, but each time, I getting this partially initialized module error:

ImportError: cannot import name 'GeneralizedRcnnPlainPredictor' from partially initialized module 'UnSniffer.detection.inference.rcnn_predictor' (most likely due to a circular import)

mswartz2 commented 1 year ago

UPDATE: I have been able to get build_predictor(cfg) to import properly, but I am still having issues getting inference to run on an example img.png file.

Went-Liang commented 1 year ago

Could it be that the image is damaged? Or you can try changing it to jpg format.

balazon commented 12 months ago

Maybe related: https://github.com/Went-Liang/UnSniffer/issues/5#issuecomment-1720980597