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

Code for sampling new synthetic data #3

Closed
emanhamed opened this issue Sep 27, 2018 · 4 comments
Closed

Code for sampling new synthetic data #3

emanhamed opened this issue Sep 27, 2018 · 4 comments
Assignees
Labels
enhancement New feature or request

Comments

@emanhamed
Copy link

Can you please provide the code to show an example of how to sample new synthetic data by sampling from the latent space?

Thanks in Advance.

@anuragranj
Copy link
Owner

I will soon write a doc on this. But this is what you need:
https://github.com/anuragranj/coma/blob/master/lib/visualize_latent_space.py

This is called if you run
python main.py --data data/sliced --name sliced --mode latent

and you can use the keys qwertyui to navigate forward into each dimension of the latent space and the keys asdfghjk to navigate backward. The step is decided by constant 1.01 and 0.99 in the code of visualize_latent_space.py.

@anuragranj
Copy link
Owner

Fixed in 643b234

@emanhamed
Copy link
Author

Hi @anuragranj
I have tried the command you mentioned but it is showing only one mesh! either, the keys qwertyui and asdfghjk are not working! or it is not generating new synthetic data. what do you think?

Also, in the display, after decoding the latent vector and getting the reconstructed mesh. How are you getting the connectivity list for showing the final 3D face?

Thank you so much for your help

@anuragranj
Copy link
Owner

anuragranj commented Sep 30, 2018

The demo shows how you can sample around a particular face. So, pressing those keys will sample a face that is near the original face. To see the difference, you need to press the keys multiple times to navigate far way from the original face. You can modify, lib/visualize_latent_space.py to be more flexible.

For displaying reconstructions, we use FaceData.show_mesh() from facemesh.py

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants