fixed errors

This commit is contained in:
Saifeddine ALOUI 2023-12-16 01:23:34 +01:00
parent 50637a8036
commit dd713c24cd
2 changed files with 3 additions and 1 deletions

View File

@ -542,6 +542,8 @@ class TypedConfig:
entry_value = bool(entry_value)
elif entry_type == "list":
entry_value = list(entry_value)
elif entry_type == "dict":
entry_value = eval(entry_value)
else:
raise ValueError(f"Invalid field type '{entry_type}' for entry '{entry_name}'.")

View File

@ -344,7 +344,7 @@ class LollmsSD:
trace_exception(ex)
return img_paths[0], infos
return img_paths[0] if len(img_paths)>0 else None, infos
def check_controlnet(self):
try: