mirror of
https://github.com/ParisNeo/lollms.git
synced 2025-04-16 14:58:52 +00:00
fixed errors
This commit is contained in:
parent
50637a8036
commit
dd713c24cd
@ -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}'.")
|
||||
|
||||
|
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user