AlphaPose icon indicating copy to clipboard operation
AlphaPose copied to clipboard

No module named 'detector'

Open melgabay opened this issue 1 year ago • 6 comments

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

melgabay avatar Mar 30 '23 02:03 melgabay

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

nistring avatar Apr 01 '23 13:04 nistring

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

Capture d’écran 2023-04-02 à 21 01 18

Also for some weird reason, when I ran this collab on another account, it may work but not every time. Do someone knows why?

melgabay avatar Apr 02 '23 18:04 melgabay

Hey, were you able to fix this issue?

RohaanA avatar Aug 21 '23 17:08 RohaanA

Did you find the solution?

JIshanRandika avatar Jul 28 '24 09:07 JIshanRandika

@JIshanRandika @RohaanA You need to run in on GPU (EC2 instance is the best one)

melgabay avatar Jul 28 '24 12:07 melgabay