I am trying to use matterport's keras implementation of Mask RCNN. When I call the function modellib.MaskRCNN, I get below error.
'''maskrcnnModel = modellib.MaskRCNN(mode='training', config=config, model_dir='/rootdir' )'''
/usr/local/lib/python3.7/dist-packages/tensorflow/python/framework/type_spec.py in type_spec_from_value(value) 3, "Failed to convert %r to tensor: %s" % (type(value).name, e))
raise TypeError("Could not build a TypeSpec for %r with type %s" % (value, type(value).name)) TypeError: Could not build a TypeSpec for <KerasTensor: shape=(None, None, 4) dtype=float32 (created by layer 'tf.math.truediv')> with type KerasTensor
I am using Tensorflow 2.4.1 and keras 2.4.0 version
I surfed at many places, but i did not work for me. I tried to modify the model.py as recommended in other stackoverflow questions, but i do not see any difference.
I appreciate your help