generate_3d_from_image
Generate a 3D mesh from a single image using a local AI model, with options for background removal and mesh resolution.
Instructions
Generate a 3D mesh (.glb) from a single image using the local TripoSR model. You must call load_img_to_3d_model() first.
Parameters:
image_path: Absolute path to the input image
output_path: Where to save the .glb file (auto-generated if omitted)
foreground_ratio: Foreground crop ratio for background removal (default 0.85)
mc_resolution: Marching-cubes resolution; higher = more detail but slower (default 256)
no_remove_bg: Skip background removal if the image already has a clean background
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| image_path | Yes | ||
| output_path | No | ||
| foreground_ratio | No | ||
| mc_resolution | No | ||
| no_remove_bg | No |