faceswap icon indicating copy to clipboard operation
faceswap copied to clipboard

As this is meant to report issues, is there any place where we can chat about the code / new features?

Open BeatHarness opened this issue 8 years ago • 19 comments

I've been doing some stuff with SSIM mixed with L1/L2 for loss functions, other activation layer types, etc. I'd like to discuss new options / features with you guys but I understand this would not be the place for that..

So where could we have an open discussion on who's doing what, who's trying what, results of different algos etc.?

BeatHarness avatar Feb 07 '18 15:02 BeatHarness

There are side repos for usage and theory in https://github.com/deepfakes/faceswap-playground and https://github.com/deepfakes/faceswap-model but they are not much used.

If it is to dicuss about theory, faceswap-model is better, if it is to add new features and then add code, it is ok to do it here. If you have code, it is even better to do a PR so that other can try it on their side

Clorr avatar Feb 07 '18 15:02 Clorr

Okay.

I'm thinking about using plugins for the activation as well, so we can add / test different activation types instead of the current LeakyReLu (like SELU, PELU etc.).. The same for the used optimizer (Adam / SGD / Nadam etc.)

But using custom activation types (like the ones in keras.contrib) change the serialization of the models - models trained with one activation type can't be loaded / continued with another.

So I'd like to propose to store used settings (model, optimizer, activation) in the actual filenames as to not overwrite previous data when switching to another type for testing.

I could imagine storing decoder_A_dssim_adam_pelu.h5 or decoder_B_original_nadam_leakyrelu.h5

Any thoughts?

BeatHarness avatar Feb 07 '18 15:02 BeatHarness

I totally agree, I did that for GAN, I should have done it for LowMem

Clorr avatar Feb 07 '18 15:02 Clorr

The suffix should match the plugin name IMHO

Clorr avatar Feb 07 '18 15:02 Clorr

We should do it for all parameters that break the serialization / ability to continue really.

BeatHarness avatar Feb 07 '18 15:02 BeatHarness

Ah ok, I understand. Thats possible, file names are just string we can construct on the fly...

Clorr avatar Feb 07 '18 16:02 Clorr

Can I have a go at this?

BeatHarness avatar Feb 07 '18 16:02 BeatHarness

Oh, feel free to do as you want and propose to others. My opinion is that it seems fine, but I'm not the only one here ;-)

Clorr avatar Feb 07 '18 16:02 Clorr

I can look over it. Its better than the code I look over for work.

On 8 February 2018 at 03:33, Clorr [email protected] wrote:

Oh, feel free to do as you want and propose to others. My opinion is that it seems fine, but I'm not the only one here ;-)

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/deepfakes/faceswap/issues/142#issuecomment-363827568, or mute the thread https://github.com/notifications/unsubscribe-auth/AEDEeGNLTcyv09xjONetLpCYYkacKOkuks5tSdBogaJpZM4R84X4 .

--

yubikey https://pgp.mit.edu/pks/lookup?op=get&search=0xEF32AD3C725E89DD

gdunstone avatar Feb 07 '18 16:02 gdunstone

By the way, what do I have to change to up the face resolution from 64x64 to 128x128?

BeatHarness avatar Feb 07 '18 19:02 BeatHarness

Alright I've got it working locally with selectable loss functions (including SSIM, and blend-weights to blend SSIM with L1 or L2), and the filenames now include the name of the used model. I'll add selectable activation functions including PELU, and probably make the optimizer selectable as well.

I just need to figure out how git works (I only have svn/p4 experience) to sync to master, merge my changes and commit. Going to RTFM now.

BeatHarness avatar Feb 07 '18 21:02 BeatHarness

You should fork the project and develop your changes, then create a pull request for your fork.

When you create the pull request, add me as a reviewer.

On 8 Feb. 2018 11:27, "subzerofun" [email protected] wrote:

@IUsedToBeAPygmy https://github.com/iusedtobeapygmy Hey if you find out what to change for the 128x128 resolution – could you please upload a gist of the edited files? I've been trying around far too long and can't solve it myself.

— You are receiving this because you were assigned. Reply to this email directly, view it on GitHub https://github.com/deepfakes/faceswap/issues/142#issuecomment-363959896, or mute the thread https://github.com/notifications/unsubscribe-auth/AEDEeANEpkNVFB9zvInhj1AFxGyJe8uEks5tSj9mgaJpZM4R84X4 .

gdunstone avatar Feb 08 '18 01:02 gdunstone

I'd already forked and implemented my changes, but I figured I'd sync / merge to the latest master version first before creating a pull request? Once I've figured this out I'll create the pull request and add you as a reviewer.

BeatHarness avatar Feb 08 '18 07:02 BeatHarness

@IUsedToBeAPygmy regarding the topic of this issue - what about opening a Gitter room or a Slack workspace? Even IRC/Discord could work, honestly :)

Dev-iL avatar Feb 08 '18 08:02 Dev-iL

I'd prefer not to use a chat environment, I'd rather use a forum environment where the discussion is permanent allowing people to join the discussion on their own time.

BeatHarness avatar Feb 08 '18 14:02 BeatHarness

I think having a Discord guild would be beneficial for people looking for support.

Tvde1 avatar Feb 08 '18 15:02 Tvde1

I personally agree with Pygmy In a forum format, important information can be kept and seen by a lot of people. In a chat useful bits of info are swept away by a slew of useless banter. I thought /r/deepfakes would have been an excellent place for technical discussion... But it was taken over by the internet

andykdy avatar Feb 08 '18 19:02 andykdy

@gdunstone I've created the pull request, but I don't know how to add you as reviewer. Be gentle, it's my first go at using Python and Github ;)

BeatHarness avatar Feb 08 '18 21:02 BeatHarness