update diffuser samplers and refiner workflows

This commit is contained in:
Vladimir Mandic
2023-07-16 12:56:52 -04:00
parent 0f81cfc213
commit 7a859cdb18
17 changed files with 208 additions and 166 deletions
+5 -2
View File
@@ -97,8 +97,11 @@ class UiLoadsave:
self.add_component(f"{path}/{x.value}", x)
def read_from_file(self):
with open(self.filename, "r", encoding="utf8") as file:
return json.load(file)
if os.path.exists(self.filename):
with open(self.filename, "r", encoding="utf8") as file:
return json.load(file)
else:
return {}
def write_to_file(self, current_ui_settings):
with open(self.filename, "w", encoding="utf8") as file: