Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -251,10 +251,9 @@ 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[0]))
|
255 |
if not is_multiimage:
|
256 |
outputs = pipeline.run(
|
257 |
-
image[
|
258 |
seed=seed,
|
259 |
formats=["gaussian", "mesh"],
|
260 |
preprocess_image=False,
|
@@ -421,7 +420,7 @@ with gr.Blocks(delete_cache=(600, 600)) as demo:
|
|
421 |
minimum=0.5,
|
422 |
maximum=5.0,
|
423 |
step=0.1,
|
424 |
-
value=0.
|
425 |
)
|
426 |
with gr.Tab(label="3D generation"):
|
427 |
seed = gr.Slider(0, MAX_SEED, label="Seed", value=0, step=1)
|
|
|
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 |
if not is_multiimage:
|
255 |
outputs = pipeline.run(
|
256 |
+
image['composite'],
|
257 |
seed=seed,
|
258 |
formats=["gaussian", "mesh"],
|
259 |
preprocess_image=False,
|
|
|
420 |
minimum=0.5,
|
421 |
maximum=5.0,
|
422 |
step=0.1,
|
423 |
+
value=0.8,
|
424 |
)
|
425 |
with gr.Tab(label="3D generation"):
|
426 |
seed = gr.Slider(0, MAX_SEED, label="Seed", value=0, step=1)
|