Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Clipping input data to the valid range for imshow with RGB data ([0..1] for floats or [0..255] for integers).
- WARNING:tensorflow:From /home/victor/miniconda3/envs/tf/lib/python3.9/site-packages/tensorflow/python/autograph/pyct/static_analysis/liveness.py:83: Analyzer.lamba_check (from tensorflow.python.autograph.pyct.static_analysis.liveness) is deprecated and will be removed after 2023-09-23.
- Instructions for updating:
- Lambda fuctions will be no more assumed to be used in the statement where they are used, or at least in the same block. https://github.com/tensorflow/tensorflow/issues/56089
- Epoch 1/20
- WARNING:tensorflow:Model was constructed with shape (None, 256, 256, 1) for input KerasTensor(type_spec=TensorSpec(shape=(None, 256, 256, 1), dtype=tf.float32, name='conv2d_input'), name='conv2d_input', description="created by layer 'conv2d_input'"), but it was called on an input with incompatible shape (None, 256, 256, 3).
- Traceback (most recent call last):
- File "/home/victor/PycharmProjects/tensorflow/Image Classification/Deep Clone.py", line 98, in <module>
- hist = model.fit(train, epochs=20, validation_data=val, callbacks=[tensorboard_callback])
- File "/home/victor/miniconda3/envs/tf/lib/python3.9/site-packages/keras/utils/traceback_utils.py", line 70, in error_handler
- raise e.with_traceback(filtered_tb) from None
- File "/tmp/__autograph_generated_filezvz0tp_3.py", line 15, in tf__train_function
- retval_ = ag__.converted_call(ag__.ld(step_function), (ag__.ld(self), ag__.ld(iterator)), None, fscope)
- ValueError: in user code:
- File "/home/victor/miniconda3/envs/tf/lib/python3.9/site-packages/keras/engine/training.py", line 1249, in train_function *
- return step_function(self, iterator)
- File "/home/victor/miniconda3/envs/tf/lib/python3.9/site-packages/keras/engine/training.py", line 1233, in step_function **
- outputs = model.distribute_strategy.run(run_step, args=(data,))
- File "/home/victor/miniconda3/envs/tf/lib/python3.9/site-packages/keras/engine/training.py", line 1222, in run_step **
- outputs = model.train_step(data)
- File "/home/victor/miniconda3/envs/tf/lib/python3.9/site-packages/keras/engine/training.py", line 1023, in train_step
- y_pred = self(x, training=True)
- File "/home/victor/miniconda3/envs/tf/lib/python3.9/site-packages/keras/utils/traceback_utils.py", line 70, in error_handler
- raise e.with_traceback(filtered_tb) from None
- File "/home/victor/miniconda3/envs/tf/lib/python3.9/site-packages/keras/engine/input_spec.py", line 277, in assert_input_compatibility
- raise ValueError(
- ValueError: Exception encountered when calling layer 'sequential' (type Sequential).
- Input 0 of layer "conv2d" is incompatible with the layer: expected axis -1 of input shape to have value 1, but received input with shape (None, 256, 256, 3)
- Call arguments received by layer 'sequential' (type Sequential):
- • inputs=tf.Tensor(shape=(None, 256, 256, 3), dtype=float32)
- • training=True
- • mask=None
- Process finished with exit code 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement