Lesson 8 - Neural style error - Solve Image - ValueError

(Wayne) #1

Hi everyone,

So I’m trying to run the code in the neural-style notebook, however I keep getting this error for the solve_image function.

ValueError: not enough values to unpack (expected 2, got 1)

I looked over the code several times and thought there was a typo, but I couldn’t run @jeremy’s notebook as well.

I’m running my code on my on server with the following setup:

  • Ubuntu 16.04
  • Anaconda 3
  • Conda environment Python 3.6
  • Tensorflow GPU 1.0
  • Keras 1.2.2
  • scikit-learn (0.18.2) │
  • scipy (0.19.1)
  • numpy (1.13.0)

I extracted the images (http://files.fast.ai/data/imagenet-sample-train.tar.gz) into my data folder. Everything runs fine until the solve_image function.

Thanks for your help in advance!

(Wayne) #2

I finally got it working.
I started again with a new Conda environment using python 3.5 and reinstalling the required packages.

It’s working using:
Python 3.5
Keras 1.2.2
Tensorflow-gpu 1.0

Be sure to update your CuDNN libraries to v5.1!