cavargas10 commited on
Commit
195a8d7
verified
1 Parent(s): 3a30e02

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -23
app.py CHANGED
@@ -15,7 +15,7 @@ subprocess.run(
15
 
16
  if __name__ == "__main__":
17
  from huggingface_hub import snapshot_download
18
- snapshot_download("public-data/Unique3D", repo_type="model", local_dir="./ckpt")
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 = '''Unique3D: High-Quality and Efficient 3D Mesh Generation from a Single Image'''
32
- _DESCRIPTION = '''
33
- <div>
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
- <div style="display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; margin-top: 20px;">
44
- <p style="display: flex; gap: 6px;">
45
- <a href="https://huggingface.co/spaces/cavargas10/Unico3D?duplicate=true">
46
- <img src="https://huggingface.co/datasets/huggingface/badges/resolve/main/duplicate-this-space-lg.svg" alt="Duplicate this Space">
47
- </a>
48
- </p>
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):