How is the scaling determined for the different Phaze-A models? I'm testing out models not included in keras, but not sure what to put for scaling or when to leave it blank. I see that "some models expect different scaling" I'm just not sure how to know. https://github.com/deepfakes/faceswap/b ... _a.py#L587
Question about Phaze-A model scaling
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.
Re: Question about Phaze-A model scaling
Ha! Your link just showed me a bug in my -1 to 1 scaling (now fixed), so thanks for that.
I just pulled this information from keras applications, for example this for efficientnet (https://www.tensorflow.org/api_docs/pyt ... cientNetB0):
Note: each Keras Application expects a specific kind of input preprocessing. For EfficientNet, input preprocessing is included as part of the model (as a Rescaling layer), and thus tf.keras.applications.efficientnet.preprocess_input is actually a pass-through function. EfficientNet models expect their inputs to be float tensors of pixels with values in the [0-255] range.
Faceswap, by default, normalizes to the 0-1 range, so when using encoders in an alternative numeric range, we need to change our inputs. For different encoders you will need to refer to the original code/documentation to see what numeric range is required, and what adjustments would need to be made.
As an aside, I would be very interested in seeing anything you are working on and results that it achieves.
My word is final
Re: Question about Phaze-A model scaling
This is super helpful, thanks! I'll share any good or interesting results I come across.