Closed ys-zong closed 2 years ago
Hi, since our source code is based on pytorch 0.4.1 , maybe several points (e.g. using 'Variable') are quite different from higher version (>1.0).
We are planning to revise the source code for higher version. Sorry for inconvenience.
hello, i was able to correct this issue by the following changes to c_loss as suggested above:
c_loss = -CD(z_hat.detach()).mean() #this worked fine
This will detach z_hat from the current graph. From detach method: When we don't need a tensor to be traced for the gradient computation, we detach the tensor from the current computational graph.
Do you know if this will cause an issue with Alpha_WGAN performance?
Thanks for your comment. I recognize that detaching the reconstructed latent is correct implementation. As training 3D brain MRI GAN is much more sensitive to the natural image cases, those corrections might cause difference in performance of effect training stability.
Again, I apologize that I don't have enough time to update the source code for now. Later I will spend time to revise the code.
Hi, thanks for the nice work!
When I'm using a higher version of Pytorch (>1.9.0), an error occurs during training
Currently, I think the problem is from the
c_loss
, which is the second term of theloss3
. If I comment thec_loss
the error will no longer exist. I'm wondering should I modify anything about thec_loss
to fix it?