zengxianyu/co-mod-gan-pytorch

inference for NAN

Opened this issue · 3 comments

why the model forward generate the nan?

I never encountered nan issue. What's your input

I have encountered the same problem. Have you resolved it now

I have solved this problem. My problem is that I used my own mask creator, which has a probability of generating all 0 masks, causing the path to calculate 0 and ultimately resulting in the generator parameter being nan.
I hope it will be helpful to you.