Page 1 of 1

Running convert tool on renamed file causing "no alignment found... skipping" errors?

Posted: Mon Sep 27, 2021 3:41 pm
by Replicon

Maybe I'm doing something wrong, but I was expecting this to work...

TL;DR:

  • convert tool on vid1.mp4, vid1_alignments.fsa works fine

  • cp vid1.mp4 vid2.mp4; cp vid1_alignments.fsa vid2_alignments.fsa

  • convert tool on vid2.mp4, vid2_alignments.fsa skips all frames???

I was experimenting with the difference between editing masks for obstructions and NOT editing masks for obstructions, with a short destination video.

I started by extracting an alignments file from the video (call it vid1.mp4).

I then ran the manual tool, and fixed the landmarks (ignoring the obstructions).

I then copied vid1.mp4 and vid1_alignments.fsa to vid2.mp4 and vid2_alignments.fsa, to avoid having to repeat the previous work.

I then opened vid2[_alignments] in the manual tool, and did the manual mask edit for the obstruction (the landmarks are already corrected, from my previous efforts).

While everything looks good in vid2 (all frames are there and have alignments), when I run the convert tool, it skips all the frames and doesn't apply the conversion.

Just in case I did something wrong and clobbered the alignments, I did a clean experiment where I JUST copied video/alignment to a different name (vid3 instead of vid1 in the same path), and it still didn't work.

Is there some kind of "source filename" encoded in the alignments file, that makes it so when I make a copy of the alignment/video to a different name, it fails to find stuff? Like, maybe it doesn't just encode "frame 1 alignments: <foo>", but it's more like, "frame 1 alignments for file vid1.mp4"... but that doesn't really make sense. Plus, I extract in the cloud, and was doing convert on my local machine, so the absolute path of the source files during extract is different anyway (though relative path is the same I suppose).


Re: Running convert tool on renamed file causing "no alignment found... skipping" errors?

Posted: Sat Oct 09, 2021 12:47 pm
by torzdf

IIRC, yes the name of the video matters.

This is a legacy from when Faceswap only accepted images (not video) as input. The filename of each image was used to track the file.

The alignments file basically treats a video file as a series of images, and uses the original filename to track each frame in the video (as if it was an image in a folder)

I'm speculating here, so may be wrong. I will try to remember to look at this if I have a second.