79075357

Date: 2024-10-10 16:33:59
Score: 0.5
Natty:
Report link

After researching for a while and using different resources I found out that the issue is with the way that you import the pre-trained model and not with any of the explained steps in the error.

So my code went from:

vit_model = hub.KerasLayer("https://tfhub.dev/sayakpaul/vit_b16_fe/1", trainable=False)

To:

vit_model = tf.keras.applications.VGG16(include_top=False, input_shape=(224, 224, 3))
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: navidabasi