-
Notifications
You must be signed in to change notification settings - Fork 627
'_UserObject' object has no attribute 'summary' #196
Comments
I have the same issue. |
I was having the same problem but it turns out loaded_model is a User_Object, the actual model is located at |
I think this only works with import tensorflow as tf
model = tf.keras.models.load_model()
model.model.summary() If you use model = tf.saved_model.load() you will get a UserObject again after accessing |
Did anyone get the model to work with keras methods? after: import tensorflow as tf
saved_model_path = 'gs://simclr-checkpoints-tf2/simclrv2/pretrained/r50_1x_sk0/saved_model/'
model = tf.keras.models.load_model(saved_model_path).model
model.get_layer('projection_head') |
Hello, I'm trying to load a r50_1x_sk0/saved_model of pretrained checkpoint-tf2 of simCLRv2, to just fine tuned but I'm coming across this error:
'_UserObject' object has no attribute 'summary'
I would to apply
.summary()
.fit()
and.predict()
Here is a part of my code
The text was updated successfully, but these errors were encountered: