Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mask RCNN with Keras and Tensorflow Setup and Installation #221

Open
daoud opened this issue Jun 27, 2018 · 1 comment
Open

Mask RCNN with Keras and Tensorflow Setup and Installation #221

daoud opened this issue Jun 27, 2018 · 1 comment

Comments

@daoud
Copy link

daoud commented Jun 27, 2018

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)

@IgorKasianenko
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants