-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AttributeError: 'NoneType' object has no attribute 'astype' of Wild video #27
Comments
@FinallyKiKi @ClimberXIE # first load your videopose 2d coco points
loaded = np.load('PoseFormer/data/data_2d_custom_myvideos.npz', allow_pickle=True)
data = loaded['positions_2d'].item()
for i in data:
# convert them to human3.6M format
data[i]['custom'][0]=coco_h36m(data[i]['custom'][0])
np.savez_compressed('data_2d_custom_myvideos', positions_2d=data, metadata=loaded['metadata']) |
Thank you for your reply !I have solved the problem now.
…------------------ 原始邮件 ------------------
发件人: "zczcwh/PoseFormer" ***@***.***>;
发送时间: 2022年3月31日(星期四) 中午12:00
***@***.***>;
***@***.******@***.***>;
主题: Re: [zczcwh/PoseFormer] AttributeError: 'NoneType' object has no attribute 'astype' of Wild video (Issue #27)
@Whisht @FinallyKiKi @ClimberXIE
This Net input format is human3.6M's 17 points
You need to change the COCO format 17 points from the detectron2 of VideoPose3d to human3.6M's 17 points
As for the code, click here for reference:
https://github.com/fabro66/GAST-Net-3DPoseEstimation/blob/master/tools/mpii_coco_h36m.py
and then
# first load your videopose 2d coco points loaded = np.load('PoseFormer/data/data_2d_custom_myvideos.npz', allow_pickle=True) data = loaded['positions_2d'].item() for i in data: # convert them to human3.6M format data[i]['custom'][0]=coco_h36m(data[i]['custom'][0]) np.savez_compressed('data_2d_custom_myvideos', positions_2d=data, metadata=loaded['metadata'])
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
@ClimberXIE can you share your wild video inference result if you are free? In my videos the results with gt81f.bin are not good as the example author gives. my email address is [email protected] Thank you!:) update: (my result) |
Hello, |
Hello, |
@Whisht Yes, there is another problem with the code. Please refer to the email for details (In a nutshell, remove inputs_3d from the original code when you use it to visualizations). You need to change the code somewhere. |
thanks for you solution |
I'm trying to infer 3d human pose on custom videos using provided pretrained model (gt81f.bin). I've done the following preprocessing -
Still, I end up with randomly located keypoints. Anything I might be missing?? Also, @AO2233 I'd be grateful if you can please share the email contents (that you shared with @Whisht ) here. |
@safsin Have you recieved their email? It would be kind if you could tell me how you did your preprocessing step 1、2、3, please. |
@TomCatOnline I haven't received any emails yet. These are the preprocessing steps I followed (which doesn't seem to work for me) in detail -
You can also try using https://github.com/paTRICK-swk/P-STMO. It has much better examples and codes for in-the-wild human pose3d detection. Better look into it. |
I was traped by detectron2 output coco format 2d keypoints but don't know how to convert to h36m format, will look into it, thanks for your quick reply! |
|
I follow the instruction
With the same pre-processed video as well as same hyperparameters,
VideoPose3D
runs normally, butPoseFormer
has this bug:It seems the dataloading procedure has some problem.
The text was updated successfully, but these errors were encountered: