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

About data preparation #34

Open
gyawali9 opened this issue Oct 19, 2019 · 1 comment
Open

About data preparation #34

gyawali9 opened this issue Oct 19, 2019 · 1 comment

Comments

@gyawali9
Copy link

Would you explain the steps involved in dataset preparation including the data pairing for training dataset. I want to train my own data. So it would be helpful. Looking for yours positive response.

@charliememory
Copy link
Owner

charliememory commented Oct 23, 2019

Hi, please check the datasets/run_convert_RCV.sh and datasets/convert_RCV.py which accept pose RCV data in the format of <Row, Column, Visibility>. You can use openpose to get these the pose information.

In datasets/convert_RCV.py:

  1. The function _get_train_all_pn_pairs prepares pair data for each person identity, i.e. select all possible pairs of the same identity of different poses (we assume that different images contain different poses).
  2. The function _convert_dataset_one_pair_rec is to transform the data into tf-record format according to the pairs provided by _get_train_all_pn_pairs. And the important function _format_data will use the provided pose RCV data to generate the body mask and body part bbox , and then encode them together will other information like image and attribute into one example by tf.train.Example.

I hope it helps.

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

2 participants