Swapping face on image only... no luck. (2025)

Forum rules

Read the FAQs and search the forum before posting a new topic.

This forum is for reporting errors with the Convert process. If you want to get tips, or better understand the Convert process, then you should look in the Convert Discussion forum.

Please mark any answers that fixed your problems so others can find the solutions.

Locked

  • Print view

12 posts• Page 1 of 1

sergor
Posts: 18
Joined: Wed Jan 15, 2020 7:59 pm
Hasthanked: 9 times
Beenthanked: 1 time

Swapping face on image only... no luck.

Postby sergor »

First off - you devs are nothing but brilliant - this program motivates to go beyond what it does - this coming from a man who first rejoiced when the 8" floppy was reduced to 5,25" (yes I'm that old!)

I have been searching for a while for this topic and couldn't find one:

Starting slow I have gone through every process from extracting to sorting - torzdf needs cudos for documention - second I thought I read on a post (can't find it now..grr) that to simply swap faces in an image - no training was required for the convert. So to follow the process - do I make 2 libraries with single image (A->B) and the use the Alignment from the (Extracted, Sorted and Aligned) Faces folder?

I understand the process for videos just not when handling single images.And if the reply is "SAME PROCESS" - then I'm doing something very wrong.

If you already have this as an answer/solution posted - then apologies to any mod reading!

sergor
"Old - but not obsolete"

Top

torzdf
Posts: 2761
Joined: Fri Jul 12, 2019 12:53 am

Answers: 159

Hasthanked: 141 times
Beenthanked: 644 times

Re: Swapping face on image only... no luck.

Postby torzdf »

I'm not entirely clear on what you're trying to do.

Ultimately, to swap faces (be it a single image or a video) then you need a trained model.

To have a trained model you need many many faces for both A and B to train on... so yes, unfortunately, the process is still the same.

My word is final

Top

sergor
Posts: 18
Joined: Wed Jan 15, 2020 7:59 pm
Hasthanked: 9 times
Beenthanked: 1 time

Re: Swapping face on image only... no luck.

Postby sergor »

[mention]torzdf[/mention] Was trying to figure out how to replace face in an image.

You train two different models - how does that allow you changing one face in one image? (I only understand how that would work for video sequences)

I'll keep at it, I may find the answer.

Cheers.

Top

Brigant
Posts: 2
Joined: Tue Apr 07, 2020 9:35 pm

Re: Swapping face on image only... no luck.

Postby Brigant »

Have you figured it out yet?

I have the same problem. I do not want to convert videos. But swap out faces on images. I have no alignment files due to this, although I have trained models.

Without an alignment file, which I understand you get from scanning the video you cannot faceswap...I just try to figure it out also

Top

Brigant
Posts: 2
Joined: Tue Apr 07, 2020 9:35 pm

Re: Swapping face on image only... no luck.

Postby Brigant »

Got the solution:

Even if you don't use videos and only work with images, the alignment file is generated in the various directories that you extract your faces from. There they were sitting all along and with them it worked just fine.

Top

sergor
Posts: 18
Joined: Wed Jan 15, 2020 7:59 pm
Hasthanked: 9 times
Beenthanked: 1 time

Re: Swapping face on image only... no luck.

Postby sergor »

Brigant wrote: Tue Apr 07, 2020 9:50 pm

Got the solution:

Even if you don't use videos and only work with images, the alignment file is generated in the various directories that you extract your faces from. There they were sitting all along and with them it worked just fine.

Well - first I did what [mention]torzdf[/mention] told me to do - so with 20400 pictures I'm now training a model which currently is at 198000 iterations - from 17500 till now it's not really dropping in learning rate - still at 0.3800 at both folders (which suggests I've done something wrong or it hasn't "viewed" all faces enough times).

So at present I haven't tried changing a face in an image/video yet. Still tweaking the system. Installed a freeware program called cpuid - as I found out that batchsize was "killing" my system due to heat. So from 64 I turned it to 44 - system is stabile. A bit winded answer - but since starting I find the proverbial "bug" - within my own system.

And the program is so massive as to what it can actually do - that it's like looking a someone with a flight simulator and then shouting "I CAN FLY THE PLANE".

Oh one thing I can give you as tip - DO NOT DELETE alignment-backups - MERGE them!! I've had a few errors with "faces were found that doesn't exist in the alignments file. Nothing worked - until I merged the files (under Tools - Alignments - Merge)

Hope this can help
/sergor

Top

tweek_craigh
Posts: 3
Joined: Wed Apr 29, 2020 7:07 am
Beenthanked: 1 time

Re: Swapping face on image only... no luck.

Postby tweek_craigh »

Hello,

This is thread is not that old and the subject is similar to mine i didn't want to create a new one (if it's considered hijacking please tell me so and i will create a new post).

So. I have two sources, trained a model exactly like the op. (I just want to swap faces on images to try DF).

My problem comes from Convert.

  • Input dir is set as the Sources Images.
  • Output dir is set as a new folder to get the result inside
  • Model dir is the trained model
  • Alignment file is the one in the extract folder of the source image.

Now i let everything on default and clicked on "Convert".

I have no errors, it says "complete" but the output dir is completly empty. Any clue ?

(Again apoligies if i should have made a new thread)

Top

torzdf
Posts: 2761
Joined: Fri Jul 12, 2019 12:53 am

Answers: 159

Hasthanked: 141 times
Beenthanked: 644 times

Re: Swapping face on image only... no luck.

Postby torzdf »

No. I would need to see a TRACE log to see the issue (enable it with loglevel). NB: It will slow the process down and generate a very large file.

My word is final

Top

tweek_craigh
Posts: 3
Joined: Wed Apr 29, 2020 7:07 am
Beenthanked: 1 time

Re: Swapping face on image only... no luck.

Postby tweek_craigh »

I do not know how to upload in this forum so here is a direct link.

https://lastterritory.com/text_file/log_test1.log

Top

torzdf
Posts: 2761
Joined: Fri Jul 12, 2019 12:53 am

Answers: 159

Hasthanked: 141 times
Beenthanked: 644 times

Re: Swapping face on image only... no luck.

Postby torzdf »

The input folder D:\Testing\faceswap\Extract\Source\source_test1 only has 2 files in it, none of which are images. It only contains the alignments.fsa file and another folder called "source_test1"

My word is final

Top

tweek_craigh
Posts: 3
Joined: Wed Apr 29, 2020 7:07 am
Beenthanked: 1 time

Re: Swapping face on image only... no luck.

Postby tweek_craigh »

Oh... There was a seconde source_test1 folder inside of it and when using browse it was stopping at the other Swapping face on image only... no luck. (12)

Thank you Swapping face on image only... no luck. (13)

Top

sergor
Posts: 18
Joined: Wed Jan 15, 2020 7:59 pm
Hasthanked: 9 times
Beenthanked: 1 time

Re: Swapping face on image only... no luck.

Postby sergor »

tweek_craigh wrote: Wed Apr 29, 2020 7:11 am

Hello,

This is thread is not that old and the subject is similar to mine i didn't want to create a new one (if it's considered hijacking please tell me so and i will create a new post).

