Spaces:
Running
on
L40S
Running
on
L40S
Update app.py
Browse files
app.py
CHANGED
@@ -234,7 +234,6 @@ def image_to_3d(trial_id: str, seed: int, randomize_seed: bool, ss_guidance_stre
|
|
234 |
# ํ์ดํ๋ผ์ธ์ GPU๋ก ์ด๋
|
235 |
g.trellis_pipeline.to('cuda')
|
236 |
|
237 |
-
# batch_size ์ ๊ฑฐํ๊ณ ํ๋ผ๋ฏธํฐ ์์
|
238 |
outputs = g.trellis_pipeline.run(
|
239 |
image,
|
240 |
seed=seed,
|
@@ -266,9 +265,12 @@ def image_to_3d(trial_id: str, seed: int, randomize_seed: bool, ss_guidance_stre
|
|
266 |
resolution=384
|
267 |
)['normal']
|
268 |
|
269 |
-
#
|
270 |
-
|
271 |
-
|
|
|
|
|
|
|
272 |
clear_gpu_memory()
|
273 |
|
274 |
# ๋น๋์ค ์์ฑ ๋ฐ ์ ์ฅ
|
|
|
234 |
# ํ์ดํ๋ผ์ธ์ GPU๋ก ์ด๋
|
235 |
g.trellis_pipeline.to('cuda')
|
236 |
|
|
|
237 |
outputs = g.trellis_pipeline.run(
|
238 |
image,
|
239 |
seed=seed,
|
|
|
265 |
resolution=384
|
266 |
)['normal']
|
267 |
|
268 |
+
# tensor๋ฅผ numpy๋ก ๋ณํ
|
269 |
+
if torch.is_tensor(video[0]):
|
270 |
+
video = [v.cpu().numpy() if torch.is_tensor(v) else v for v in video]
|
271 |
+
if torch.is_tensor(video_geo[0]):
|
272 |
+
video_geo = [v.cpu().numpy() if torch.is_tensor(v) else v for v in video_geo]
|
273 |
+
|
274 |
clear_gpu_memory()
|
275 |
|
276 |
# ๋น๋์ค ์์ฑ ๋ฐ ์ ์ฅ
|