hwjiang commited on
Commit
c140eb6
·
verified ·
1 Parent(s): 4d3d686

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -32
app.py CHANGED
@@ -20,36 +20,9 @@ from tsr.utils import remove_background, resize_foreground, to_gradio_3d_orienta
20
 
21
 
22
  HEADER = """
23
- # TripoSR Demo
24
- <table bgcolor="#1E2432" cellspacing="0" cellpadding="0" width="450">
25
- <tr style="height:50px;">
26
- <td style="text-align: center;">
27
- <a href="https://stability.ai">
28
- <img src="https://images.squarespace-cdn.com/content/v1/6213c340453c3f502425776e/6c9c4c25-5410-4547-bc26-dc621cdacb25/Stability+AI+logo.png" width="200" height="40" />
29
- </a>
30
- </td>
31
- <td style="text-align: center;">
32
- <a href="https://www.tripo3d.ai">
33
- <img src="https://tripo-public.cdn.bcebos.com/logo.png" width="40" height="40" />
34
- </a>
35
- </td>
36
- </tr>
37
- </table>
38
- <table bgcolor="#1E2432" cellspacing="0" cellpadding="0" width="450">
39
- <tr style="height:30px;">
40
- <td style="text-align: center;">
41
- <a href="https://huggingface.co/stabilityai/TripoSR"><img src="https://img.shields.io/badge/%F0%9F%A4%97%20Model_Card-Huggingface-orange" height="20"></a>
42
- </td>
43
- <td style="text-align: center;">
44
- <a href="https://github.com/VAST-AI-Research/TripoSR"><img src="https://postimage.me/images/2024/03/04/GitHub_Logo_White.png" width="100" height="20"></a>
45
- </td>
46
- <td style="text-align: center; color: white;">
47
- <a href="https://arxiv.org/abs/2403.02151"><img src="https://img.shields.io/badge/arXiv-2403.02151-b31b1b.svg" height="20"></a>
48
- </td>
49
- </tr>
50
- </table>
51
-
52
- **TripoSR** is a state-of-the-art open-source model for **fast** feedforward 3D reconstruction from a single image, developed in collaboration between [Tripo AI](https://www.tripo3d.ai/) and [Stability AI](https://stability.ai/).
53
 
54
  **Tips:**
55
  1. If you find the result is unsatisfied, please try to change the foreground ratio. It might improve the results.
@@ -64,9 +37,9 @@ else:
64
  device = "cpu"
65
 
66
  model = TSR.from_pretrained(
67
- "stabilityai/TripoSR",
68
  config_name="config.yaml",
69
- weight_name="model.ckpt",
70
  )
71
  model.renderer.set_chunk_size(131072)
72
  model.to(device)
 
20
 
21
 
22
  HEADER = """
23
+ # Real3D Demo
24
+
25
+ **Real3D** is a single-view large reconstruction model with self-training on real-world images.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
26
 
27
  **Tips:**
28
  1. If you find the result is unsatisfied, please try to change the foreground ratio. It might improve the results.
 
37
  device = "cpu"
38
 
39
  model = TSR.from_pretrained(
40
+ "hwjiang/Real3D",
41
  config_name="config.yaml",
42
+ weight_name="model_both_trained_v1.ckpt",
43
  )
44
  model.renderer.set_chunk_size(131072)
45
  model.to(device)