The following stack is shown after Tool->Alignment->Remove-Face runs.
It actually goes through fine, but right after it removes them, it throws this exception. And I check the file and it doesn't persist the changes to the alignment file.
Code: Select all
05/07/2021 12:42:52 INFO 13 alignment(s) were removed from alignments file
05/07/2021 12:42:54 ERROR Got Exception on main handler:
Traceback (most recent call last):
File "C:\Users\Jason\faceswap\lib\cli\launcher.py", line 182, in execute_script
process.process()
File "C:\Users\Jason\faceswap\tools\alignments\alignments.py", line 40, in process
job.process()
File "C:\Users\Jason\faceswap\tools\alignments\jobs.py", line 678, in process
self._update_png_headers()
File "C:\Users\Jason\faceswap\tools\alignments\jobs.py", line 712, in _update_png_headers
face.from_alignment(self._alignments.get_faces_in_frame(frame)[new_index])
IndexError: list index out of range
05/07/2021 12:42:54 CRITICAL An unexpected crash has occurred. Crash report written to 'C:\Users\Jason\faceswap\crash_report.2021.05.07.124252443663.log'. You MUST provide this file if seeking assistance. Please verify you are running the latest version of faceswap before reporting
I read the guides, the comments on the guides, and surfed the other threads. Although some touched this subject, they failed to give me the answer to my issue. I also want to note that this exception is not thrown if I am using a single face-set. You understand in a bit.
I gathered all the files for this process. There were two folders containing a collection of images, and another folder containing vids. I performed the extract on both folders, and ALL the vids, and placed them all in a single folder. So that single folder contains multiple face-sets, estimated over 20+.
Then I Tools->Sort->Face that folder. When finished, I went through the entire contents and removed irrelevant content (that took a long time). Finally, I was ready to sync the alignment files against the removed faces. And here is where we hit the wall. I tried running it with the images alignment file, and some video alignment files, and the exception is the same for any of them.
I assumed this was something to do with the fact that I consolidated all the extracts into a single folder, so I thought that merging the alignments would solve my issue. I noticed that merging was no longer there and I read on why that was (I was happy about the change). But I did find that when you hover over the Alignments File field in the Tools->Alignments->Data section, the tooltip says that if I want to perform a merge to add the file paths to the alignments in a space delimited format. I tried to select the files via the file picker, but it only allowed one at a time. So I copied all the file paths and painstakingly formatted them to the tooltip's specification. However, to my dismay, the process treated that path as a single file in which it threw a file not found/invalid path exception. So I found out that merging no longer exists.
So, if there is something I can do to salvage this situation, I'm all ears. If there isn't, looks like I'll have to start over. Please help!