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

OSError: Unable to open file (truncated file: eof = 10485760, sblock->base_addr = 0, stored_eof = 258720828) #126

Open
He-Zhao-Jie opened this issue Sep 22, 2022 · 0 comments

Comments

@He-Zhao-Jie
Copy link

I try to run this code

! python main.py -c person -i /content/drive/MyDrive/y2mate.com - Baidu Tests Driverless Car on the Road_360p.mp4

but it shows problem as bellow:

**Traceback (most recent call last):
File "main.py", line 195, in
main(YOLO())
File "/content/drive/MyDrive/Object-Detection-and-Tracking-master/OneStage/yolo/deep_sort_yolov4/yolo.py", line 25, in init
self.boxes, self.scores, self.classes = self.generate()
File "/content/drive/MyDrive/Object-Detection-and-Tracking-master/OneStage/yolo/deep_sort_yolov4/yolo.py", line 46, in generate
self.yolo_model = load_model(model_path, custom_objects={'Mish': Mish}, compile=False)
File "/usr/local/lib/python3.7/dist-packages/keras/engine/saving.py", line 492, in load_wrapper
return load_function(*args, kwargs)
File "/usr/local/lib/python3.7/dist-packages/keras/engine/saving.py", line 583, in load_model
with H5Dict(filepath, mode='r') as h5dict:
File "/usr/local/lib/python3.7/dist-packages/keras/utils/io_utils.py", line 191, in init
self.data = h5py.File(path, mode=mode)
File "/usr/local/lib/python3.7/dist-packages/h5py/_hl/files.py", line 427, in init
swmr=swmr)
File "/usr/local/lib/python3.7/dist-packages/h5py/_hl/files.py", line 190, in make_fid
fid = h5f.open(name, flags, fapl=fapl)
File "h5py/_objects.pyx", line 54, in h5py._objects.with_phil.wrapper
File "h5py/_objects.pyx", line 55, in h5py._objects.with_phil.wrapper
File "h5py/h5f.pyx", line 96, in h5py.h5f.open
OSError: Unable to open file (truncated file: eof = 10485760, sblock->base_addr = 0, stored_eof = 258720828)

Does anyone have same problem?

Thanks

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

1 participant