rliu commited on
Commit
d7776c3
1 Parent(s): 84ed118

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -285,7 +285,7 @@ def preprocess_image(models, input_im, preprocess):
285
  start_time = time.time()
286
 
287
  if preprocess:
288
- input_im.thumbnail([1024, 1024], Image.Resampling.LANCZOS)
289
  input_im = load_and_preprocess(models['carvekit'], input_im)
290
  input_im = (input_im / 255.0).astype(np.float32)
291
  # (H, W, 3) array in [0, 1].
 
285
  start_time = time.time()
286
 
287
  if preprocess:
288
+ input_im.thumbnail([1536, 1536], Image.Resampling.LANCZOS)
289
  input_im = load_and_preprocess(models['carvekit'], input_im)
290
  input_im = (input_im / 255.0).astype(np.float32)
291
  # (H, W, 3) array in [0, 1].