MVIG-SJTU / AlphaPose

Real-Time and Accurate Full-Body Multi-Person Pose Estimation&Tracking System
http://mvig.org/research/alphapose.html
Other
8.06k stars 1.98k forks source link

ModuleNotFoundError: No module named 'detector' #1170

Open RohaanA opened 1 year ago

RohaanA commented 1 year ago

I'm currently facing this issue after installing AlphaPose myself by following the instructions provided on the INSTALL.md page.

I am using Google Colab with Conda configured for Python v3.7

image

As you can see in the image, the output of pwd gives me /content/AlphaPose but the script fails to find the detector module.

I have downloaded the yolo and yolox weights and placed them in their corresponding directories (AlphaPose/detector/yolo/data/weights)

image
RohaanA commented 1 year ago

bump?

ypilseong commented 1 year ago

I had the same error. but It worked well when I added this code sys.path.append('.') to demo_inference.py

2391572070 commented 3 months ago

在你导入detector模块之前,加上“import os,sys” 和“sys.path.append(os.getcwd())”,就可以了