Spaces:
Runtime error
Runtime error
resize input image
Browse files- PIFu/spaces.py +1 -1
PIFu/spaces.py
CHANGED
@@ -63,7 +63,7 @@ def process(img_path):
|
|
63 |
img_raw = Image.open(img_path).convert('RGB')
|
64 |
|
65 |
img = img_raw.resize(
|
66 |
-
(
|
67 |
Image.Resampling.LANCZOS)
|
68 |
|
69 |
try:
|
|
|
63 |
img_raw = Image.open(img_path).convert('RGB')
|
64 |
|
65 |
img = img_raw.resize(
|
66 |
+
(512, int(512 * img_raw.size[1] / img_raw.size[0])),
|
67 |
Image.Resampling.LANCZOS)
|
68 |
|
69 |
try:
|