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 to test own dataset on Demo.py #26

Open
TharHtetAungg opened this issue May 23, 2023 · 7 comments
Open

how to test own dataset on Demo.py #26

TharHtetAungg opened this issue May 23, 2023 · 7 comments

Comments

@TharHtetAungg
Copy link

Hello, I want to try my own dataset to test regressor. Which process that I need to do first before I run on regressor? Do I need to run openpose and get json format first? And also image size is only 300 450 px ?

I run my own image and got this error : ValueError: all the input array dimensions for the concatenation axis must match exactly, but along dimension 1, the array at index 0 has size 135 and the array at index 1 has size 131

My image is :1920 1080 px but I resize to 300 450 px to match with yours and still have that error.

@neoglez
Copy link

neoglez commented Jul 27, 2023

I have the same problem. It seems that it is not possible to input an in-the-wild image to the network before adding to the target a significant amount of information such as the image can be transformed before it goes into the network.

@muelea
Copy link
Owner

muelea commented Jul 28, 2023

We use OpenPose keypoints to get a person's bounding box which we use to center and crop them. If you have the bounding box already, you can skip this step. To do this, in the data loader, replace kpts_to_bbox() with the bounding box information [xmin, ymin, xmax, ymax]. I still recommend running OpenPose and use the automated bounding box computation, because these bounding boxes will match the ones the model was trained with. You can follow the images and openpose structure in our demo and then run the SHAPY demo.

@neoglez
Copy link

neoglez commented Jul 31, 2023

@muelea Thanks for the helpful information. I will attempt to make a PR with a notebook demonstrating the complete pipeline.

@TharHtetAungg
Copy link
Author

TharHtetAungg commented Aug 3, 2023

@muelea Hi, can I ask about which part of your code can change to T pose ? Could you please show me?

@felixshing
Copy link

@muelea Thanks for the helpful information. I will attempt to make a PR with a notebook demonstrating the complete pipeline.

@neoglez Hey I would like to ask have you successfully done this pipeline that tests own dataset?

@neoglez
Copy link

neoglez commented Jan 12, 2024

@felixshing Ja, I did but I had to make a lot of changes. I'm still trying to double check because the results I obtained are really strange.

@rshtern
Copy link

rshtern commented Jan 29, 2024

Can you explain how to train from an image without openpose?

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

5 participants