neka-nat / image_completion_tf2

"Globally and Locally Consistent Image Completion" with Tensorflow2 Keras
31 stars 11 forks source link

ValueError: Layer sequential expects 1 inputs, but it received 2 input tensors. #19

Closed Sophietje1p closed 3 years ago

Sophietje1p commented 3 years ago

Hi,

When I'm trying to run the test script it gives the following error:

ValueError: Layer sequential expects 1 inputs, but it received 2 input tensors. Inputs received: [<tf.Tensor 'IteratorGetNext:0' shape=(None, 128, 128, 3) dtype=float32>, <tf.Tensor 'IteratorGetNext:1' shape=(None, 128, 128, 1) dtype=float32>]

I don't understand where it comes from, since the cmp_model.predict([inputs, masks]) works fine in the train file. I have made no alteration to the code. I hope you can help me!