Getting "NaN" in Neural Style Transfer code
either your model's weight too large or the learning rate is too large so it diverges, now, make sure to tune the learning rate (make it smaller than it's now) or use grad/weights clipping
long ago i did the Deep Learning specialization on Coursera and i rewrite the NST notebook's code so it will run on Spyder. The code did run well and i haven't touch it for a year. Now i tried to run it again and i get "NaN" in the cost function and the generated picture is black. I tried to see the values of the variables from the Variables Explorer and it seems fine. Someone has an idea why it happens? i didn't change the code at all and the only thing i did since last year is installing packages.
Thanks!