Page 1 of 1
Manual tool error
Posted: Mon Nov 09, 2020 3:56 pm
by jpebcac
I receive this error on manual alignments .. and then get stuck. Any thoughts?
Exception in Tkinter callback
Traceback (most recent call last):
File "C:\Users\Chris\MiniConda3\envs\faceswap\lib\tkinter\__init__.py", line 1883, in call
return self.func(*args)
File "C:\Users\Chris\faceswap\tools\manual\manual.py", line 850, in set_frame
filename, frame = self.loader.image_from_index(position)
File "C:\Users\Chris\faceswap\lib\image.py", line 1111, in image_from_index
filename = self.file_list[index]
IndexError: list index out of range
Re: Manual tool error
Posted: Mon Nov 09, 2020 6:26 pm
by torzdf
Most likely you are trying to give the manual tool a folder of extracted faces rather than the original video/folder of images.
Re: Manual tool error
Posted: Tue Jan 05, 2021 1:46 am
by tokafondo
I'm also getting this in the manual tool, but only when checking "thumb regen". I'm pretty sure I'm supplying the frames folder instead of the faces folder.
crash log report attached.
Re: Manual tool error
Posted: Tue Jan 05, 2021 10:50 am
by tokafondo
Well, I found the reason for this error and I'll explain.
I did a reextract from sources redoing detection and so, instead of already made prealignments.
The difference was that in the previous full extraction, I tried to save some time by deleting unwanted extracted faces before the extraction process itself was done. That was really a mistake because when the extraction script, module or whatever, finished, those pictures it expected to be there to be indexed, didn't exist anymore so the index was created without them.
After the second extraction, I let the script finish completely and then removed the unwanted faces and now the index matches the pictures in the folder.
LESSON LEARNED: Let the scripts do their jobs from start to end.