Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -24,6 +24,8 @@ DTYPE = torch.bfloat16
|
|
| 24 |
DEVICE = "cuda" if torch.cuda.is_available() else "cpu"
|
| 25 |
REPO_ID = "VAST-AI/DetailGen3D" # 似乎还没有
|
| 26 |
|
|
|
|
|
|
|
| 27 |
MARKDOWN = """
|
| 28 |
## Generating geometry details guided by reference image with [DetailGen3D](https://detailgen3d.github.io/DetailGen3D/)
|
| 29 |
1. Upload a detailed image of the frontal view and a coarse model. Then clik "Run " to generate the refined result.
|
|
@@ -33,9 +35,9 @@ MARKDOWN = """
|
|
| 33 |
EXAMPLES = [
|
| 34 |
[
|
| 35 |
{
|
| 36 |
-
"image": "assets/image/100.png",
|
| 37 |
},
|
| 38 |
-
"assets/model/100.glb",
|
| 39 |
42,
|
| 40 |
False,
|
| 41 |
]
|
|
|
|
| 24 |
DEVICE = "cuda" if torch.cuda.is_available() else "cpu"
|
| 25 |
REPO_ID = "VAST-AI/DetailGen3D" # 似乎还没有
|
| 26 |
|
| 27 |
+
abs_path = os.path.abspath(__file__)
|
| 28 |
+
|
| 29 |
MARKDOWN = """
|
| 30 |
## Generating geometry details guided by reference image with [DetailGen3D](https://detailgen3d.github.io/DetailGen3D/)
|
| 31 |
1. Upload a detailed image of the frontal view and a coarse model. Then clik "Run " to generate the refined result.
|
|
|
|
| 35 |
EXAMPLES = [
|
| 36 |
[
|
| 37 |
{
|
| 38 |
+
"image": os.path.join(abs_path,"assets/image/100.png"),
|
| 39 |
},
|
| 40 |
+
os.path.join(abs_path,"assets/model/100.glb"),
|
| 41 |
42,
|
| 42 |
False,
|
| 43 |
]
|