Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -215,15 +215,35 @@ def make3d(images):
|
|
| 215 |
|
| 216 |
|
| 217 |
_HEADER_ = """
|
| 218 |
-
##
|
| 219 |
-
- For this step, we use <a href='https://github.com/TencentARC/InstantMesh' target='_blank'>InstantMesh</a>, an open-source model for **fast** feedforward 3D mesh generation from a single image.
|
| 220 |
|
| 221 |
-
|
| 222 |
|
| 223 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 224 |
|
| 225 |
- If there's a background in your image -> ✅ Remove background.
|
|
|
|
| 226 |
- The 3D mesh generation results highly depend on the quality of generated multi-view images. Please try a different **seed value** if the result is unsatisfying (Default: 42).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 227 |
"""
|
| 228 |
|
| 229 |
with gr.Blocks() as demo:
|
|
|
|
| 215 |
|
| 216 |
|
| 217 |
_HEADER_ = """
|
| 218 |
+
## Generate a **High Poly Mesh**
|
|
|
|
| 219 |
|
| 220 |
+
➡️ With this tool, you can generate high poly mesh for your Roblox game.
|
| 221 |
|
| 222 |
+
- This tool use <a href='https://github.com/TencentARC/InstantMesh' target='_blank'>InstantMesh</a>, an open-source AI model for **fast** feedforward 3D mesh generation from a single image.
|
| 223 |
+
|
| 224 |
+
### The Process
|
| 225 |
+
|
| 226 |
+
1. Choose an image of the object you want to create in 3D. Or generate one with [Stable Diffusion](https://huggingface.co/spaces/stabilityai/stable-diffusion).
|
| 227 |
+
|
| 228 |
+
2. Upload the image
|
| 229 |
+
|
| 230 |
+
💡 Tips:
|
| 231 |
|
| 232 |
- If there's a background in your image -> ✅ Remove background.
|
| 233 |
+
|
| 234 |
- The 3D mesh generation results highly depend on the quality of generated multi-view images. Please try a different **seed value** if the result is unsatisfying (Default: 42).
|
| 235 |
+
|
| 236 |
+
3. Click on generate
|
| 237 |
+
|
| 238 |
+
4. Click on GLB and download this file using the ⬇️
|
| 239 |
+
|
| 240 |
+
5. Open Roblox Studio
|
| 241 |
+
|
| 242 |
+
6. In you Roblox Project, click on Import 3D and select the GLB file.
|
| 243 |
+
|
| 244 |
+
7. You can now drag and drop your generated 3D file in your scene 🎉.
|
| 245 |
+
|
| 246 |
+
8. (Optional) You can also, transform this High poly mesh to a low poly using the tool below, but the mesh material will disappear and you'll need to add your own materials in Roblox.
|
| 247 |
"""
|
| 248 |
|
| 249 |
with gr.Blocks() as demo:
|