fffiloni commited on
Commit
f882ba8
·
verified ·
1 Parent(s): 24ebd50

Update webgui.py

Browse files
Files changed (1) hide show
  1. webgui.py +1 -1
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
  # Round the new height to the nearest multiple of 8
174
- new_height = round(new_height / 8) * 8
175
 
176
  # Resize the image to the calculated dimensions
177
  face_image = cv2.resize(face_img, (new_width, new_height))
 
171
  new_height = int(original_height * (new_width / original_width))
172
 
173
  # Round the new height to the nearest multiple of 8
174
+ new_height = round(new_height // 8) * 8
175
 
176
  # Resize the image to the calculated dimensions
177
  face_image = cv2.resize(face_img, (new_width, new_height))