SummitKwan / transparent_latent_gan

Use supervised learning to illuminate the latent space of GAN for controlled generation and edit
MIT License
1.97k stars 363 forks source link

Generate Noise from Image #24

Open akashdexati opened 4 years ago

akashdexati commented 4 years ago

Hi @SummitKwan Thanks for setting up the kaggle demo of your project. The project is just awesome & works great with the random images.

I see that the 'Gs' parameter fetched in below lines of code G, D, Gs = pickle.load(file) is being used to generate image from noise.

Can you please tell me the way to create noise from Images. That would be great help. I am trying to test the project on any existing image.

Thanks Akash

shartoo commented 4 years ago

There is a script in src/tl_gan/generate_image.py, which can be used for generate a random image.

akashdexati commented 4 years ago

That file generates image from noise, I am looking for something which can do the reverse operation. Image to Noise.

shartoo commented 4 years ago

What you means is image encoder,here is one encoder from StyleGAN https://github.com/pbaylies/stylegan-encoder