anvoynov / GANLatentDiscovery

The authors official implementation of Unsupervised Discovery of Interpretable Directions in the GAN Latent Space
416 stars 52 forks source link

Using the load_from_dir function #42

Open itayreznik opened 1 year ago

itayreznik commented 1 year ago

Hi Andrey! I need to load the trained generator to my project. So I cloned your repo, everything goes according to plan, but I'm having trouble using the load_from_dir function (loading.py file). I'm providing the path of my G_ema.pth file. Then the load_from_dir function concatenates 'args.json' to this path. And then there is an error that says this directory does not exist. What am I missing? What path do I need to provide when I'm calling the function?

Thanks :)