COCO-Semantic-Segmentation
COCO-Semantic-Segmentation copied to clipboard
Error while training with the U-NET Model
2 root error(s) found. (0) UNKNOWN: Exception: input type is not supported. Traceback (most recent call last):
File "/home/navneeth/anaconda3/lib/python3.9/site-packages/tensorflow/python/ops/script_ops.py", line 270, in call ret = func(*args)
File "/home/navneeth/anaconda3/lib/python3.9/site-packages/tensorflow/python/autograph/impl/api.py", line 642, in wrapper return func(*args, **kwargs)
File "/home/navneeth/anaconda3/lib/python3.9/site-packages/tensorflow/python/data/ops/dataset_ops.py", line 1030, in generator_py_func values = next(generator_state.get_iterator(iterator_id))
File "/home/navneeth/anaconda3/lib/python3.9/site-packages/keras/engine/data_adapter.py", line 831, in wrapped_generator for data in generator_fn():
File "/tmp/ipykernel_235356/1226860277.py", line 14, in augmentationsGenerator for img, mask in gen:
File "/tmp/ipykernel_235356/728327123.py", line 25, in dataGeneratorCoco train_mask = getNormalMask(imageObj, classes, coco, catIds, input_image_size)
File "/tmp/ipykernel_235356/2567587607.py", line 29, in getNormalMask new_mask = cv2.resize(coco.annToMask(anns[a])*pixel_value, input_image_size)
File "/home/navneeth/anaconda3/lib/python3.9/site-packages/pycocotools/coco.py", line 442, in annToMask rle = self.annToRLE(ann)
File "/home/navneeth/anaconda3/lib/python3.9/site-packages/pycocotools/coco.py", line 427, in annToRLE rles = maskUtils.frPyObjects(segm, h, w)
File "pycocotools/_mask.pyx", line 308, in pycocotools._mask.frPyObjects
Exception: input type is not supported.
[[{{node PyFunc}}]]
[[IteratorGetNext]]
[[IteratorGetNext/_4]]
(1) UNKNOWN: Exception: input type is not supported. Traceback (most recent call last):
File "/home/navneeth/anaconda3/lib/python3.9/site-packages/tensorflow/python/ops/script_ops.py", line 270, in call ret = func(*args)
File "/home/navneeth/anaconda3/lib/python3.9/site-packages/tensorflow/python/autograph/impl/api.py", line 642, in wrapper return func(*args, **kwargs)
File "/home/navneeth/anaconda3/lib/python3.9/site-packages/tensorflow/python/data/ops/dataset_ops.py", line 1030, in generator_py_func values = next(generator_state.get_iterator(iterator_id))
File "/home/navneeth/anaconda3/lib/python3.9/site-packages/keras/engine/data_adapter.py", line 831, in wrapped_generator for data in generator_fn():
File "/tmp/ipykernel_235356/1226860277.py", line 14, in augmentationsGenerator for img, mask in gen:
File "/tmp/ipykernel_235356/728327123.py", line 25, in dataGeneratorCoco train_mask = getNormalMask(imageObj, classes, coco, catIds, input_image_size)
File "/tmp/ipykernel_235356/2567587607.py", line 29, in getNormalMask new_mask = cv2.resize(coco.annToMask(anns[a])*pixel_value, input_image_size)
File "/home/navneeth/anaconda3/lib/python3.9/site-packages/pycocotools/coco.py", line 442, in annToMask rle = self.annToRLE(ann)
File "/home/navneeth/anaconda3/lib/python3.9/site-packages/pycocotools/coco.py", line 427, in annToRLE rles = maskUtils.frPyObjects(segm, h, w)
File "pycocotools/_mask.pyx", line 308, in pycocotools._mask.frPyObjects
Exception: input type is not supported.
[[{{node PyFunc}}]]
[[IteratorGetNext]]
0 successful operations. 0 derived errors ignored. [Op:__inference_train_function_3047]