You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
InvalidArgumentError Traceback (most recent call last)
Cell In[19], line 3
1 # fit the model
2 # Run the cell. It will take some time to execute
----> 3 r = model.fit(
4 training_set,
5 validation_data=test_set,
6 epochs=5,
7 steps_per_epoch=len(training_set),
8 validation_steps=len(test_set)
9 )
This issue has been automatically marked as stale due to the lack of recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
InvalidArgumentError Traceback (most recent call last)
Cell In[19], line 3
1 # fit the model
2 # Run the cell. It will take some time to execute
----> 3 r = model.fit(
4 training_set,
5 validation_data=test_set,
6 epochs=5,
7 steps_per_epoch=len(training_set),
8 validation_steps=len(test_set)
9 )
File ~/anaconda3/envs/shadow_iamge_classification/lib/python3.9/site-packages/tensorflow/python/keras/engine/training.py:1100, in Model.fit(self, x, y, batch_size, epochs, verbose, callbacks, validation_split, validation_data, shuffle, class_weight, sample_weight, initial_epoch, steps_per_epoch, validation_steps, validation_batch_size, validation_freq, max_queue_size, workers, use_multiprocessing)
1093 with trace.Trace(
1094 'train',
1095 epoch_num=epoch,
1096 step_num=step,
1097 batch_size=batch_size,
1098 _r=1):
1099 callbacks.on_train_batch_begin(step)
-> 1100 tmp_logs = self.train_function(iterator)
1101 if data_handler.should_sync:
1102 context.async_wait()
...
[[node sparse_categorical_crossentropy/SparseSoftmaxCrossEntropyWithLogits/SparseSoftmaxCrossEntropyWithLogits (defined at tmp/ipykernel_10677/3887908191.py:3) ]] [Op:__inference_train_function_12180]
Function call stack:
train_function
The text was updated successfully, but these errors were encountered: