matterport / matterport/Mask_RCNN

OSError: Unable to open file (truncated file: eof = 74436151, sblock->base_addr = 0, stored_eof = 257557808)

Open
#653 30 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
25.6k
Forks
11.6k
PR merge metrics
No merged PRs in 30d

Description

I want to use Mask-RCNN demo.py in my jupyter notebook but when i ran the the demo code , i faced such a problem
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)

~/Mask_RCNN/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']

~/anaconda3/envs/MaskRCNN/lib/python3.6/site-packages/h5py/_hl/files.py in init(self, name, mode, driver, libver, userblock_size, swmr, **kwds)
310 with phil:
311 fapl = make_fapl(driver, libver, **kwds)
--> 312 fid = make_fid(name, mode, userblock_size, fapl, swmr=swmr)
313
314 if swmr_support:

~/anaconda3/envs/MaskRCNN/lib/python3.6/site-packages/h5py/_hl/files.py in make_fid(name, mode, userblock_size, fapl, fcpl, swmr)
140 if swmr and swmr_support:
141 flags |= h5f.ACC_SWMR_READ
--> 142 fid = h5f.open(name, flags, fapl=fapl)
143 elif mode == 'r+':
144 fid = h5f.open(name, h5f.ACC_RDWR, fapl=fapl)

h5py/_objects.pyx in h5py._objects.with_phil.wrapper()

h5py/_objects.pyx in h5py._objects.with_phil.wrapper()

h5py/h5f.pyx in h5py.h5f.open()

OSError: Unable to open file (truncated file: eof = 74436151, sblock->base_addr = 0, stored_eof = 257557808)

i can not solve my problem
can any body help me??
thank's

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with demo.py and the COCO_MODEL_PATH value, then inspect model.py at the load_weights call and the HDF5 file it opens. Confirm that the COCO weights file is complete and that the demo can load it without the truncated-file OSError.

Written by the indexing model from the issue text.

Assessment

Tech stack
jupyter, python
Domain
computer-vision, machine-learning
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.