related judgement (#454)

This commit is contained in:
lllyasviel 2023-09-20 04:28:22 -07:00 committed by GitHub
parent 65b9364170
commit 5456a5784b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 7 deletions

View File

@ -1 +1 @@
version = '2.0.74'
version = '2.0.75'

View File

@ -15,12 +15,12 @@ def image_is_generated_in_current_ui(image, ui_width, ui_height):
if W < ui_width:
return False
k1 = float(H) / float(W)
k2 = float(ui_height) / float(ui_width)
d = abs(k1 - k2)
if d > 0.01:
return False
# k1 = float(H) / float(W)
# k2 = float(ui_height) / float(ui_width)
# d = abs(k1 - k2)
#
# if d > 0.01:
# return False
return True