This commit is contained in:
lllyasviel
2023-09-21 03:04:27 -07:00
committed by GitHub
parent e5ca884886
commit 93ee4eabe3
2 changed files with 8 additions and 4 deletions
+1 -1
View File
@@ -1 +1 @@
version = '2.0.76'
version = '2.0.77'
+7 -3
View File
@@ -98,11 +98,15 @@ def solve_abcd(x, a, b, c, d, k, outpaint):
if area_abcd(a, b, c, d) >= max_area:
break
if (b - a) < (d - c):
a -= 1
b += 1
else:
a -= 2
b += 2
c -= 1
d += 1
else:
a -= 1
b += 1
c -= 2
d += 2
a, b, c, d = regulate_abcd(x, a, b, c, d)
return a, b, c, d