Spaces:
Running
on
Zero
Running
on
Zero
update
Browse files
app.py
CHANGED
@@ -61,7 +61,6 @@ def get_input_files(input_path):
|
|
61 |
|
62 |
args = parse_args()
|
63 |
|
64 |
-
# Create output directory (keeping your original variable name)
|
65 |
LOG_PATH = args.log_path
|
66 |
os.makedirs(LOG_PATH, exist_ok=True)
|
67 |
|
@@ -349,14 +348,36 @@ def process_3d_model(input_3d, dilated_offset, do_marching_cubes, postprocess_me
|
|
349 |
# except Exception as e:
|
350 |
# return f"Error processing file: {str(e)}"
|
351 |
|
352 |
-
|
353 |
-
|
354 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
355 |
|
356 |
with gr.Blocks(title=title) as demo:
|
357 |
# Title section
|
358 |
-
gr.Markdown(
|
359 |
-
gr.Markdown(reminder)
|
360 |
|
361 |
with gr.Row():
|
362 |
with gr.Column():
|
@@ -386,5 +407,7 @@ with gr.Blocks(title=title) as demo:
|
|
386 |
examples_per_page=14,
|
387 |
)
|
388 |
|
|
|
|
|
389 |
if __name__ == "__main__":
|
390 |
demo.launch(ssr_mode=False)
|
|
|
61 |
|
62 |
args = parse_args()
|
63 |
|
|
|
64 |
LOG_PATH = args.log_path
|
65 |
os.makedirs(LOG_PATH, exist_ok=True)
|
66 |
|
|
|
348 |
# except Exception as e:
|
349 |
# return f"Error processing file: {str(e)}"
|
350 |
|
351 |
+
|
352 |
+
_HEADER_ = '''
|
353 |
+
<h2><b>[SIGGRAPH 2025] PrimitiveAnything 🤗 Gradio Demo</b></h2>
|
354 |
+
This is official demo for our SIGGRAPH 2025 paper <a href="">PrimitiveAnything: Human-Crafted 3D Primitive Assembly Generation with Auto-Regressive Transformer</a>.
|
355 |
+
Code: <a href='#' target='_blank'>GitHub</a>. Paper: <a href='#' target='_blank'>ArXiv</a>.
|
356 |
+
❗️❗️❗️**Important Notes:** For optimal results with fine structures, we automatically apply marching cubes and dilation operations (which differs from testing and evaluation). This prevents quality degradation in thin areas.
|
357 |
+
'''
|
358 |
+
|
359 |
+
_CITE_ = r"""
|
360 |
+
If PrimitiveAnything is helpful, please help to ⭐ the <a href='https://github.com/PrimitiveAnything/PrimitiveAnything' target='_blank'>GitHub Repo</a>. Thanks! [](https://github.com/PrimitiveAnything/PrimitiveAnything)
|
361 |
+
---
|
362 |
+
📝 **Citation**
|
363 |
+
If you find our work useful for your research or applications, please cite using this bibtex:
|
364 |
+
```bibtex
|
365 |
+
@misc{ye2025primitiveanything,
|
366 |
+
title={PrimitiveAnything: Human-Crafted 3D Primitive Assembly Generation with Auto-Regressive Transformer},
|
367 |
+
author={Jingwen Ye and Yuze He and Yanning Zhou and Yiqin Zhu and Kaiwen Xiao and Yong-Jin Liu and Wei Yang and Xiao Han},
|
368 |
+
year={2025},
|
369 |
+
eprint={2505.XXXXX},
|
370 |
+
archivePrefix={arXiv},
|
371 |
+
primaryClass={cs.CV}
|
372 |
+
}
|
373 |
+
```
|
374 |
+
📧 **Contact**
|
375 |
+
If you have any questions, feel free to open a discussion or contact us at <b>hyz22@mails.tsinghua.edu.cn</b>.
|
376 |
+
"""
|
377 |
|
378 |
with gr.Blocks(title=title) as demo:
|
379 |
# Title section
|
380 |
+
gr.Markdown(_HEADER_)
|
|
|
381 |
|
382 |
with gr.Row():
|
383 |
with gr.Column():
|
|
|
407 |
examples_per_page=14,
|
408 |
)
|
409 |
|
410 |
+
gr.Markdown(_CITE_)
|
411 |
+
|
412 |
if __name__ == "__main__":
|
413 |
demo.launch(ssr_mode=False)
|