Closed tommy-qichang closed 3 years ago
Unfortunately finding the latent code that will return the exact same image is of course not possible. If all you care about is the reconstruction quality then you should take a look at optimization techniques such as those from StyleGAN2 or a recent work called PTI. Those optimization techniques will result in much better reconstruction but will take several minutes per image. In addition, some optimization techniques (mainly the latent vector optimization techniques) result in latents that are not editable so the latent itself is not very useful.
Regarding the options you mentioned:
So to summarize: if you want the best reconstruction possible go with optimization techniques, which do have their own drawbacks. Just note that you won't be able to get a near-perfect reconstruction.
I know it's impossible to return the exact same image, I just wondering if we could find the same shape for the specific area. Let me give an example. I want to find a synthetic image that has a similar cardiac shape to the real one(for instance the left ventricle myocardium). The rest of the image may not necessarily be the same. Overall I think the synthetic image looks really good, but you could see the read arrow part is not as the same shape as the real one. Real: Synthetic
The results seem very good to be honest. You could try optimization techniques to try to achieve slightly better reconstruction, but overall I am not sure how much more improvement you will be able to achieve
Thank you for your great work. We are doing some experiments based on your code. But we need to find the latent code that the synthetic images are identical to the original one in some regions (we need the latent code of course). So far the PSP model provides a very similar images overall, but we could easily find the differences for the ROI.
I think there are several options(1. disable noises for each level in generator-stylegan. 2.put more weight on the ROI region, etc), but not sure if I missed any, or it's an impossible mission. Could you please shed some light for me? Thanks.