Page 1 of 1

Index Error - Alignments

Posted: Fri Apr 02, 2021 8:51 pm
by SpArKyxRAIN

Oddly, I have narrowed this issue down to the alignments file. I have parsed and read quite a bit on the forum for this to see if I can find a solution. Or a solution not related that may work.

Seems like after extracting from two more videos to give some fresh data this error will keep coming up
"IndexError: tuple index out of range

I've sorted, renamed etc but to no avail. Checked the logs and it looks like it is trying to load.

""_extract_face called without a loaded image. Returning empty face.
04/02/2021""

I have 3 seperate videos I've extracted from with one of them being the main swap. But for added variation I added in two more sources .

Possible I missed something? Have log file if needed.

Thank you

-A


Re: Index Error - Alignments

Posted: Fri Apr 02, 2021 8:53 pm
by torzdf

This is fine:
_extract_face called without a loaded image. Returning empty face.

For the other, I will need the crash report.


Re: Index Error - Alignments

Posted: Fri Apr 02, 2021 8:55 pm
by SpArKyxRAIN

Crash report Added


Re: Index Error - Alignments

Posted: Fri Apr 02, 2021 9:06 pm
by torzdf

Please update to latest faceswap, and run again. It will error. Please provide the crash report you receive and I should be able to diagnose.


Re: Index Error - Alignments

Posted: Fri Apr 02, 2021 9:40 pm
by SpArKyxRAIN

My apologies on that. Looks like an active bug being tracked. Here is updated crash report


Re: Index Error - Alignments

Posted: Fri Apr 02, 2021 10:16 pm
by torzdf

Not at all. I literally just put the "active bug" code in so I could get some more information out about what is going wrong.

So.... the issue is that you have mismatched sized faces in the training folder. I will look to put something in to catch this and output a more useful error message in future.

Basically you have a load of 512px images and 704px images in that folder. Not quite sure why you're trying to load 704px images, but there's your problem.

Because of the way we load and batch images all images must be the same size.


Re: Index Error - Alignments

Posted: Fri Apr 02, 2021 11:32 pm
by SpArKyxRAIN

Interesting. I would have to redo those then. I do not know why those images would of been a different size as I have kept the settings the same.

I'll update once I re-do them


Re: Index Error - Alignments

Posted: Sat Apr 03, 2021 6:12 am
by SpArKyxRAIN

Sorted images by dimensions and re-extracted all incorrect ones. Problem solved

Thank you for all your help