Open mikechen66 opened 4 years ago
With regard to In [30] and In [31], there is the following ValueError. I can not correct the ValueErrors at present.
ValueError: Cannot create an execution function which is comprised of elements from multiple graphs.
In [30]
combined_evaluator = Evaluator(loss_total, combination_image, loss_content=loss_content,
loss_variation=loss_variation, loss_style_summer=loss_style_summer,
loss_style_winter=loss_style_winter)
iterate = K.function([combination_image, summerness],
combined_evaluator.iterate.outputs)
combined_evaluator.iterate = lambda inputs: iterate(inputs + [1.0])
res = run(combined_evaluator, preprocess_image(base_image_path), num_iter=50)
ValueError Traceback (most recent call last)
Hi Douwe:
Since any error incurs a bunch of long running hours and might make guys bad sleep, I raise the issues and related solutions.
1. from scipy.misc import imread, imresize, imsave, fromimage, toimage
Issues:
ImportError: cannot import name 'imread' and 'imsave 'from 'scipy.misc' ImportError: cannot import name 'imresize' from 'scipy.misc' ImportError: cannot import name 'fromimage' from 'scipy.misc' ImportError: cannot import name 'toimage' from 'scipy.misc'
Solutions:
change
from scipy.misc import imread, imresize, imsave
tochange
from scipy.misc import fromimage, toimage
to2. AttributeError: 'numpy.int64' object has no attribute 'value'
Issues in details
AttributeError Traceback (most recent call last)