Spaces:
Build error
Build error
Update app.py
Browse files
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([
|
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].
|