-
Notifications
You must be signed in to change notification settings - Fork 94
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 convert sketch into fixed_z (.pth file) when running generate.py #27
Comments
I think pix2latent is more suitable when your input is an RGB image. The idea is the get the latent z that captures the texture, color, and background of the image, and then edit the shape by changing the model weights. Hope this helps! |
Thanks for your reply! I am wondering how can I generate an image from a given sketch input by running generate.py, since the samples are generated without user sketch input. I viewed some issues here and found pix2latent is mentioned for getting fixed_z for the input of generate.py, but I still don't know how to get it, for the file type as well as the image size :( |
Our work focuses on creating a model based on a sketch, so you'll need to train a model with the sketch. Instruction is specified in this section: https://github.com/PeterWang512/GANSketching#model-training After that, you will have models that generate infinite images with the same shape and pose as the sketch. Hope this helps! |
I'm confused. I have completed the model training with my sketch. Then after the model is completed, how can I generate images with another sketch(not training sketches) by applying the trained model? In fact, this is what I want to do. |
I tried pix2latent to get fixed_z (.pth file), but met several problems:
Thanks a lot and looking forward to responding.
The text was updated successfully, but these errors were encountered: