Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

face swap instead of pet swap #25

Open
ghost opened this issue Sep 3, 2019 · 20 comments
Open

face swap instead of pet swap #25

ghost opened this issue Sep 3, 2019 · 20 comments

Comments

@ghost
Copy link

ghost commented Sep 3, 2019

https://github.com/shaoanlu/fewshot-face-translation-GAN
uses modules from FUNIT and SPADE for face-swapping but the quality of swaps isnt as good as FUNIT, are there particular limits like expressions and rotations?

@iperov
Copy link

iperov commented Sep 14, 2019

I just ported funit to pure keras and started training with 2 classes for face swap

@iperov
Copy link

iperov commented Sep 14, 2019

python_2019-09-14_13-08-11

@ghost
Copy link
Author

ghost commented Sep 14, 2019

@iperov cool, is this port public or will it be part of deepfacelab?

@iperov
Copy link

iperov commented Sep 14, 2019

part of dfl

@eps696
Copy link

eps696 commented Sep 16, 2019

when approx it will appear in your dfl?

@iperov
Copy link

iperov commented Sep 16, 2019

@eps696 I dont know , currently testing...
Do you want source code for keras ?

@eps696
Copy link

eps696 commented Sep 16, 2019

would love to try it
[dfl looks a bit overloaded by end-user convenience features, cleaner task-oriented code would b perfect]

@mingyuliutw
Copy link
Contributor

In the last page of the FUNIT arxiv paper (which will be presented in ICCV 2019), we do have the few-shot face translation experiments. We simply use CelebA for the experiments. I expect combining with SPADE and utilizing landmarks should lead to better performance thought.

image

@niley1nov
Copy link

niley1nov commented Oct 20, 2019

@mingyuliutw I am trying to train FUNIT on celebA but I am confused. What are the classes? If I take every person as a different class then there would be too much classes. Or can I take real as 1 and fake as 0, nothing more? Please Guide me.

@mingyuliutw
Copy link
Contributor

Each human identity is a class. CelebA has the person name for each photo. You can divide the training set into different classes using the name.

@iperov
Copy link

iperov commented Oct 20, 2019

I trained FUNIT on 256 VGGFace dataset clases for a week.

Currently, it seems that it cannot correctly convert unknown persons.

FUNIT_preview_TEST

@iperov
Copy link

iperov commented Oct 20, 2019

@mingyuliutw, are 256 persons with 69k total photos enough for the model?

should I expand to 1024, or 2048 persons ?

@iperov
Copy link

iperov commented Oct 21, 2019

@mingyuliutw can you give me advice for network config for 1024 person classes and 200k photos?

@iperov
Copy link

iperov commented Oct 21, 2019

@mingyuliutw is it good that one class has 60 photos and other class has 500 photos?

@miaoYuanyuan
Copy link

miaoYuanyuan commented Oct 26, 2019

@iperov
would you like to share me your keras code? thank you.

@iperov
Copy link

iperov commented Oct 26, 2019

@miaoYuanyuan
Copy link

thank you ~~

@MengXinChengXuYuan
Copy link

@iperov
Hi I'm quite interested how you trained fuint for face swap
Note N faces in the trainig data set, you just followed the origin fuint traning set and treat N ids as N classes right?

@iperov
Copy link

iperov commented Nov 5, 2019

@MengXinChengXuYuan

for 1024 persons I got unsatisfactory result.

seen faces swap:
377250

unseen faces swaps are unrecognizable:
python_2019-11-05_12-41-24

May be if train it on 8000 persons on bigger size funit we will get better result, but I have no time and no hardware for that.

for 2 persons result is much worse than classic deepfake autoencoder.
64905963-b6454980-d6f0-11e9-886d-4cf2e8b5956a 1

@Cathy1412
Copy link

ce possible de donner des caractéristiques de rat à une personne sur une photo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants