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

correct dimension for testing on custom dataset #65

Open
maryamag85 opened this issue Dec 8, 2022 · 3 comments
Open

correct dimension for testing on custom dataset #65

maryamag85 opened this issue Dec 8, 2022 · 3 comments

Comments

@maryamag85
Copy link

maryamag85 commented Dec 8, 2022

I am trying to run the try on module on my own dataset however I am not sure about the correct dimension of the input images and masks etc. what should be the target and also dataset dimnesion in demo file
(ds = Dataset(dataroot=dataroot, dim=(?,?), n_human_part=8)

with my own dimensions that I set org_size = 750,110, like sample images and target_size=256,176 as the template is I get following output on my own images
image
Please help me figure out the issue
It would be great if you provide a more detailed manual for preparing the custom dataset. like if resizing is needed and how to bring keypoints from 25 to 18. I have followed and read all the issues and I saw the template you provided for loading from pose.json file however even if I load from json I still need to set kepoints in the standard_test_anns.txt. it is confusing how to get the correct 18 keypoints out of 25 and how to set that file . your input is appreciated.

Thanks

@cuiaiyu
Copy link
Owner

cuiaiyu commented Dec 8, 2022

Can you visualize the keypoints?

@maryamag85
Copy link
Author

maryamag85 commented Dec 12, 2022

the keypoints are visualized correctly on the custom image. My confusion is about how to set the image dimensions. when I visualize the sample images keypoints in the provided dataset , keypoints are in the 176*256 dimension however original set are 750 * 1101 dimension. Is it possible for you to provide a clear instruction for data preparation to avoid confusion. my dimensions are the issue I guess.

@netsalesbg-ltd
Copy link

@maryamag85 I suggest first resizing the original image to 176x256 and then running open pose on COCO model to get the correct keypoints.

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

3 participants