8000 Mask RCNN with Keras and Tensorflow Setup and Installation · Issue #221 · fastai/courses · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Mask RCNN with Keras and Tensorflow Setup and Installation #221
Open
@daoud

Description

@daoud

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0