tensor2tensor icon indicating copy to clipboard operation
tensor2tensor copied to clipboard

cyclegan model,nanloss debug

Open 2877992943 opened this issue 8 years ago • 0 comments

tensor2tensor==1.9.0 when use cyclegan model to train shakespear style transfer problem, always get NANLOSS error,after test cyclegan.discriminator,find that in this method

transformer_vae.compress

          cur, hparams.hidden_size, [((1, 1), k2)],
          strides=k2, name="compress_%d" % i)

too short sequence with length such as 5,will not survive this conv_block, need to process trainning data to make sure source and target both longer than 10, and even hparams="min_length=20" still not work and report NANLOSS.

2877992943 avatar Sep 12 '18 03:09 2877992943