Advertisement
Guest User

Untitled

a guest
Feb 24th, 2023
230
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.06 KB | None | 0 0
  1. Clipping input data to the valid range for imshow with RGB data ([0..1] for floats or [0..255] for integers).
  2. 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.
  3. Instructions for updating:
  4. 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
  5. Epoch 1/20
  6. 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).
  7. Traceback (most recent call last):
  8. File "/home/victor/PycharmProjects/tensorflow/Image Classification/Deep Clone.py", line 98, in <module>
  9. hist = model.fit(train, epochs=20, validation_data=val, callbacks=[tensorboard_callback])
  10. File "/home/victor/miniconda3/envs/tf/lib/python3.9/site-packages/keras/utils/traceback_utils.py", line 70, in error_handler
  11. raise e.with_traceback(filtered_tb) from None
  12. File "/tmp/__autograph_generated_filezvz0tp_3.py", line 15, in tf__train_function
  13. retval_ = ag__.converted_call(ag__.ld(step_function), (ag__.ld(self), ag__.ld(iterator)), None, fscope)
  14. ValueError: in user code:
  15.  
  16. File "/home/victor/miniconda3/envs/tf/lib/python3.9/site-packages/keras/engine/training.py", line 1249, in train_function *
  17. return step_function(self, iterator)
  18. File "/home/victor/miniconda3/envs/tf/lib/python3.9/site-packages/keras/engine/training.py", line 1233, in step_function **
  19. outputs = model.distribute_strategy.run(run_step, args=(data,))
  20. File "/home/victor/miniconda3/envs/tf/lib/python3.9/site-packages/keras/engine/training.py", line 1222, in run_step **
  21. outputs = model.train_step(data)
  22. File "/home/victor/miniconda3/envs/tf/lib/python3.9/site-packages/keras/engine/training.py", line 1023, in train_step
  23. y_pred = self(x, training=True)
  24. File "/home/victor/miniconda3/envs/tf/lib/python3.9/site-packages/keras/utils/traceback_utils.py", line 70, in error_handler
  25. raise e.with_traceback(filtered_tb) from None
  26. File "/home/victor/miniconda3/envs/tf/lib/python3.9/site-packages/keras/engine/input_spec.py", line 277, in assert_input_compatibility
  27. raise ValueError(
  28.  
  29. ValueError: Exception encountered when calling layer 'sequential' (type Sequential).
  30.  
  31. 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)
  32.  
  33. Call arguments received by layer 'sequential' (type Sequential):
  34. • inputs=tf.Tensor(shape=(None, 256, 256, 3), dtype=float32)
  35. • training=True
  36. • mask=None
  37.  
  38.  
  39. Process finished with exit code 1
  40.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement