Spaces:
Running
on
Zero
Running
on
Zero
Update replace_bg/utilities.py
Browse files- replace_bg/utilities.py +1 -1
replace_bg/utilities.py
CHANGED
@@ -4,7 +4,7 @@ import numpy as np
|
|
4 |
from PIL import Image
|
5 |
|
6 |
def resize_image(image)->Image.Image:
|
7 |
-
pixel_number = 1024*1024
|
8 |
granularity_val = 64
|
9 |
ratio = image.size[0] / image.size[1]
|
10 |
width = int((pixel_number * ratio) ** 0.5)
|
|
|
4 |
from PIL import Image
|
5 |
|
6 |
def resize_image(image)->Image.Image:
|
7 |
+
pixel_number = 960*960 #1024*1024
|
8 |
granularity_val = 64
|
9 |
ratio = image.size[0] / image.size[1]
|
10 |
width = int((pixel_number * ratio) ** 0.5)
|