Page 1 of 1

Manual Alignments Tool issues

Posted: Tue Feb 09, 2021 10:52 pm
by MaCaWi

I'm seeing some weird behavior in the Manual alignment tool and I'm not sure if it is a bug, or if I am just misinterpreting things. I've been playing around with Faceswap for a few days, mostly just following the main guides from this forum.

As you can see in the video, selecting an image seems to throw off the mask. Note the preview before I select an image, and the resulting display. Using the "next frame" functions seems to throw everything off as well.

Thanks for any advice!


Re: Manual Alignments Tool issues

Posted: Tue Feb 09, 2021 11:20 pm
by torzdf

The input to the manual tool should be frames or a video, not a faces folder.


Re: Manual Alignments Tool issues

Posted: Wed Feb 10, 2021 12:32 am
by MaCaWi
torzdf wrote: Tue Feb 09, 2021 11:20 pm

The input to the manual tool should be frames or a video, not a faces folder.

I figured I was missing something simple... that did the trick.

Appreciate the help!


Using Manual Tool with folder of images as source

Posted: Thu Feb 11, 2021 10:58 pm
by F_Again

Hi
I've been using the manual tool with pretty good success on video based sources. However, I have a bunch of additional images in png format that I'm also trying to create alignments for for later training.

The Extract and Sort process go just fine. When I load the output into the manual tool, I get some wonky behavior. As noted in another thread, the alignments are all shifted off the extracted images each time I advance through the images. And when I go to extract the final faces based on the redone alignments, I get the error below.

Reading the threads, it seems like the manual tool really wants the extraction process to use video, not source images. Is that true? DId I miss a way to fix alignments if the source is a folder of distinct photos? Or am I being a noob and missing something obvious?

Any help appreciated.

Code: Select all

Exception in Tkinter callback
Traceback (most recent call last):
File "C:\Users\rshah\MiniConda3\envs\faceswap\lib\tkinter\__init__.py", line 1883, in __call__
return self.func(*args)
File "C:\Users\rshah\MiniConda3\envs\faceswap\lib\tkinter\__init__.py", line 804, in callit
func(*args)
File "C:\Users\rshah\faceswap\tools\manual\detected_faces.py", line 370, in _monitor_extract
thread.check_and_raise_error()
File "C:\Users\rshah\faceswap\lib\multithreading.py", line 84, in check_and_raise_error
raise error[1].with_traceback(error[2])
File "C:\Users\rshah\faceswap\lib\multithreading.py", line 37, in run
self._target(*self._args, **self._kwargs)
File "C:\Users\rshah\faceswap\tools\manual\detected_faces.py", line 417, in _background_extract
self._alignments.data[basename]["faces"] = final_faces
KeyError: '16123556_0.png'

Re: Using Manual Tool with folder of images as source

Posted: Fri Feb 12, 2021 12:02 am
by bryanlyon

You can use images, but don't give it the folder of extracted faces, you need to give it the original folder you extracted from.


Re: Using Manual Tool with folder of images as source

Posted: Fri Feb 12, 2021 12:17 am
by F_Again

... and there's my noob error. Thanks for the quick reply!