This commit is contained in:
lllyasviel 2023-09-21 03:04:27 -07:00 committed by GitHub
parent e5ca884886
commit 93ee4eabe3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 4 deletions

View File

@ -1 +1 @@
version = '2.0.76'
version = '2.0.77'

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