Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -15,7 +15,7 @@ subprocess.run(
|
|
15 |
|
16 |
if __name__ == "__main__":
|
17 |
from huggingface_hub import snapshot_download
|
18 |
-
snapshot_download("
|
19 |
import os
|
20 |
import sys
|
21 |
sys.path.append(os.curdir)
|
@@ -28,35 +28,22 @@ import gradio as gr
|
|
28 |
from gradio_app.gradio_3dgen import create_ui as create_3d_ui
|
29 |
from gradio_app.all_models import model_zoo
|
30 |
|
31 |
-
_TITLE =
|
32 |
-
_DESCRIPTION =
|
33 |
-
|
34 |
-
<a style="display:inline-block" href='https://github.com/AiuniAI/Unique3D'><img alt="GitHub Repo stars" src="https://img.shields.io/github/stars/AiuniAI/Unique3D?style=social">
|
35 |
-
</a>
|
36 |
-
<img alt="GitHub License" src="https://img.shields.io/github/license/AiuniAI/Unique3D">
|
37 |
-
</div>
|
38 |
-
# [Paper](https://arxiv.org/abs/2405.20343) | [Project page](https://wukailu.github.io/Unique3D/) | [Huggingface Demo](https://huggingface.co/spaces/Wuvin/Unique3D) | [Gradio Demo](http://unique3d.demo.avar.cn/) | [Online Demo](https://www.aiuni.ai/)
|
39 |
-
* High-fidelity and diverse textured meshes generated by Unique3D from single-view images.
|
40 |
-
* The demo is still under construction, and more features are expected to be implemented soon.
|
41 |
-
* If the Huggingface Demo is overcrowded or fails to produce stable results, you can use the Online Demo [aiuni.ai](https://www.aiuni.ai/), which is free to try (get the registration invitation code Join Discord: https://discord.gg/aiuni). However, the Online Demo is slightly different from the Gradio Demo, in that the inference speed is slower, but the generation is much more stable.
|
42 |
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
<p>Click the button above to duplicate this space and enjoy faster inference on the GPU of your choice.</p>
|
50 |
-
<p style="margin-top: 10px;">Special thanks to <strong>@hysts</strong> for helping to make the "Duplicate this Space" functionality work correctly!</p>
|
51 |
-
</div>
|
52 |
-
'''
|
53 |
|
54 |
def launch():
|
55 |
model_zoo.init_models()
|
56 |
|
57 |
with gr.Blocks(
|
58 |
title=_TITLE,
|
59 |
-
# theme=gr.themes.Monochrome(),
|
60 |
) as demo:
|
61 |
with gr.Row():
|
62 |
with gr.Column(scale=1):
|
|
|
15 |
|
16 |
if __name__ == "__main__":
|
17 |
from huggingface_hub import snapshot_download
|
18 |
+
snapshot_download("cavargas10/Unique3D", repo_type="model", local_dir="./ckpt")
|
19 |
import os
|
20 |
import sys
|
21 |
sys.path.append(os.curdir)
|
|
|
28 |
from gradio_app.gradio_3dgen import create_ui as create_3d_ui
|
29 |
from gradio_app.all_models import model_zoo
|
30 |
|
31 |
+
_TITLE = """UTPL - Conversi贸n de Imagen a objetos 3D usando IA"""
|
32 |
+
_DESCRIPTION = """
|
33 |
+
### Tesis: *"Objetos tridimensionales creados por IA: Innovaci贸n en entornos virtuales"*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
34 |
|
35 |
+
**Autor:** Carlos Vargas
|
36 |
+
<br>
|
37 |
+
**Base t茅cnica:** Adaptaci贸n de [Unique3D](https://wukailu.github.io/Unique3D/) (herramientas de c贸digo abierto para generaci贸n 3D)
|
38 |
+
<br>
|
39 |
+
**Prop贸sito educativo:** Demostraciones acad茅micas e Investigaci贸n en modelado 3D autom谩tico
|
40 |
+
"""
|
|
|
|
|
|
|
|
|
41 |
|
42 |
def launch():
|
43 |
model_zoo.init_models()
|
44 |
|
45 |
with gr.Blocks(
|
46 |
title=_TITLE,
|
|
|
47 |
) as demo:
|
48 |
with gr.Row():
|
49 |
with gr.Column(scale=1):
|