yehengchen / Object-Detection-and-Tracking

Object Detection and Multi-Object Tracking
MIT License
1.82k stars 753 forks source link

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

Open He-Zhao-Jie opened 1 year ago

He-Zhao-Jie commented 1 year ago

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