Update handler.py
Browse files- handler.py +1 -1
handler.py
CHANGED
@@ -110,7 +110,7 @@ class GenerationConfig:
|
|
110 |
if not ((self.width == MAX_LARGE_SIDE and self.height == MAX_SMALL_SIDE) or
|
111 |
(self.width == MAX_SMALL_SIDE and self.height == MAX_LARGE_SIDE)):
|
112 |
# For other resolutions, ensure total pixels don't exceed max
|
113 |
-
MAX_TOTAL_PIXELS =
|
114 |
|
115 |
# If total pixels exceed maximum, scale down proportionally
|
116 |
total_pixels = self.width * self.height
|
|
|
110 |
if not ((self.width == MAX_LARGE_SIDE and self.height == MAX_SMALL_SIDE) or
|
111 |
(self.width == MAX_SMALL_SIDE and self.height == MAX_LARGE_SIDE)):
|
112 |
# For other resolutions, ensure total pixels don't exceed max
|
113 |
+
MAX_TOTAL_PIXELS = MAX_SMALL_SIDE * MAX_LARGE_SIDE # or 921600 = 1280 * 720
|
114 |
|
115 |
# If total pixels exceed maximum, scale down proportionally
|
116 |
total_pixels = self.width * self.height
|