zju3dv / EasyMocap

Make human motion capture easier.
Other
3.71k stars 457 forks source link

Missing file in Easymocap.estimator for DEMO #317

Closed Dipankar1997161 closed 1 year ago

Dipankar1997161 commented 1 year ago

Hello @chingswy,

I ran the following code "extract_video.py" as seen in the demo for my own dataset. I have the videos as well as the Intri and Extri .yml files. I am using Yolo-hrnet mode, and the images were extracted but further process stopped https://github.com/zju3dv/EasyMocap/blob/b44fa3c90b6bbdb3b3fece87fc891cbf154c99f8/scripts/preprocess/extract_video.py#L204

ImportError: cannot import name 'Detector' from 'easymocap.estimator' (/home/ndip/EasyMocap/easymocap/estimator/init.py)

Files under Estimator: Screenshot 2023-05-26 184314

I have install yolo with the weights under data/models Screenshot 2023-05-26 183140

for Installing Easymocap - I have the Quick installation guide from your webpage. "https://chingswy.github.io/easymocap-public-doc/install/install.html#install-easymocap-quickly"

Looking forward to hearing from you. Thank you

chingswy commented 1 year ago

I'll check it.

Dipankar1997161 commented 1 year ago

Thank you @chingswy, I will be waiting 😇

One more thing, since I also using the ground truth 3d keypoints to generate the smpl directly from your demo file: "_smpl_fromkeypoints.py" to test with the Above method.

Should there will be separate .JSON file for every frame for each camera, or One JSON file should have all the dictionaries of frames in it.

Eg1: idx_1.json, idx_2.json ..... for camera 1, then for camera 2 OR {Cam_1: {idx: 1, Keypoints3d:}, {idx: 2, Keypoints3d:}....} - camera 1.json, similary for camera2.json with {Cam_2: {idx: 1, Keypoints3d:}, {idx: 2, Keypoints3d:}....}

Which would you advise. Have a great day

chingswy commented 1 year ago

Hello, I'll update a new script for this function.

Dipankar1997161 commented 1 year ago

Hello, I'll update a new script for this function.

Thank you so much for this

jpalachniak commented 1 year ago

Hello, I'll update a new script for this function.

Thank you so much for this

Hello, I still have the same problem. Any cues?

Still ImportError: cannot import name 'Detector' from 'easymocap.estimator'

Dipankar1997161 commented 1 year ago

Hello, I'll update a new script for this function.

Thank you so much for this

Hello, I still have the same problem. Any cues?

Still ImportError: cannot import name 'Detector' from 'easymocap.estimator'

I think it isn't updated yet. So you can either use Openpose for the 2d estimation from here. Or extract the 2d joints from another repo and then do the remaining processing from here just make sure to have 25 joints in total

chingswy commented 1 year ago

Please check the new interface here