speed up ui, BREAKING : see changelog

This commit is contained in:
Tran Xen
2023-08-23 14:14:21 +02:00
parent 7830eb1da9
commit 6d69f69509
5 changed files with 41 additions and 27 deletions
+7 -1
View File
@@ -109,7 +109,13 @@ class FaceSwapScript(scripts.Script):
components += faceswaplab_unit_ui.faceswap_unit_ui(is_img2img, i)
post_processing = faceswaplab_tab.postprocessing_ui()
# If the order is modified, the before_process should be changed accordingly.
return components + post_processing
components = components + post_processing
# Ask sd to not store in ui-config.json
for component in components:
setattr(component, "do_not_save_to_config", True)
return components
def read_config(
self, p: StableDiffusionProcessing, *components: Tuple[Any, ...]