Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -251,10 +251,10 @@ def image_to_3d(
|
|
251 |
str: The path to the video of the 3D model.
|
252 |
"""
|
253 |
user_dir = os.path.join(TMP_DIR, str(req.session_hash))
|
254 |
-
print("image 2", type(image))
|
255 |
if not is_multiimage:
|
256 |
outputs = pipeline.run(
|
257 |
-
image,
|
258 |
seed=seed,
|
259 |
formats=["gaussian", "mesh"],
|
260 |
preprocess_image=False,
|
@@ -374,7 +374,7 @@ def split_image(image: Image.Image) -> List[Image.Image]:
|
|
374 |
with gr.Blocks(delete_cache=(600, 600)) as demo:
|
375 |
gr.Markdown("""
|
376 |
## Sketch to 3D Asset with [TRELLIS](https://trellis3d.github.io/)
|
377 |
-
|
378 |
""")
|
379 |
|
380 |
with gr.Row():
|
|
|
251 |
str: The path to the video of the 3D model.
|
252 |
"""
|
253 |
user_dir = os.path.join(TMP_DIR, str(req.session_hash))
|
254 |
+
print("image 2", type(image[0]))
|
255 |
if not is_multiimage:
|
256 |
outputs = pipeline.run(
|
257 |
+
image[0],
|
258 |
seed=seed,
|
259 |
formats=["gaussian", "mesh"],
|
260 |
preprocess_image=False,
|
|
|
374 |
with gr.Blocks(delete_cache=(600, 600)) as demo:
|
375 |
gr.Markdown("""
|
376 |
## Sketch to 3D Asset with [TRELLIS](https://trellis3d.github.io/)
|
377 |
+
🎨🖌️ draw or upload a sketch and click "Generate" to create a 3D asset.
|
378 |
""")
|
379 |
|
380 |
with gr.Row():
|