SummitKwan / transparent_latent_gan

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

is it possible to test on random online photo? #14

Open datlife opened 6 years ago

datlife commented 6 years ago

First of all, Great work! Thank you for sharing the code

I wonder if it is possible to test on custom online photo, e.g. using my photo on the kaggle notebook.

Thanks,

SummitKwan commented 6 years ago

Hi, thank you for asking this. That is exactly my next step. I have two methods in mind that I can try, but have not got time to implement. Stay tuned.

jackylee1 commented 6 years ago

me have the same question.wish to see your update.that's quite great work

pixieDoug commented 6 years ago

Looking for this as well! How do you think you'll implement? Really great work!

SummitKwan commented 6 years ago

@pixieDoug Thank you! Basically, there are two strategies: 1) using gradient descent optimization to recover latent space https://arxiv.org/abs/1702.04782. 2) train a encoding network (CNN) to transform image to latent space. I think either will work.

pixieDoug commented 6 years ago

I'd assume writing the gd optimizer is probably the easiest to implement and test results, no? Think you'll have time to write some code? :) I think testing with your own image and seeing the results would be cool to everyone. And btw, congrats on making HN homepage. That's some very nice attention I'm sure.

pixieDoug commented 6 years ago

@SummitKwan The gd algorithm you referenced in the arXiv paper....do you know if there is a git repo? Would like to see if I can reproduce the results from their paper and maybe merge it here if successful.

SummitKwan commented 6 years ago

@pixieDoug Thank you so much for this and I really appreciate it. One implementation is here: https://github.com/simoroma/RecoverGANlatentVector.

However, the implementation of this gd is not the difficult part, the actual challenge here is to get the clean GAN computational graph from the Nvidia's implementation, which is currently wrapped in complicated classes (for a good reason of the progressively growing training procedure). Let me know if you want to discuss a little bit more before devoting your time in it and feel free to reach my from LinkedIn message. Again, thank you for your effort!

pixieDoug commented 6 years ago

@SummitKwan So sorry for not responding sooner! Unfortunately I've been tied-up on another DL project. I would love to contribute but sounds like it might be past my knowledge of GANs. Still, I'd like to see what I can do to help push the project forward! I'll look you up on LinkedIn and you can fill-me-in on the classes when you have a moment!

abi98213 commented 5 years ago

Any Update, to test it on any image. I tried to generate latent vector from image but did not succeed. So, please tell me how should I approach this problem.

mamineayari commented 4 years ago

Hi, any update on this ?

tanmoyc-sph commented 3 years ago

any update on this?..or any advise on the steps to achieve this ?