Hello, in the cell number 20, i have this line:
stylized_image, display_images = fit_style_transfer(style_image=style_image, content_image=content_image,
style_weight=style_weight, content_weight=content_weight,
optimizer=adam, epochs=10, steps_per_epoch=100)
And i get this error message:
ValueError Traceback (most recent call last)
in
13
14 # start the neural style transfer
—> 15 stylized_image, display_images = fit_style_transfer(style_image=style_image, content_image=content_image,
16 style_weight=style_weight, content_weight=content_weight,
17 optimizer=adam, epochs=10, steps_per_epoch=100)
5 frames
/usr/local/lib/python3.8/dist-packages/tensorflow/python/ops/math_ops.py in add_n(inputs, name)
4051 isinstance(x, (ops.Tensor, indexed_slices.IndexedSlices))
4052 for x in inputs):
→ 4053 raise ValueError("Inputs must be an iterable of at least one "
4054 “Tensor/IndexedSlices with the same dtype and shape.”)
4055
ValueError: Inputs must be an iterable of at least one Tensor/IndexedSlices with the same dtype and shape.