facebookresearch / detectron2

Detectron2 is a platform for object detection, segmentation and other visual recognition tasks.
https://detectron2.readthedocs.io/en/latest/
Apache License 2.0
30.16k stars 7.43k forks source link

Unable to load weights #4151

Closed PrakharPrashantSingh closed 2 years ago

PrakharPrashantSingh commented 2 years ago

i am using the official github repo, downloaded and setup detectron2 successfully but it is not able to load ".pkl" file, one solution that i found out is to download these pkl file and run, its working for "testwindows

install.py" file

but i am not able to download other weights like- detectron2://COCO-InstanceSegmentation/mask_rcnn_R_50_FPN_3x/137849600/model_final_f10217.pkl

what to do in this scenario, i am on windows 10

Thanks

error output- File "C:\Users\Prashant\Anaconda3\envs\detectron\lib\site-packages\fvcore\common\checkpoint.py", line 153, in load assert os.path.isfile(path), "Checkpoint {} not found!".format(path) AssertionError: Checkpoint detectron2://ImageNetPretrained/MSRA/R-50.pkl not found!

github-actions[bot] commented 2 years ago

You've chosen to report an unexpected problem or bug. Unless you already know the root cause of it, please include details about it by filling the issue template. The following information is missing: "Instructions To Reproduce the Issue and Full Logs"; "Your Environment";

PrakharPrashantSingh commented 2 years ago

hi,

please look into this ...

command used-> python demo.py --config-file ../configs/COCO-InstanceSegmentation/mask_rcnn_R_50_FPN_3x.yaml --input capture.PNG --opts MODEL.WEIGHTS detectron2://COCO-InstanceSegmentation/mask_rcnn_R_50_FPN_3x/137849600/model_final_f10217.pkl

error output-> assert os.path.isfile(path), "Checkpoint {} not found!".format(path) AssertionError: Checkpoint detectron2://COCO-InstanceSegmentation/mask_rcnn_R_50_FPN_3x/137849600/model_final_f10217.pkl not found!

so basically program is not able to load the model pkl file, i am on windows, what to do in this scenario..

Thanks

ppwwyyxx commented 2 years ago

You've chosen to report an unexpected problem or bug. Unless you already know the root cause of it, please include details about it by filling the issue template. The following information is missing: "Instructions To Reproduce the Issue and Full Logs"; "Your Environment";

github-actions[bot] commented 2 years ago

Requested information was not provided in 7 days, so we're closing this issue.

Please open new issue if information becomes available. Otherwise, use github discussions for free-form discussions.

zsj8991 commented 2 years ago

Hi,I run this command,then run 'demo' successfully

pip install fvcore==0.1.1.dev200512

PrakharPrashantSingh commented 2 years ago

Hi,I run this command,then run 'demo' successfully

pip install fvcore==0.1.1.dev200512

yes bro, you were right.. it worked!!

thanks

iwannabewater commented 1 year ago

Hi,I run this command,then run 'demo' successfully

pip install fvcore==0.1.1.dev200512

thanks bro!!

gt8mar commented 1 year ago

Detectron2 now requires fvcore>=0.1.2, which version should I install now?