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 the size of tgt_pose when inference #59

Open
gouchaonijiao opened this issue Dec 26, 2023 · 7 comments
Open

about the size of tgt_pose when inference #59

gouchaonijiao opened this issue Dec 26, 2023 · 7 comments

Comments

@gouchaonijiao
Copy link

Hello! Your work is very impressive,but I wonder why the image and tgt_tensor are scaled to 256*256? And how I get other size of tgt_tensor like (256,512). Wish your reply!

@ankanbhunia
Copy link
Owner

You can get the other sizes using this code: #27 (comment).

You may also try resizing the existing pose files to your desired size (using Image.NEAREST in PIL library). Not sure though if it would work.

@gouchaonijiao
Copy link
Author

WOMEN-Jackets_Coats-id_00001705-05_1_front

Thanks for your reply! But the problem is when change the shape of tgt_tensor(the parameter of "get_tgt_tensor.py"), it seems weird.
I've also tried to extract openpose coordinate in size of (512,256),but was still not work.
Or is there any method to transform openpose(image,not coordinate) into tgt_tensor since the image is visualized by the first 3 channels of tgt_tensor?

@ankanbhunia
Copy link
Owner

fixed one bug in the code. You can try it now. #27 (comment).

@gouchaonijiao
Copy link
Author

Thanks for your answer,I'll adjust the code into my desired size then. Thanks again!

@gouchaonijiao
Copy link
Author

Hello! Sorry to bother you again. I wonder know why you resize the image into (256,256) first when inference.? The generated image will undergo deformation or can you tell me which image size produces the best results?

@ankanbhunia
Copy link
Owner

Because the model was trained with (256, 256)-resized images, the resizing does not have any effect on the final output. Also, at the end, you resize the output back to its original dimension.

@gouchaonijiao
Copy link
Author

I sincerely appreciate your patient answer and wish you complete more outstanding work in the future!

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