You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when i use the # Load weights trained on MS-COCO
model.load_weights(COCO_MODEL_PATH, by_name=True)
then i am facing following error :
OSError Traceback (most recent call last)
in ()
3
4 # Load weights trained on MS-COCO
----> 5 model.load_weights(COCO_MODEL_PATH, by_name=True)
C:\Users\mohammad.daoud\MY_WORK\Artifical_intlegence\Mask_RCNN-master\mrcnn\model.py in load_weights(self, filepath, by_name, exclude)
2102 if h5py is None:
2103 raise ImportError('load_weights requires h5py.')
-> 2104 f = h5py.File(filepath, mode='r')
2105 if 'layer_names' not in f.attrs and 'model_weights' in f:
2106 f = f['model_weights']
If you are using another open source library, try looking for solution in original repository.
Go to relevant github page, Search in top of the page "in this repo..." and then switch to issues tab.
There are high chances that someone already faced this issue matterport/Mask_RCNN#272
when i use the # Load weights trained on MS-COCO
model.load_weights(COCO_MODEL_PATH, by_name=True)
then i am facing following error :
OSError Traceback (most recent call last)
in ()
3
4 # Load weights trained on MS-COCO
----> 5 model.load_weights(COCO_MODEL_PATH, by_name=True)
C:\Users\mohammad.daoud\MY_WORK\Artifical_intlegence\Mask_RCNN-master\mrcnn\model.py in load_weights(self, filepath, by_name, exclude)
2102 if h5py is None:
2103 raise ImportError('
load_weights
requires h5py.')-> 2104 f = h5py.File(filepath, mode='r')
2105 if 'layer_names' not in f.attrs and 'model_weights' in f:
2106 f = f['model_weights']
C:\Users\mohammad.daoud\AppData\Local\Continuum\Anaconda3\lib\site-packages\h5py_hl\files.py in init(self, name, mode, driver, libver, userblock_size, swmr, **kwds)
269
270 fapl = make_fapl(driver, libver, **kwds)
--> 271 fid = make_fid(name, mode, userblock_size, fapl, swmr=swmr)
272
273 if swmr_support:
C:\Users\mohammad.daoud\AppData\Local\Continuum\Anaconda3\lib\site-packages\h5py_hl\files.py in make_fid(name, mode, userblock_size, fapl, fcpl, swmr)
99 if swmr and swmr_support:
100 flags |= h5f.ACC_SWMR_READ
--> 101 fid = h5f.open(name, flags, fapl=fapl)
102 elif mode == 'r+':
103 fid = h5f.open(name, h5f.ACC_RDWR, fapl=fapl)
h5py_objects.pyx in h5py._objects.with_phil.wrapper (C:\Minonda\conda-bld\h5py_1490029446037\work\h5py_objects.c:2867)()
h5py_objects.pyx in h5py._objects.with_phil.wrapper (C:\Minonda\conda-bld\h5py_1490029446037\work\h5py_objects.c:2825)()
h5py\h5f.pyx in h5py.h5f.open (C:\Minonda\conda-bld\h5py_1490029446037\work\h5py\h5f.c:2140)()
OSError: Unable to open file (Truncated file: eof = 253995311, sblock->base_addr = 0, stored_eoa = 257557808)
The text was updated successfully, but these errors were encountered: