ModuleNotFoundError: No module named 'captioning.modules'
See original GitHub issueHi @ruotianluo,
I am trying to use the pretrained model to perform evaluation on my own images.
when I run the command python tools/eval.py --model model.pth --infos_path infos.pkl --image_folder blah --num_images 10
, I encounter this error:
Warning: coco-caption not available Traceback (most recent call last): File “tools/eval.py”, line 19, in <module> import captioning.modules.losses as losses ModuleNotFoundError: No module named ‘captioning.modules’
I see that captioning has several other modules (models, data, utils) which are being imported fine. But modules are not. Can you please take a look? Thanks!
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
No module named 'caption.models.selfcritic' · Issue ... - GitHub
ModuleNotFoundError : No module named 'caption.models.selfcritic' #10 ... It doesn't matter because I do not use self critical reinforcement ...
Read more >No module named Image - python - Stack Overflow
1) make sure it is available python -m pip install Image · 2) where is it available? sudo find ~ -name image -type...
Read more >How To Fix ModuleNotFoundError (No Module Named) in ...
One common cause of the ModuleNotFoundError: No module named error is simply that the module you're trying to import doesn't exist. This can...
Read more >ModuleNotFoundError: No module named 'markdown-captions'
Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'markdown-captions' How to remove the.
Read more >pycaption - PyPI
pycaption is a caption reading/writing module. Use one of the given Readers to read content into a CaptionSet object, and then use one...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
You can try add sorting here https://github.com/ruotianluo/ImageCaptioning.pytorch/blob/master/captioning/data/dataloaderraw.py#L79
you can run
pip install -e .
under the root directory.