mirror of
https://github.com/vladmandic/automatic
synced 2026-09-19 17:24:32 +02:00
fix ui/misc: None desc crash, ratio/tile/lora split guards, parse_metadtaa typo, moondream type guard
Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -68,7 +68,10 @@ def ar_change(ar, width, height):
|
||||
if ar == 'AR':
|
||||
return gr.update(), gr.update()
|
||||
try:
|
||||
(w, h) = [float(x) for x in ar.split(':')]
|
||||
parts = [float(x) for x in ar.split(':')]
|
||||
if len(parts) != 2:
|
||||
raise ValueError(f"Expected 2 values, got {len(parts)}")
|
||||
w, h = parts
|
||||
except Exception as e:
|
||||
log.warning(f"Invalid aspect ratio: {ar} {e}")
|
||||
return gr.update(), gr.update()
|
||||
|
||||
Reference in New Issue
Block a user