Open mrunal2401 opened 1 year ago
Looks like you are missing or specified the wrong path for the face detector. It needs to be downloaded from my HuggingFace.
I have downloaded from the link you provided in the github repository
I have downloaded from the link you provided in the github repository
File signature not found
suggests the file is either corrupted or not in the HDF5 format. Try to redownload the file again.
Okay. I'll update you after trying
Then also same issue is there
++
++
??
@mrunal2401 I am facing the same issue. If I use the model after cloning from hugging face. You should individually download the model directly. Then it will work.
I got this error while executing this -"python test_video_swap_multi.py --facedancer_path "./model_zoo/FaceDancer_config_c_HQ.h5" --vid_path "path/to/video.mp4" --swap_source "path/to/source_face.jpg" --vid_output "results/swapped_video.mp4""
"Traceback (most recent call last):
File "test_video_swap_multi.py", line 28, in
RetinaFace = load_model(opt.retina_path, compile=False,
File "/opt/anaconda3/envs/facedancer/lib/python3.8/site-packages/keras/utils/traceback_utils.py", line 70, in error_handler
raise e.with_traceback(filtered_tb) from None
File "/opt/anaconda3/envs/facedancer/lib/python3.8/site-packages/h5py/_hl/files.py", line 567, in init
fid = make_fid(name, mode, userblock_size, fapl, fcpl, swmr=swmr)
File "/opt/anaconda3/envs/facedancer/lib/python3.8/site-packages/h5py/_hl/files.py", line 231, 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 106, in h5py.h5f.open
OSError: Unable to open file (file signature not found)"