-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No module named 'detectron2' #13
Comments
I am also having trouble with the installation. The instructions don't appear to be up to date with the repository contents. However, your statement
Merely cloning the repository would not be enough. You clone, navigate to repo directory, then run However, when I tried that there are issues with compiling binaries using ninja. A copy of CenterNet2 seems to exist in this repository here however, it's INSTALL instructions mention detectron2 again, and it includes a yet another copy of detectron2 making it seem like the need to clone dectron2 is old instruction
Build tool versions
Maybe there are prebuilts for centernet |
I wanted to add some more information. I think the instructions below are out of date
The GRiT repo now directly includes a copy of detectron2 with centernet project copied I think the updated instructions would be something like: Clone Repo git clone https://github.com/JialianW/GRiT.git
cd GRiT
pip install -r requirements.txt Install included version of detectron cd third_party/CenterNet2
pip install -e .
cd ../.. Also, I previously mistakenly though Lines 13 to 14 in 39b33db
So after installing the copy of detectron within CenterNet2 it should work |
Despite the fact that I cloned the detectoron2 repository
Traceback (most recent call last):
File "D:\Python\VisionGRIT\GRiT\demo.py", line 9, in
from detectron2.config import get_cfg
ModuleNotFoundError: No module named 'detectron2'
The text was updated successfully, but these errors were encountered: