Inference
- class plugins.train.model._base.inference.Inference(saved_model: Model, switch_sides: bool)
Bases:
objectCalculates required layers and compiles a saved model for inference.
- Parameters:
saved_model (
keras.Model) – The saved trained Faceswap modelswitch_sides (bool) –
Trueif the swap should be performed “B” > “A”Falseif the swap should be “A” > “B”
Methods Summary
__call__()Obtain the inference model.
Methods Documentation
- __call__() Model
Obtain the inference model.
- Return type:
The built Keras inference model for the requested swap side
- __call__() Model
Obtain the inference model.
- Return type:
The built Keras inference model for the requested swap side