aaah i finally understand Lpips

Want to understand the training process better? Got tips for which model to use and when? This is the place for you


Forum rules

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

This forum is for discussing tips and understanding the process involved with Training a Faceswap model.

If you have found a bug are having issues with the Training process not working, then you should post in the Training Support forum.

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

Post Reply
User avatar
Ryzen1988
Posts: 57
Joined: Thu Aug 11, 2022 8:31 am
Location: Netherlands
Has thanked: 8 times
Been thanked: 28 times

aaah i finally understand Lpips

Post by Ryzen1988 »

It took me a while to understand Lpips in usage because strange and ugly stuff seems to happen always.
I went on with experimenting because my normal ms-ssim seemed to be not very effective in training with clipV

So i did Logcosch + Lpips vgg16 and i was amazed.
The first 3000-5000 its you only see very ugly faces and you wonder if it will every succeed.
at 10000 its you see sharp but somewhat strange faces.
and then it very quickly gets very good. You just have to ignore the beginning strangeness.

For now this experience is only with clip, but with this loss function combo the results are way better with a very reduced training time then using MS-SSIM loss function.
When combining MS-SSIM with Lpips vgg16 also gives much slower training results.
Vgg is way more effective then squeeze

The level of detail i get with clipv on this loss function way exceeds what i ever got with other loss functions.

User avatar
MaxHunter
Posts: 194
Joined: Thu May 26, 2022 6:02 am
Has thanked: 177 times
Been thanked: 13 times

Re: aaah i finally understand Lpips

Post by MaxHunter »

Thanks for these updates! 😉

User avatar
Ryzen1988
Posts: 57
Joined: Thu Aug 11, 2022 8:31 am
Location: Netherlands
Has thanked: 8 times
Been thanked: 28 times

Re: aaah i finally understand Lpips

Post by Ryzen1988 »

the trick is just ignore the ugly strangeness for long enough en then it gets pretty :lol:

User avatar
torzdf
Posts: 2687
Joined: Fri Jul 12, 2019 12:53 am
Answers: 159
Has thanked: 135 times
Been thanked: 628 times

Re: aaah i finally understand Lpips

Post by torzdf »

FWIW, vgg16 is vastly superior to the other flavours of LPIPS, but is more of a VRAM hog.

Training very high resolution models, I don't get artefacting at all from it

My word is final

User avatar
1315024
Posts: 4
Joined: Wed Nov 15, 2023 1:52 pm
Has thanked: 1 time

Re: aaah i finally understand Lpips

Post by 1315024 »

Ryzen1988 wrote: Wed Oct 11, 2023 11:22 am

It took me a while to understand Lpips in usage because strange and ugly stuff seems to happen always.
I went on with experimenting because my normal ms-ssim seemed to be not very effective in training with clipV

So i did Logcosch + Lpips vgg16 and i was amazed.
The first 3000-5000 its you only see very ugly faces and you wonder if it will every succeed.
at 10000 its you see sharp but somewhat strange faces.
and then it very quickly gets very good. You just have to ignore the beginning strangeness.

For now this experience is only with clip, but with this loss function combo the results are way better with a very reduced training time then using MS-SSIM loss function.
When combining MS-SSIM with Lpips vgg16 also gives much slower training results.
Vgg is way more effective then squeeze

The level of detail i get with clipv on this loss function way exceeds what i ever got with other loss functions.

I'm a newbie, I would like to know what the specific configuration weights of the loss function you use are。Loss Function Loss Function2 Loss Function3 Loss Function4,Sorry for my poor English, I use machine translation。Thank you so much

Post Reply