haofanwang / inswapper

One-click Face Swapper and Restoration powered by insightface 🔥

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

IndexError: list index out of range | of source_indexes and target_indexes

PongpreechaSuea opened this issue · comments

I'd like to know what source_indexes and target_indexes are and what values need to be input.

image

This Error
image

These are the indexes of the faces, from left to right, starting at 0.
So the first face will be index 0, 2nd face will be index 1, etc.

Thank you very much, I can do it now.

If me have input 4 pictures and there are 4 faces in the target picture, how should we adjust the source_indexes = "0" and target_indexes = "0" ?