question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ModuleNotFoundError: No module named 'captioning.modules'

See original GitHub issue

Hi @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:closed
  • Created 3 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
ruotianluocommented, Oct 2, 2020

you can run pip install -e . under the root directory.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found