related judgement (#454)

This commit is contained in:
lllyasviel
2023-09-20 04:28:22 -07:00
committed by GitHub
parent 65b9364170
commit 5456a5784b
2 changed files with 7 additions and 7 deletions
+6 -6
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