goryhon commited on
Commit
444f7ef
·
verified ·
1 Parent(s): fb9af8c

Update web-demos/hugging_face/inpainter/base_inpainter.py

Browse files
web-demos/hugging_face/inpainter/base_inpainter.py CHANGED
@@ -205,7 +205,7 @@ class ProInpainter:
205
  # The ouput size should be divided by 2 so that it can encoded by libx264
206
  if ratio !=1.0: size = (int(ratio*size[0])//2*2, int(ratio*size[1])//2*2)
207
 
208
- else: size = (size[0])//2*2, size[1]//2*2) # set propainter size limit to 720 to reduce memory usage
209
 
210
  frames_len = len(frames)
211
  frames, size, out_size = resize_frames(frames, size)
 
205
  # The ouput size should be divided by 2 so that it can encoded by libx264
206
  if ratio !=1.0: size = (int(ratio*size[0])//2*2, int(ratio*size[1])//2*2)
207
 
208
+ else: size = ((size[0])//2*2, (size[1])//2*2) # set propainter size limit to 720 to reduce memory usage
209
 
210
  frames_len = len(frames)
211
  frames, size, out_size = resize_frames(frames, size)