Update models.py

#1
by anasrz - opened
Files changed (1) hide show
  1. models.py +8 -8
models.py CHANGED
@@ -535,11 +535,11 @@ class ImageCaptioningModel(keras.Model):
535
  # called automatically.
536
  return [self.loss_tracker, self.acc_tracker]
537
 
538
- cnn_model = get_cnn_model()
539
- encoder = TransformerEncoderBlock(embed_dim=EMBED_DIM, dense_dim=FF_DIM, num_heads=1)
540
- decoder = TransformerDecoderBlock(embed_dim=EMBED_DIM, ff_dim=FF_DIM, num_heads=2)
541
- new_model = ImageCaptioningModel(
542
- cnn_model=cnn_model, encoder=encoder, decoder=decoder, image_aug=image_augmentation,
543
- )
544
-
545
- new_model.load_weights('model_weights.h5')
 
535
  # called automatically.
536
  return [self.loss_tracker, self.acc_tracker]
537
 
538
+ # cnn_model = get_cnn_model()
539
+ # encoder = TransformerEncoderBlock(embed_dim=EMBED_DIM, dense_dim=FF_DIM, num_heads=1)
540
+ # decoder = TransformerDecoderBlock(embed_dim=EMBED_DIM, ff_dim=FF_DIM, num_heads=2)
541
+ # new_model = ImageCaptioningModel(
542
+ # cnn_model=cnn_model, encoder=encoder, decoder=decoder, image_aug=image_augmentation,
543
+ # )
544
+
545
+ # new_model.load_weights('model_weights.h5')