-
Notifications
You must be signed in to change notification settings - Fork 127
Description
Epoch 1/10
ValueError Traceback (most recent call last)
Cell In[70], line 1
----> 1 hist = model.fit(train, epochs=10, validation_data=val, callbacks=[tensorboard_callback])
File ~\anaconda3\Lib\site-packages\keras\src\utils\traceback_utils.py:122, in filter_traceback..error_handler(*args, **kwargs)
119 filtered_tb = _process_traceback_frames(e.traceback)
120 # To get the full stack trace, call:
121 # keras.config.disable_traceback_filtering()
--> 122 raise e.with_traceback(filtered_tb) from None
123 finally:
124 del filtered_tb
Cell In[65], line 19, in FaceTracker.train_step(self, batch, **kwargs)
16 with tf.GradientTape() as tape:
17 classes, coords = self.model(X, training=True)
---> 19 batch_classloss = self.closs(y[0], classes)
20 batch_localizationloss = self.lloss(tf.cast(y[1], tf.float32), coords)
22 total_loss = batch_localizationloss+0.5*batch_classloss
ValueError: Cannot take the length of shape with unknown rank.