devzhk / Implicit-Competitive-Regularization

Code for: Implicit Competitive Regularization in GANs
Apache License 2.0
114 stars 18 forks source link

ValueError: vec Nan #13

Open aakash-saboo opened 4 years ago

aakash-saboo commented 4 years ago

Hi I was training a GAN using the optimizer. It runs fine for 80 iterations but on 81st iteration, it gave ValueError: vec Nan.

value_error

Can you suggest me a possible way to debug it? The same code with adam is just running fine.

Thanks

devzhk commented 4 years ago

I will push a new code in like one week. You can try that one. However, for the current version, I would suggest add use nn.BCEwithLogits and L2 weight penalty to the loss.

aakash-saboo commented 4 years ago

Hey, Thanks for your quick response.

I am using nn.BCEWithLogits but not L2. I am using L1 loss. Ill try replacing it with L2.