Spaces:
Runtime error
Runtime error
JeffreyXiang
commited on
Commit
•
f92f037
1
Parent(s):
7d475c1
Disable mesh render
Browse files
app.py
CHANGED
@@ -39,8 +39,6 @@ def image_to_3d(image: Image.Image) -> Tuple[dict, str]:
|
|
39 |
"""
|
40 |
outputs = pipeline(image, formats=["gaussian", "mesh"], preprocess_image=False)
|
41 |
video = render_utils.render_video(outputs['gaussian'][0], num_frames=120)['color']
|
42 |
-
video_geo = render_utils.render_video(outputs['mesh'][0], num_frames=120)['normal']
|
43 |
-
video = [np.concatenate([video[i], video_geo[i]], axis=1) for i in range(len(video))]
|
44 |
model_id = uuid.uuid4()
|
45 |
video_path = f"/tmp/Trellis-demo/{model_id}.mp4"
|
46 |
os.makedirs(os.path.dirname(video_path), exist_ok=True)
|
|
|
39 |
"""
|
40 |
outputs = pipeline(image, formats=["gaussian", "mesh"], preprocess_image=False)
|
41 |
video = render_utils.render_video(outputs['gaussian'][0], num_frames=120)['color']
|
|
|
|
|
42 |
model_id = uuid.uuid4()
|
43 |
video_path = f"/tmp/Trellis-demo/{model_id}.mp4"
|
44 |
os.makedirs(os.path.dirname(video_path), exist_ok=True)
|