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 generate using your own sketches? #11

Open
adelorenz opened this issue Feb 2, 2022 · 6 comments
Open

How to generate using your own sketches? #11

adelorenz opened this issue Feb 2, 2022 · 6 comments

Comments

@adelorenz
Copy link

Is it possible to generate cats by providing my own sketches? Looking at the code it seems that all sketches are hardcoded, but maybe I'm missing something.

@PeterWang512
Copy link
Owner

Yes, feel free to create you own sketches using some drawing softwares and save them into png files. You can select a similar stroke size as the ones in the released dataset

@adelorenz
Copy link
Author

Glad to hear that, but how? Taking a look at generator.py I'm not able to understand how I can pass my own sketches. I would like to draw my own cat and apply your model, but how to do it is not described (or, probably, I'm missing something)

@PeterWang512
Copy link
Owner

Actually, you might want to look into our example training script. For example, this one: https://github.com/PeterWang512/GANSketching/blob/main/scripts/train_authorsketch_ffhq0.sh

Changing --dataroot_sketch to your own sketches could work. You need to make a folder of your own sketches, and to do that you can check how the released dataset is organized.

@adelorenz
Copy link
Author

adelorenz commented Feb 16, 2022 via email

@gorkeygorkem
Copy link

Did you manage to do it? If you did, can you explain how?

@PeterWang512
Copy link
Owner

For example, for the models shown in the teaser figure, we created the sketches using MS paint. But you can use other sketching tool to create your own sketches.

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

3 participants