So. I have two sources, trained a model exactly like the op. (I just want to swap faces on images to try DF).

My problem comes from Convert.

  • Input dir is set as the Sources Images.
  • Output dir is set as a new folder to get the result inside
  • Model dir is the trained model
  • Alignment file is the one in the extract folder of the source image.

Now i let everything on default and clicked on "Convert".

I have no errors, it says "complete" but the output dir is completly empty. Any clue ?

(Again apoligies if i should have made a new thread)

Hey there, I had the exact same problem today - so you also solved my issue by asking on this thread - I only think the DEVS (moderators) take issue if a topic is non-sensical ie. requests for anything other than FS questions. For me it was during convert - 95% of my time has been with data-sets and extraction, alignment-cleanup so I struggled with input/output-paths when I finally tried my first convert.

So thanks Swapping face on image only... no luck. (15))

Have a good one
/sergor

Top

Locked

  • Print view

12 posts• Page 1 of 1

Return to “Convert Support”

Jump to

  • Support
  • ↳ Installation Support
  • ↳ Extract Support
  • ↳ Training Support
  • ↳ Convert Support
  • Faceswap Discussion
  • ↳ Extract Discussion
  • ↳ Training Discussion
  • ↳ Convert Discussion
  • ↳ Cloud Discussion
  • ↳ General Discussion
  • General Discussion
  • ↳ Content Creator Requests
  • ↳ Artificial Intelligence
  • ↳ Hardware
  • ↳ Swap Showcase
  • ↳ Introductions
Swapping face on image only... no luck. (2025)
Top Articles
Latest Posts
Recommended Articles
Article information

Author: Fredrick Kertzmann

Last Updated:

Views: 5913

Rating: 4.6 / 5 (46 voted)

Reviews: 85% of readers found this page helpful

Author information

Name: Fredrick Kertzmann

Birthday: 2000-04-29

Address: Apt. 203 613 Huels Gateway, Ralphtown, LA 40204

Phone: +2135150832870

Job: Regional Design Producer

Hobby: Nordic skating, Lacemaking, Mountain biking, Rowing, Gardening, Water sports, role-playing games

Introduction: My name is Fredrick Kertzmann, I am a gleaming, encouraging, inexpensive, thankful, tender, quaint, precious person who loves writing and wants to share my knowledge and understanding with you.