mirror of
https://github.com/vladmandic/automatic
synced 2026-09-20 01:31:13 +02:00
allow float ar
This commit is contained in:
@@ -59,7 +59,7 @@ def ar_change(ar, width, height):
|
||||
if ar == 'AR':
|
||||
return gr.update(interactive=True), gr.update(interactive=True)
|
||||
try:
|
||||
(w, h) = [int(x) for x in ar.split(':')]
|
||||
(w, h) = [float(x) for x in ar.split(':')]
|
||||
except Exception as e:
|
||||
shared.log.warning(f"Invalid aspect ratio: {ar} {e}")
|
||||
return gr.update(interactive=True), gr.update(interactive=True)
|
||||
|
||||
Reference in New Issue
Block a user