leongatys / DeepTextures

Code to synthesise textures using convolutional neural networks as described in Gatys et al. 2015 (http://arxiv.org/abs/1505.07376)
273 stars 82 forks source link

Array() error #8

Closed haeseonii closed 7 years ago

haeseonii commented 7 years ago

Hello,

I am trying to run Example.ipynb. I couldn't get ipython notebook to run, so I exported it to a python script. When I run, it fails on imagenet_mean = array(...) line saying that name 'array' is not defined.

I tried importing array (from array import array), but it then fails saying that TypeError: array() argument 1 or typecode must be char (string or ascii-unicode with length 1), not list

Could you please help? Thanks! John

abdu307 commented 7 years ago

can you try using (from numpy import array) instead of (from array import array)

haeseonii commented 7 years ago

I just tried it and it works. Thanks so much!