Closed naoki7090624 closed 2 years ago
Hi, thanks for the interest in our code.
In case of CLIP network, default discriminator architecture architecture is multi-level, therefore loss_type should be multilevel_sigmoid_s
. If you want to use sigmoid_s
loss_type with single-level discriminator architecture, passing output_type as conv
in the arguments should enable that.
Let me know if this resolves the issue.
Hi,
Thank you for sharing great works!! I would like to use the pretrained discriminator with my scratch discriminator for improving my model. I added the discriminator of vision-aided-gan with cv_type is swin, vgg or clip. (My code is structured similar to edge-connect).
When I input the generated images (BCH*W) and ground truth images into the discriminator, I got the following lossD from vgg and swin.
I could back propagate it by taking the average.
But, I got the following error from clip.
I am not familiar with these pretrained models. What are the input and output types for each discriminator?
Thank you in advance.