tensorflow: TypeError: '<' not supported between instances of 'function' and 'str'
Please make sure that this is a bug. As per ourGitHub Policy,we only address code/doc bugs, performance issues, feature requests andbuild/installation issues on GitHub. tag:bug_template
System information
- I’m training the model on google collaboratory
Describe the current behavior I’ve trained and saved my model, on importing the model it gives this error on model evaluation, but model.predict() works perfectly
Testing Code
model_path = "/content/drive/MyDrive/Train Data/Models/text_block_model_new_batch.h5"
model = tf.keras.models.load_model(model1_path,custom_objects={'dice_coef':dice_coef,'dice_coef_loss':dice_coef_loss})
results = model.evaluate(X_test,Y_test)
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 18 (5 by maintainers)
@ymodak … The model was able to evaluate on binary_crossentropy, so I guess there’s an issue with the custom loss function