ModuleNotFoundError: No module named 'd2go.tools'
See original GitHub issueHi, thanks for your great job. I installed the environment as ReadMe said. No erros during setting up environment. But when I executed the example, I came across an ERROR:
~/d2go$ d2go.train_net --config-file ./configs/faster_rcnn_fbnetv3a_C4.yaml
Traceback (most recent call last):
File "/home/lbc/anaconda3/envs/d2go/bin/d2go.train_net", line 5, in <module>
from d2go.tools.train_net import cli
ModuleNotFoundError: No module named 'd2go.tools'
But in python interpreter environment, it’s fine to import d2go.tools in current directory. It will report the same error in the up-level dir.
~/d2go$ python
Python 3.6.13 |Anaconda, Inc.| (default, Feb 23 2021, 21:15:04)
[GCC 7.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from d2go.tools.train_net import cli
** fvcore version of PathManager will be deprecated soon. **
** Please migrate to the version in iopath repo. **
https://github.com/facebookresearch/iopath
>>>
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
ModuleNotFoundError: No module named 'tools.nnwrap'
It seems command to install torch not is working as expected, instead, you can try to install PyTorch using below command.
Read more >notebook04660a88f4 | Kaggle
Explore and run machine learning code with Kaggle Notebooks | Using data from ... import model_zoo ModuleNotFoundError: No module named 'detectron2'.
Read more >Is there any demo on how to use d2go mask-rcnn model on ...
Hey, I think the d2go demo is already available. ... In case you can not find the demo, D2go demo for android with...
Read more >importerror: cannot import name 'metanet_pb2' from partially ...
ModuleNotFoundError : No module named 'detectron' ... I installed the latest code of d2go according to revision in #137,but still get this error....
Read more >Detectron2 - Object Detection with PyTorch - Gilbert Tanner
The new framework is called Detectron2 and is now implemented in PyTorch instead of ... !python -m pip install pyyaml==5.1 # Detectron2 has...
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 FreeTop 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
Top GitHub Comments
Thanks for your reply. I found other submodules fine, and I checked the submodule dir, and I found the reason is that an empty
__init__.py
file is missing in thetests/
dir. After adding it and installing, everything goes fine.I believe it should use all the available gpus. What’s the behavior on your side?