---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-24-0567360a6bea> in <module>
4 print('model path:', weights_path)
5 # 지정된 weight 파일명으로 모델에 로딩.
----> 6 model.load_weights(weights_path, by_name=True)
~/anaconda3/envs/tf113/lib/python3.6/site-packages/mrcnn/model.py in load_weights(self, filepath, by_name, exclude)
2084 if h5py is None:
2085 raise ImportError('`load_weights` requires h5py.')
-> 2086 f = h5py.File(filepath, mode='r')
2087 if 'layer_names' not in f.attrs and 'model_weights' in f:
2088 f = f['model_weights']
~/anaconda3/envs/tf113/lib/python3.6/site-packages/h5py/_hl/files.py in __init__(self, name, mode, driver, libver, userblock_size, swmr, rdcc_nslots, rdcc_nbytes, rdcc_w0, track_order, **kwds)
393 name = repr(name).encode('ASCII', 'replace')
394 else:
--> 395 name = filename_encode(name)
396
397 if track_order is None:
~/anaconda3/envs/tf113/lib/python3.6/site-packages/h5py/_hl/compat.py in filename_encode(filename)
109 filenames in h5py for more information.
110 """
--> 111 filename = fspath(filename)
112 if sys.platform == "win32":
113 if isinstance(filename, six.text_type):
TypeError: expected str, bytes or os.PathLike object, not tuple