Open knaffe opened 6 years ago
In the code, we first calculate the loss on the 30x30 map and then average the loss. @phillipi
@knaffe Did you figure it out? I still dont understand how they average the (n, 1, 30, 30) output into a (n, 1) which can then be fed into a BCELoss function?
I have a question on the implement of PatchGAN. In the Section 3.2.2 of the paper, it said
But I couldn't find anywhere to implement of this averaging operation? In the code, the D outputs the 30x30x1 feature map data, and the loss of D is calculated by the GANLoss function(MSE or BCE loss) with the 30x30x1 feature map. Where does the averaging operation? Maybe I miss something. Thank you !