zh-plus / video-to-pose3D

Convert video to 3D pose in one-key.
MIT License
646 stars 130 forks source link

im_names referenced before assignment #5

Closed Adblu closed 5 years ago

Adblu commented 5 years ago

(pose) D:\PYTHON\pose_detection>python videopose.py outputs/dance.mp4 --- elapsed time: 3.8129527000000003 s Traceback (most recent call last): File "videopose.py", line 164, in inference_video('outputs/dance.mp4', 'alpha_pose') File "videopose.py", line 160, in inference_video main(args) File "videopose.py", line 69, in main keypoints = detector_2d(video_name) File "D:\PYTHON\pose_detection\joints_detectors\Alphapose\gene_npz.py", line 67, in handle_video data_loader = ImageLoader(im_names, batchSize=args.detbatch, format='yolo').start() UnboundLocalError: local variable 'im_names' referenced before assignment

Do you have any idea why this is happens ?

zh-plus commented 5 years ago

The im_names is not properly initialized at here. Try to set a breakpoint there and check if there is any bug caused by typo in video path.