GANSketching icon indicating copy to clipboard operation
GANSketching copied to clipboard

How to generate using your own sketches?

Open adelorenz opened this issue 4 years ago • 6 comments

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.

adelorenz avatar Feb 02 '22 09:02 adelorenz

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

PeterWang512 avatar Feb 15 '22 22:02 PeterWang512

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)

adelorenz avatar Feb 16 '22 08:02 adelorenz

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.

PeterWang512 avatar Feb 16 '22 23:02 PeterWang512

Tnx, I will check and let you know!

Il gio 17 feb 2022, 00:46 Sheng-Yu Wang @.***> ha scritto:

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.

— Reply to this email directly, view it on GitHub https://github.com/PeterWang512/GANSketching/issues/11#issuecomment-1042417513, or unsubscribe https://github.com/notifications/unsubscribe-auth/AC4TPLQW3XMLNBGPOZRWAFTU3QZONANCNFSM5NLP75UQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you authored the thread.Message ID: @.***>

adelorenz avatar Feb 16 '22 23:02 adelorenz

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

gorkeygorkem avatar Feb 23 '22 12:02 gorkeygorkem

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.

PeterWang512 avatar Feb 23 '22 18:02 PeterWang512