|
|
@ -80,7 +80,7 @@ def faceswap_unit_advanced_options(
|
|
|
|
elem_id=f"{id_prefix}_face{unit_num}_erosion_factor",
|
|
|
|
elem_id=f"{id_prefix}_face{unit_num}_erosion_factor",
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
return [
|
|
|
|
components = [
|
|
|
|
face_restorer_name,
|
|
|
|
face_restorer_name,
|
|
|
|
face_restorer_visibility,
|
|
|
|
face_restorer_visibility,
|
|
|
|
codeformer_weight,
|
|
|
|
codeformer_weight,
|
|
|
@ -91,6 +91,11 @@ def faceswap_unit_advanced_options(
|
|
|
|
erosion_factor,
|
|
|
|
erosion_factor,
|
|
|
|
]
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for component in components:
|
|
|
|
|
|
|
|
setattr(component, "do_not_save_to_config", True)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return components
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def faceswap_unit_ui(
|
|
|
|
def faceswap_unit_ui(
|
|
|
|
is_img2img: bool, unit_num: int = 1, id_prefix: str = "faceswaplab"
|
|
|
|
is_img2img: bool, unit_num: int = 1, id_prefix: str = "faceswaplab"
|
|
|
@ -281,10 +286,6 @@ Otherwise, read the [doc](https://glucauze.github.io/sd-webui-faceswaplab/doc/)
|
|
|
|
+ post_inpainting
|
|
|
|
+ post_inpainting
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
# Ask sd to not store in ui-config.json
|
|
|
|
|
|
|
|
for component in gradio_components:
|
|
|
|
|
|
|
|
setattr(component, "do_not_save_to_config", True)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# If changed, you need to change FaceSwapUnitSettings accordingly
|
|
|
|
# If changed, you need to change FaceSwapUnitSettings accordingly
|
|
|
|
# ORDER of parameters is IMPORTANT. It should match the result of FaceSwapUnitSettings
|
|
|
|
# ORDER of parameters is IMPORTANT. It should match the result of FaceSwapUnitSettings
|
|
|
|
return gradio_components
|
|
|
|
return gradio_components
|
|
|
|