mirror of
https://github.com/altoiddealer/--sd-webui-ar-plusplus.git
synced 2026-04-29 18:51:24 +00:00
Add round_to_multiple function
This commit is contained in:
@@ -563,3 +563,7 @@ class AspectRatioScript(scripts.Script):
|
||||
self.image.append(component)
|
||||
if kwargs.get("elem_id") == "img_inpaint_base":
|
||||
self.image.append(component)
|
||||
|
||||
|
||||
def round_to_multiple(x, multiple):
|
||||
return multiple * round(x / multiple)
|
||||
|
||||
Reference in New Issue
Block a user