MIL.pytorch icon indicating copy to clipboard operation
MIL.pytorch copied to clipboard

ImportError: No module named coco_voc

Open tamkaho opened this issue 6 years ago • 4 comments

In line 126 of utils.py, when trying to load coco_valid1_eval.pkl, it returns an error message

"ImportError: No module named coco_voc"

What version of pickle have you got?

tamkaho avatar Apr 24 '18 20:04 tamkaho

Maybe you should import "coco_voc.py"

gujiuxiang avatar Apr 29 '18 16:04 gujiuxiang

hello, i have the same problem. Did you @tamkaho @gujiuxiang solve it ? looking for your reply

liuxx2016 avatar May 20 '18 07:05 liuxx2016

Here is my solution:

  1. delete ''coco_voc.py'' in this repo.
  2. copy ''coco_voc.py'' (in https://github.com/s-gupta/visual-concepts) into this repo.
  3. Install coco-api in this repo.
  4. copy folder ''pycocotools'' to ./
  5. rename ''pycocotools'' to ''pycoco''

Cranooooooo avatar Jan 02 '19 08:01 Cranooooooo

Thank you @Cranooooooo, it works.

ynuwm avatar May 22 '20 09:05 ynuwm