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 change the cartoon character? #223

Open
CheungBH opened this issue Apr 30, 2022 · 8 comments
Open

How can I change the cartoon character? #223

CheungBH opened this issue Apr 30, 2022 · 8 comments

Comments

@CheungBH
Copy link

Hello. Thanks for your work.
I successfully ran your demo webcam.sh, which generates a cartoon character like this.
Screenshot 2022-04-30 at 12 06 12
I wonder how to generate such a character, and can I change it? Any there any references about it?

@Arthur151
Copy link
Owner

Here is the guidance
https://github.com/Arthur151/ROMP/blob/master/docs/config_guide.md#mesh_cloth-str
By setting the mesh color, you can change the color of naked mesh or change the cloth/appearance of the mesh.
We provide a wordrobe for you to choose.

@CheungBH
Copy link
Author

Thank you for your reply. I saw the constants.
And I wonder where are the parameters controlling the current color?

@Arthur151
Copy link
Owner

Set it at

mesh_cloth: '001' # 'random' #

It incluence the code at

def create_smpl_mesh():

@CheungBH
Copy link
Author

Thank you. I have successfully change the character clothes.
By the way, I wonder how to generate the .jpg files in the model_data/wardrobe? Are there any tools you are using?

@Arthur151
Copy link
Owner

Those are texture UV maps of SMPL mesh.
Some of those are obtained from
https://github.com/bharat-b7/MultiGarmentNetwork#dress-smpl-body-model-with-our-digital-wardrobe

@CheungBH
Copy link
Author

CheungBH commented Apr 30, 2022

Thank you so much!
I ran your demo and it works. However, I can only see one person even I am inputting a multiple people video. Are there any limitations on showing multiple people?
My target is that I want to read different video sources, and then merge the extracted human mesh into one image. How do you think of its feasibility?

@Arthur151
Copy link
Owner

Arthur151 commented Apr 30, 2022

Please set the config setting

show_largest: False

Besides, I think it is highly feasible.

@CheungBH
Copy link
Author

CheungBH commented May 1, 2022

Thank you for your help! Maybe I have achieved.
BTW, I found that the inference is two times lower when feeding 2 videos, which results from inferring with the function forwarding single image twice.

def single_image_forward(self,image):

In this situation, I want to achieve inference with a batch of multiple images and obtain multiple outputs instead.
Are there any functions provided? I think it may be contained in the train or validation functions?

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