Closed djcopley closed 6 years ago
By breaking the method chain apart, I was able to fix this issue.
img = scipy.misc.imread(path).astype(np.float)
Is now -
img = scipy.misc.imread(path)
img = img.astype(np.float)
it looks like those two should be equivalent
They do seem to be equivalent. I would think imread() would resolve to its value and then the .astype() method would be invoked, however for some reason I was getting a type error. I couldn't figure out why it was returning a 'JpegImageFile' object instead of a numpy array either. In the interim however, splitting it up seems to have done the trick.
When I attempt to run the neural_style on my images I receive the following error:
I've done some digging and it looks like scipy.misc.imread is deprecated. This shouldn't however bring the program to a halt. In addition, the documentation says imread should return an np.ndarray object, however, looking at the traceback, it appears to be returning a 'JpegImageFile' object. Any thoughts to why this might be happening? I am running Mac OSX if that wasn't clear from the traceback. Thanks :)