It turns out your code seems to add a semantic_inference folder before the desired path and gave an error:
FileNotFoundError: [Errno 2] No such file or directory: 'semantic_inference/../outputs/semantic_output1.jpg'
If I change my command into ... --output semantic_out1.jpg, the error would be eliminated and the file will be saved to be semantic_inference/semantic_out1.jpg.
Not quite a big deal but just to report the found error.
Looking forward to any update of your work.
Hi there, Appreciate you effort in research work of OneFormer.
I have tried your demo.py code recently and noticed there is some problem of creating an output.
My command was:
python demo.py --input input_img.jpg \ --output ../outputs/semantic_output1.jpg \ --task semantic \ --opts MODEL.IS_TRAIN False MODEL.IS_DEMO True MODEL.WEIGHTS ../weights/swin_large_patch4_window12_384_22k.pkl
It turns out your code seems to add a
semantic_inference
folder before the desired path and gave an error:If I change my command into
... --output semantic_out1.jpg
, the error would be eliminated and the file will be saved to besemantic_inference/semantic_out1.jpg
.Not quite a big deal but just to report the found error. Looking forward to any update of your work.