MVIG-SJTU / AlphaPose

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

Stuck in "Loading Yolo model" #815

Open PEACEandSAFE opened 3 years ago

PEACEandSAFE commented 3 years ago

when run demo_inference.py , it is stuck in "Loading Yolo model" and ''loading pose model'' shows 0%. 1

hsauod commented 3 years ago

same error anyone could help? thank you.

korin-lf commented 3 years ago

same problem: stock on Loading pose model

cmc370 commented 3 years ago

@korin-lf How did you solve it?

EmbeddedAndMore commented 3 years ago

download it from: https://pjreddie.com/media/files/yolov3-spp.weights and put it in detector/yolo/data

WyattAutomation commented 3 years ago

It wasn't clear on local setup instructions that vanilla yolov3 weights are a dependency--I saw this error but assumed it was a module the demo script uses that just failed to download it (not seeing any docs on it on it made me think it was a download script or path error). Sorry if it is in the docs and I just didn't see it, hopefully an easy fix.

lawo123 commented 2 years ago

download it from: https://pjreddie.com/media/files/yolov3-spp.weights and put it in detector/yolo/data

放到下面之后会报这个错: File "/data/zhoumeng/pose/AlphaPose/detector/yolo/darknet.py", line 488, in load_weights conv_weights = conv_weights.view_as(conv.weight.data) RuntimeError: shape '[512, 256, 3, 3]' is invalid for input of size 56654

SMY19999 commented 1 year ago

I have solve this problem by adding the root directory. Locate and Go to the code by terminal output , then add code to complete the file_path with the absolute one. cfgfile_root = '/xxx/xxx/xxx/Alphapose' file = open(os.path.join(cfgfile_root,cfgfile),'r') which can solve any problem like this.