Mask_RCNN icon indicating copy to clipboard operation
Mask_RCNN copied to clipboard

TypeError: Could not build a TypeSpec for KerasTensor(type_spec=TensorSpec(shape=(None, None, 4), dtype=tf.float32, name=None), name='tf.math.truediv/truediv:0', description="created by layer 'tf.math.truediv'") of unsupported type <class 'keras.engine.keras_tensor.KerasTensor'>.

Open Abecadarian opened this issue 3 years ago • 5 comments

When I try to train on a new set of images I get this error:

TypeError: Could not build a TypeSpec for KerasTensor(type_spec=TensorSpec(shape=(None, None, 4), dtype=tf.float32, name=None), name='tf.math.truediv/truediv:0', description="created by layer 'tf.math.truediv'") of unsupported type <class 'keras.engine.keras_tensor.KerasTensor'>.

Abecadarian avatar Aug 22 '22 09:08 Abecadarian

Which version of keras and tensorflow are you using? I recommend using conda for this knd of stuff since it's likely you are gonna have a hard time porting this repo to tf2

cnavarrete avatar Aug 22 '22 13:08 cnavarrete

Which version of keras and tensorflow are you using? I recommend using conda for this knd of stuff since it's likely you are gonna have a hard time porting this repo to tf2

yes,I have to use tf>=2.6 and CUDA>=11.1, due to my gpu RTX30 series :{ . Is there a solution that runs successfully on TF2 for Mask_RCNN-2.1 ? Appreciate !!!

San-dow avatar Aug 26 '22 13:08 San-dow

Same error TypeError: Could not build a TypeSpec for KerasTensor(type_spec=TensorSpec(shape=(None, None, 4), dtype=tf.float32, name=None), name='tf.math.truediv/truediv:0', description="created by layer 'tf.math.truediv'") of unsupported type <class 'keras.engine.keras_tensor.KerasTensor'>.

ajayhakkumar avatar Feb 17 '23 09:02 ajayhakkumar

Same error TypeError: Could not build a TypeSpec for KerasTensor(type_spec=TensorSpec(shape=(None, None, 4), dtype=tf.float32, name=None), name='tf.math.truediv/truediv:0', description="created by layer 'tf.math.truediv'") of unsupported type <class 'keras.engine.keras_tensor.KerasTensor'>.

ElonGong avatar May 11 '23 07:05 ElonGong

同问

JennyWow111 avatar Mar 13 '24 13:03 JennyWow111