mirror of
https://github.com/zebrajr/faceswap.git
synced 2025-12-06 00:20:09 +01:00
Phaze A - Allow outputs divisible by 16
This commit is contained in:
parent
5d00025884
commit
603fdc2a35
|
|
@ -163,8 +163,8 @@ class Model(ModelBase):
|
|||
"""
|
||||
def __init__(self, *args, **kwargs) -> None:
|
||||
super().__init__(*args, **kwargs)
|
||||
if self.config["output_size"] % 64 != 0:
|
||||
raise FaceswapError("Phaze-A output shape must be a multiple of 64")
|
||||
if self.config["output_size"] % 16 != 0:
|
||||
raise FaceswapError("Phaze-A output shape must be a multiple of 16")
|
||||
|
||||
self._validate_encoder_architecture()
|
||||
self.config["freeze_layers"] = self._select_freeze_layers()
|
||||
|
|
|
|||
|
|
@ -65,7 +65,7 @@ _DEFAULTS = {
|
|||
"Resolution (in pixels) of the output image to generate.\n"
|
||||
"BE AWARE Larger resolution will dramatically increase VRAM requirements."),
|
||||
"datatype": int,
|
||||
"rounding": 64,
|
||||
"rounding": 16,
|
||||
"min_max": (64, 2048),
|
||||
"group": "general",
|
||||
"fixed": True},
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user