Traceback (most recent call last):


 "D:\segmentation-unet-maskrcnn\maskRCNN\model.py", line 1604, in data_generator

use_mini_mask=config.USE_MINI_MASK)


 "D:\segmentation-unet-maskrcnn\maskRCNN\model.py", line 1163, in load_image_gt

mask, class_ids = dataset.load_mask(image_id)


 "D:\segmentation-unet-maskrcnn\maskRCNN\mrcnn_dataset.py", line 51, in load_mask

_mask = skimage.io.imread(_mask_path, 0)


 "C:\Users\S\Anaconda3\lib\site-packages\skimage\io\_io.py", line 48, in imread

img = call_plugin('imread', fname, plugin=plugin, **plugin_args)


 "C:\Users\S\Anaconda3\lib\site-packages\skimage\io\manage_plugins.py", line 210, in call_plugin

return func(*args, **kwargs)


 "C:\Users\S\Anaconda3\lib\site-packages\skimage\io\_plugins\imageio_plugin.py", line 10, in imread

return np.asarray(imageio_imread(*args, **kwargs))


 "C:\Users\S\Anaconda3\lib\site-packages\imageio\core\functions.py", line 265, in imread

reader = read(uri, format, "i", **kwargs)


 "C:\Users\S\Anaconda3\lib\site-packages\imageio\core\functions.py", line 182, in get_reader

"Could not find a format to read the specified file in %s mode" % modename
ValueError: Could not find a format to read the specified file in single-image mode

Traceback (most recent call last):


 "train.py", line 381, in <module>

main()


 "train.py", line 333, in main

model.load_weights(args.snapshot, by_name=True)


 "/tensorflow-1.15.0/python3.6/tensorflow_core/python/keras/engine/training.py", line 182, in load_weights

return super(Model, self).load_weights(filepath, by_name)


 "/tensorflow-1.15.0/python3.6/tensorflow_core/python/keras/engine/network.py", line 1371, in load_weights

saving.load_weights_from_hdf5_group_by_name(f, self.layers)


 "/tensorflow-1.15.0/python3.6/tensorflow_core/python/keras/saving/hdf5_format.py", line 745, in load_weights_from_hdf5_group_by_name

str(len(weight_values)) + ' element(s).')
ValueError: Layer #334 (named "fpn_cells/cell_0/fnode0/add") expects 0 weight(s), but the saved weights have 1 element(s).
