ROIs values: KerasTensor(type_spec=TensorSpec(shape=(1, None, 4), dtype=tf.float32, name=None), name='ROI/packed_2:0', description="created by layer 'ROI'")
Shape of shared before Dense: (1, None, 1024)
Shape after Dense: (1, None, 8)
Traceback (most recent call last):
File "C:\Users\acer\PycharmProjects\BubMask-master\bubble\bubble.py", line 594, in
model = modellib.MaskRCNN(mode="inference", config=config,
File "E:\anaconda\envs\BubMask_env\lib\site-packages\mrcnn\model.py", line 1841, in init
self.keras_model = self.build(mode=mode, config=config)
File "E:\anaconda\envs\BubMask_env\lib\site-packages\mrcnn\model.py", line 2039, in build
fpn_classifier_graph(rpn_rois, mrcnn_feature_maps, input_image_meta,
File "E:\anaconda\envs\BubMask_env\lib\site-packages\mrcnn\model.py", line 963, in fpn_classifier_graph
mrcnn_bbox = KL.Reshape((s[1], num_classes, 4), name="mrcnn_bbox")(x)
File "E:\anaconda\envs\BubMask_env\lib\site-packages\keras\utils\traceback_utils.py", line 70, in error_handler
raise e.with_traceback(filtered_tb) from None
File "E:\anaconda\envs\BubMask_env\lib\site-packages\tensorflow\python\framework\op_def_library.py", line 573, in _ExtractInputsAndAttrs
raise ValueError(
ValueError: Exception encountered when calling layer "mrcnn_bbox" (type Reshape).
Tried to convert 'shape' to a tensor and failed. Error: None values not supported.
Call arguments received by layer "mrcnn_bbox" (type Reshape):
• inputs=tf.Tensor(shape=(1, None, 8), dtype=float32)
ROIs values: KerasTensor(type_spec=TensorSpec(shape=(1, None, 4), dtype=tf.float32, name=None), name='ROI/packed_2:0', description="created by layer 'ROI'")
Shape of shared before Dense: (1, None, 1024)
Shape after Dense: (1, None, 8)
Traceback (most recent call last):
File "C:\Users\acer\PycharmProjects\BubMask-master\bubble\bubble.py", line 594, in
model = modellib.MaskRCNN(mode="inference", config=config,
File "E:\anaconda\envs\BubMask_env\lib\site-packages\mrcnn\model.py", line 1841, in init
self.keras_model = self.build(mode=mode, config=config)
File "E:\anaconda\envs\BubMask_env\lib\site-packages\mrcnn\model.py", line 2039, in build
fpn_classifier_graph(rpn_rois, mrcnn_feature_maps, input_image_meta,
File "E:\anaconda\envs\BubMask_env\lib\site-packages\mrcnn\model.py", line 963, in fpn_classifier_graph
mrcnn_bbox = KL.Reshape((s[1], num_classes, 4), name="mrcnn_bbox")(x)
File "E:\anaconda\envs\BubMask_env\lib\site-packages\keras\utils\traceback_utils.py", line 70, in error_handler
raise e.with_traceback(filtered_tb) from None
File "E:\anaconda\envs\BubMask_env\lib\site-packages\tensorflow\python\framework\op_def_library.py", line 573, in _ExtractInputsAndAttrs
raise ValueError(
ValueError: Exception encountered when calling layer "mrcnn_bbox" (type Reshape).
Tried to convert 'shape' to a tensor and failed. Error: None values not supported.
Call arguments received by layer "mrcnn_bbox" (type Reshape):
• inputs=tf.Tensor(shape=(1, None, 8), dtype=float32)