iperov / DeepFaceLab

DeepFaceLab is the leading software for creating deepfakes.
GNU General Public License v3.0
16.34k stars 25 forks source link

Continue to extract faces from my own extracted frames when extracting faces is interrupted (Error in fetching the last index. ) #5693

Open Jeffrey-deng opened 1 year ago

Jeffrey-deng commented 1 year ago

Expected behavior

Continue to extract faces from my own extracted frames when extracting faces is interrupted

Actual behavior

Click to continue, there will be an error

Error in fetching the last index. Extraction cannot be continued.

Steps to reproduce

Multiple "_" in the filename

Reason for error:

line751 in DeepFaceLab_NVIDIA_RTX3000_series\_internal\DeepFaceLab\mainscripts

input_image_paths = input_image_paths[ [ Path(x).stem for x in input_image_paths ].index ( Path(output_images_paths[-128]).stem.split('_')[0] ) : ]

When I don't use the default extraction, it will report an error when there are multiple “_” in the file name, This can be modified to be compatible with many situations.

Take the last “_” in the file name

input_image_paths = input_image_paths[ [ Path(x).stem for x in input_image_paths ].index ( Path(output_images_paths[-128]).stem[:Path(output_images_paths[-128]).stem.rfind("_")] ) : ]

mr2girthy commented 1 year ago

Hello friend, i see you got the same issue I'd had.I got that and what I did was I went Into the aligned folder. Copied all the faces and kept them safely in a new folder I had created on the desktop. Then ran the extraction and when I got the prompt again I chose to overwrite it. And when the new faces extraction was done. . All I did was go to the folder on desktop where I had copied the previously saved faces to. And I moved them back into the aligned folder with the newer extracted faces. If that makes any sense you should try it.

mr2girthy commented 1 year ago

My deepfacelab model has trueface power at zero for default and background style power zero I was tweaking those while training Saehd and somehow I was not liking the results so I turned them back to zero. Idk if it's a necessity to use the eyes and mouth priority as yes instead of the defaulted no that its on.. Please share thoughts.

kingace4q commented 1 year ago

Mr2girthy please I need your help understanding all this