paraschopra / abstract-art-neural-network

Generating abstract art through neural networks in PyTorch
https://towardsdatascience.com/making-deep-neural-networks-paint-to-understand-how-they-work-4be0901582ee
43 stars 22 forks source link

Getting error in execution #3

Closed nameisnot closed 5 years ago

nameisnot commented 5 years ago

Getting the following error:

TypeError: 'NoneType' object is not iterable

At line:

n,c = gen_new_image(128, 128, save=False, num_neurons=32)

I am using python 3.6 on mac and latest version of torch on IDLE.

What am I missing?

paraschopra commented 5 years ago

You'll have to give more details. There's no iteration happening in the line you've copy-pasted, the error is probably somewhere else.

Also, you might want to use Jupyter notebook (and not IDLE).

nameisnot commented 5 years ago

Okay, I will try Jupyter and will let you know.

PS. You are right! I had (first) copied and keyed in, and then also copy-pasted your code, when I encountered the error. And the libraries being imported are up to date (I believe) and are working in some other applications. Pls let me know if any other details are required. Thanks