Update webgui.py
Browse files
webgui.py
CHANGED
@@ -171,7 +171,7 @@ def process_video(uploaded_img, uploaded_audio, width, height, length, seed, fac
|
|
171 |
new_height = int(original_height * (new_width / original_width))
|
172 |
|
173 |
# Ensure both width and height are divisible by 8
|
174 |
-
new_width = (
|
175 |
new_height = (new_height // 8) * 8 # Floor the height to the nearest multiple of 8
|
176 |
|
177 |
|
|
|
171 |
new_height = int(original_height * (new_width / original_width))
|
172 |
|
173 |
# Ensure both width and height are divisible by 8
|
174 |
+
new_width = (new_width // 8) * 8 # Force target width to be divisible by 8
|
175 |
new_height = (new_height // 8) * 8 # Floor the height to the nearest multiple of 8
|
176 |
|
177 |
|