Open melgabay opened 1 year ago
As the error message says, the 'detector' module wasn't not detected.
I think you change your current directory to '/content/AlphaPose'
For example, instead of using os.chdir
, do ! cd /content/Alphapose
and run python3 scripts/demo_inference.py
It didnt helped. I just used the colab's link that is just under Quick Start and I got this error (I changed by the os.chdir by ! cd /content/Alphapose as you advised @nistring
Also for some weird reason, when I ran this collab on another account, it may work but not every time. Do someone knows why?
Hey, were you able to fix this issue?
Did you find the solution?
@JIshanRandika @RohaanA You need to run in on GPU (EC2 instance is the best one)
sometimes, it works alright if you reupload the model (.pth file) alone (assuming you are running this on Colab/online. Upload the model file manually to pretrained_models directory and run the command again.
Please it's an urgent request. When I'm running on Colab import os os.chdir('/content/AlphaPose') ! ls ! python3 /content/AlphaPose/scripts/demo_inference.py --cfg configs/coco/resnet/256x192_res50_lr1e-3_1x.yaml --checkpoint pretrained_models/fast_res50_256x192.pth --indir "/content/drive/MyDrive/Drive/final project/new final project/enfant" --save_img --outdir "/content/drive/MyDrive/Drive/final project/new final project/enfant"
I got this error: Traceback (most recent call last): File "/content/AlphaPose/scripts/demo_inference.py", line 13, in
from detector.apis import get_detector
ModuleNotFoundError: No module named 'detector'
Could someone help me asap, please?? (the path is good and google drive amount is as expected) Thank in advance