OS error occurs when running DeepFace.stream()

352 views Asked by At

I am completely new to deepface and I recently faced an error when running DeepFace.stream(). I tried to reinstall deepface, keras and h5py packages but the problem still occurs. Any solutions for this?

This is what I ran:

from deepface import DeepFace 
DeepFace.stream(db_path="dataset")

This is the error:

  File —\AppData\Local\Programs\PythonWython310\lib\site-packages\h5pyChl\files.py:220, in make_fic(name, mode, userblock_size, fapl, fcpl, swmr)
     218 if swmr and swmr_support:
     219     flags |= h5f.ACC_SUMR_READ
 --> 220     fid = h5f.open(name, flags, fapl=faal)
     221 elif mode == 'r+':
     222     fid = h5f.open(name, h5f.ACC_RDWR, fapl=fapl) 
 File h5pyCobjects.pyx:54, in h5py._objects.with_phil.wrapper()
 File h5py\_objects.pyx:55, in h5py._objects.with_phil.wrapper()
 File h5py\h5f.pyx:106, in h5py.h5f.open() 
    
  OSError: Unable to open file (truncated file: eof = 55316580, sblock->base_addr = 0, stored_eof = 580085408)
0

There are 0 answers