genforce / mganprior

[CVPR 2020] Image Processing Using Multi-Code GAN Prior
https://genforce.github.io/mganprior/
289 stars 44 forks source link

Where is the optimized adaptive channel importance scores? #21

Closed songquanpeng closed 3 years ago

songquanpeng commented 3 years ago

Hi, thx for your great work! But I have a question about the implementation. In the paper, the objective function is: image

So it looks like that we should get the optimized latent codes and the adaptive channel importance scores.

But in your implementation, there are only the latent codes are optimized:

# Invert
latent_estimates, history = inversion.invert(generator, y_gt, loss, batch_size=1, video=args.video)

https://github.com/genforce/mganprior/blob/master/multi_code_inversion.py#L36

I wonder if there is something wrong with my understanding.

Thx in advance!

songquanpeng commented 3 years ago

Got it