Wenchao-Du / LIR-for-Unsupervised-IR

This is an implementation for the CVPR2020 paper "Learning Invariant Representation for Unsupervised Image Restoration"
https://arxiv.org/pdf/2003.12769.pdf
98 stars 21 forks source link

One question in dis_update function #6

Open laulampaul opened 4 years ago

laulampaul commented 4 years ago

in dis_update(self, x_a, x_b, hyperparameters): the content adversial codes are , out_a = self.dis_content(h_a) out_b = self.dis_content(h_b) why not use h_a.detach() and h_b.detach() to avoid the update in the parameters of G ? Thank you!