wonjongg / StyleCariGAN

[SIGGRAPH 2021] Official implementation of "StyleCariGAN: Caricature Generation via StyleGAN Feature Map Modulation"
GNU Affero General Public License v3.0
295 stars 53 forks source link

How to generate caricatures from images #19

Closed vonurkilinc closed 4 months ago

vonurkilinc commented 4 months ago

I dont understand how am i suppose to generate caricature from input photos. I downloaded the checkpoint "001000.pt"

When I run test.py --invert_images --ckpt checkpoint/StyleCariGAN/001000.pt

I get the error: RuntimeError: File samples/samples\jeniffer256.pt cannot be opened.

Am I somehow suppose to generate .pt files for each of my Images.

wonjongg commented 4 months ago

Please check the forward and backward slashes. The slash for file path should be properly set according to your OS.

vonurkilinc commented 4 months ago

Thank you but I want to use your weights to create a caricature of a image I provide. How can I achieve this. For each Image it asks for a pt file named imagename.pt how do I create these files if I need them.