I have Keras model in format .h5. I want to read it with this code:
#model.h5 is name of mode, tf and modellib is read
custom_objects={'tf': tf,'BatchNorm':modellib.BatchNorm,'ProposalLayer':
modellib.ProposalLayer}
model=tf.keras.models.load_model("model.h5")
But I getting an error
TypeError: init() missing 2 required positional arguments: 'proposal_count' and 'nms_threshold'
I have the newest version of TensorFlow (2.2). Changing the version of TensorFlow is not helping.