Skip to content
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

How can I use my own dataset to train network? #8

Open
pstflw opened this issue Sep 9, 2020 · 5 comments
Open

How can I use my own dataset to train network? #8

pstflw opened this issue Sep 9, 2020 · 5 comments

Comments

@pstflw
Copy link

pstflw commented Sep 9, 2020

Hello. First of all, thank you for the great work. I'm so impressed by this project and trying to use my own dataset to train this network. However, I have no idea about making my dataset to json file that 'train.py' can read. How should I process my dataset? Thank you.

@pstflw pstflw closed this as completed Sep 9, 2020
@pstflw pstflw reopened this Sep 10, 2020
@pstflw
Copy link
Author

pstflw commented Sep 10, 2020

Sorry for reopening this again. I thought I could solve my problem by refering #4 but I failed. I used Openpose to make my own dataset into skeleton json file, and a lot of keypoints json files came out. How can I process these keypoints json files to train network? I checked data_usage.ipynb but i wasn't able to find answer. Thank you.

@wtnan2003
Copy link

Same question.
@xrenaa @pstflw
If I have a music file and openpose result json file,
What should I do to create json file like the "ballet_revised_pose_pairs.json" ?
It seems to encode the music to audio_sequence.

Any help would be appreciated

@xrenaa
Copy link
Owner

xrenaa commented Nov 4, 2020

@wtnan2003 Please refer to dataset_usage. This is the structure of the json file and indicates how to load the json file. Acutally, you can just split the music and openpose file into 5s pieces and then pair them.

@wtnan2003
Copy link

@xrenaa Thanks for the quick reply!

I still got some questions about the dataset_usage:

  1. joint_coors shape is (100, 18, 2) in 10s, which means dance video is 10 fps ? so the meaning of shape is (frames, joints, joint_coors)?

  2. code: x_coor=(temp_pose[:,:,0]/320)-1 is for normalization?

  3. code: slices1=d[0:80000].view(50,1600) cut 10s pieces into 5s, but why shape to (50,1600)? just to pair the shape of joint?

Thanks

@aryanna384
Copy link

@wtnan2003 Please refer to dataset_usage. This is the structure of the json file and indicates how to load the json file. Acutally, you can just split the music and openpose file into 5s pieces and then pair them.

Hi, I have questions about processing audio, all I to do with audio is split it into 5s? Needn't I extract any audio feature such as onset, mel spectrum? And seemly there isn’t such code in processing audio feature?THX!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants