Instructions to use ChrisColeTech/TripoSG with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use ChrisColeTech/TripoSG with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("ChrisColeTech/TripoSG", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
Add workflow_examples/giga_triposg.json (ComfyUI editor workflow, verified on an RTX 5090)
a3ea689 verified Download workflow_examples/giga_triposg.json from ChrisColeTech/TripoSG: direct link, hf CLI and curl.
- Browser
- Download file 8.02 kB
-
https://huggingface.co/ChrisColeTech/TripoSG/resolve/main/workflow_examples/giga_triposg.json
- Command line
-
hf download hf://ChrisColeTech/TripoSG/workflow_examples/giga_triposg.json
-
curl -L -o giga_triposg.json https://huggingface.co/ChrisColeTech/TripoSG/resolve/main/workflow_examples/giga_triposg.json
8.02 kB
| { | |
| "id": "72669d10-093d-50b3-a328-b8bfebeb8296", | |
| "revision": 0, | |
| "last_node_id": 252, | |
| "last_link_id": 10, | |
| "nodes": [ | |
| { | |
| "id": 101, | |
| "type": "LoadImage", | |
| "pos": [ | |
| 60, | |
| 60 | |
| ], | |
| "size": [ | |
| 360, | |
| 106 | |
| ], | |
| "flags": {}, | |
| "order": 0, | |
| "mode": 0, | |
| "inputs": [], | |
| "outputs": [ | |
| { | |
| "name": "IMAGE", | |
| "type": "IMAGE", | |
| "links": [ | |
| 1 | |
| ], | |
| "slot_index": 0 | |
| }, | |
| { | |
| "name": "MASK", | |
| "type": "MASK", | |
| "links": [ | |
| 3 | |
| ], | |
| "slot_index": 1 | |
| } | |
| ], | |
| "properties": { | |
| "Node name for S&R": "LoadImage" | |
| }, | |
| "widgets_values": [ | |
| "example.png" | |
| ], | |
| "title": "Load Image" | |
| }, | |
| { | |
| "id": 153, | |
| "type": "CCTechTripoSGRMBGLoader", | |
| "pos": [ | |
| 60, | |
| 206 | |
| ], | |
| "size": [ | |
| 360, | |
| 84 | |
| ], | |
| "flags": {}, | |
| "order": 1, | |
| "mode": 0, | |
| "inputs": [], | |
| "outputs": [ | |
| { | |
| "name": "rmbg", | |
| "type": "CCTECH_TRIPOSG_RMBG", | |
| "links": [ | |
| 2 | |
| ], | |
| "slot_index": 0 | |
| } | |
| ], | |
| "properties": { | |
| "Node name for S&R": "CCTechTripoSGRMBGLoader" | |
| }, | |
| "widgets_values": [ | |
| "RMBG-1.4" | |
| ] | |
| }, | |
| { | |
| "id": 154, | |
| "type": "CCTechTripoSGModelLoader", | |
| "pos": [ | |
| 60, | |
| 330 | |
| ], | |
| "size": [ | |
| 360, | |
| 110 | |
| ], | |
| "flags": {}, | |
| "order": 2, | |
| "mode": 0, | |
| "inputs": [], | |
| "outputs": [ | |
| { | |
| "name": "triposg_model", | |
| "type": "CCTECH_TRIPOSG_MODEL", | |
| "links": [ | |
| 4, | |
| 6 | |
| ], | |
| "slot_index": 0 | |
| } | |
| ], | |
| "properties": { | |
| "Node name for S&R": "CCTechTripoSGModelLoader" | |
| }, | |
| "widgets_values": [ | |
| "TripoSG", | |
| "auto" | |
| ] | |
| }, | |
| { | |
| "id": 155, | |
| "type": "CCTechTripoSGPrepareImage", | |
| "pos": [ | |
| 480, | |
| 60 | |
| ], | |
| "size": [ | |
| 360, | |
| 180 | |
| ], | |
| "flags": {}, | |
| "order": 3, | |
| "mode": 0, | |
| "inputs": [ | |
| { | |
| "name": "image", | |
| "type": "IMAGE", | |
| "link": 1 | |
| }, | |
| { | |
| "name": "rmbg", | |
| "type": "CCTECH_TRIPOSG_RMBG", | |
| "link": 2 | |
| }, | |
| { | |
| "name": "mask", | |
| "type": "MASK", | |
| "link": 3 | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "name": "image", | |
| "type": "IMAGE", | |
| "links": [ | |
| 5 | |
| ], | |
| "slot_index": 0 | |
| } | |
| ], | |
| "properties": { | |
| "Node name for S&R": "CCTechTripoSGPrepareImage" | |
| }, | |
| "widgets_values": [ | |
| true, | |
| 0.1, | |
| "white" | |
| ] | |
| }, | |
| { | |
| "id": 156, | |
| "type": "CCTechTripoSGSampler", | |
| "pos": [ | |
| 900, | |
| 60 | |
| ], | |
| "size": [ | |
| 360, | |
| 210 | |
| ], | |
| "flags": {}, | |
| "order": 4, | |
| "mode": 0, | |
| "inputs": [ | |
| { | |
| "name": "triposg_model", | |
| "type": "CCTECH_TRIPOSG_MODEL", | |
| "link": 4 | |
| }, | |
| { | |
| "name": "image", | |
| "type": "IMAGE", | |
| "link": 5 | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "name": "shape_latent", | |
| "type": "CCTECH_TRIPOSG_LATENT", | |
| "links": [ | |
| 7 | |
| ], | |
| "slot_index": 0 | |
| } | |
| ], | |
| "properties": { | |
| "Node name for S&R": "CCTechTripoSGSampler" | |
| }, | |
| "widgets_values": [ | |
| 42, | |
| "fixed", | |
| 50, | |
| 7.0, | |
| 2048 | |
| ] | |
| }, | |
| { | |
| "id": 157, | |
| "type": "CCTechTripoSGDecodeMesh", | |
| "pos": [ | |
| 1320, | |
| 60 | |
| ], | |
| "size": [ | |
| 360, | |
| 158 | |
| ], | |
| "flags": {}, | |
| "order": 5, | |
| "mode": 0, | |
| "inputs": [ | |
| { | |
| "name": "triposg_model", | |
| "type": "CCTECH_TRIPOSG_MODEL", | |
| "link": 6 | |
| }, | |
| { | |
| "name": "shape_latent", | |
| "type": "CCTECH_TRIPOSG_LATENT", | |
| "link": 7 | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "name": "mesh", | |
| "type": "MESH", | |
| "links": [ | |
| 8, | |
| 9 | |
| ], | |
| "slot_index": 0 | |
| } | |
| ], | |
| "properties": { | |
| "Node name for S&R": "CCTechTripoSGDecodeMesh" | |
| }, | |
| "widgets_values": [ | |
| 8, | |
| 9, | |
| 1.005 | |
| ] | |
| }, | |
| { | |
| "id": 158, | |
| "type": "SaveGLB", | |
| "pos": [ | |
| 1740, | |
| 60 | |
| ], | |
| "size": [ | |
| 360, | |
| 84 | |
| ], | |
| "flags": {}, | |
| "order": 6, | |
| "mode": 0, | |
| "inputs": [ | |
| { | |
| "name": "mesh", | |
| "type": "MESH,FILE_3D_GLB,FILE_3D_GLTF,FILE_3D_OBJ,FILE_3D_FBX,FILE_3D_STL,FILE_3D_USDZ,FILE_3D_PLY,FILE_3D_SPLAT,FILE_3D_SPZ,FILE_3D_KSPLAT,FILE_3D_SPLAT_ANY,FILE_3D_POINT_CLOUD_ANY,FILE_3D", | |
| "link": 8 | |
| } | |
| ], | |
| "outputs": [], | |
| "properties": { | |
| "Node name for S&R": "SaveGLB" | |
| }, | |
| "widgets_values": [ | |
| "giga/triposg" | |
| ] | |
| }, | |
| { | |
| "id": 251, | |
| "type": "RenderMesh", | |
| "pos": [ | |
| 1740, | |
| 184 | |
| ], | |
| "size": [ | |
| 360, | |
| 202 | |
| ], | |
| "flags": {}, | |
| "order": 7, | |
| "mode": 0, | |
| "inputs": [ | |
| { | |
| "name": "mesh", | |
| "type": "MESH", | |
| "link": 9 | |
| }, | |
| { | |
| "name": "background", | |
| "type": "COLOR", | |
| "link": null | |
| }, | |
| { | |
| "name": "model_3d_info", | |
| "type": "LOAD3D_MODEL_INFO", | |
| "link": null | |
| }, | |
| { | |
| "name": "camera_info", | |
| "type": "LOAD3D_CAMERA", | |
| "link": null | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "name": "image", | |
| "type": "IMAGE", | |
| "links": [ | |
| 10 | |
| ], | |
| "slot_index": 0 | |
| }, | |
| { | |
| "name": "mask", | |
| "type": "MASK", | |
| "links": [], | |
| "slot_index": 1 | |
| } | |
| ], | |
| "properties": { | |
| "Node name for S&R": "RenderMesh" | |
| }, | |
| "widgets_values": [ | |
| "auto", | |
| 1024, | |
| 1024 | |
| ] | |
| }, | |
| { | |
| "id": 252, | |
| "type": "SaveImageAdvanced", | |
| "pos": [ | |
| 2160, | |
| 60 | |
| ], | |
| "size": [ | |
| 360, | |
| 162 | |
| ], | |
| "flags": {}, | |
| "order": 8, | |
| "mode": 0, | |
| "inputs": [ | |
| { | |
| "name": "images", | |
| "type": "IMAGE", | |
| "link": 10 | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "name": "images", | |
| "type": "IMAGE", | |
| "links": [], | |
| "slot_index": 0 | |
| } | |
| ], | |
| "properties": { | |
| "Node name for S&R": "SaveImageAdvanced" | |
| }, | |
| "widgets_values": [ | |
| "giga/triposg-preview", | |
| "png", | |
| "8-bit", | |
| "sRGB" | |
| ] | |
| } | |
| ], | |
| "links": [ | |
| [ | |
| 1, | |
| 101, | |
| 0, | |
| 155, | |
| 0, | |
| "IMAGE" | |
| ], | |
| [ | |
| 2, | |
| 153, | |
| 0, | |
| 155, | |
| 1, | |
| "CCTECH_TRIPOSG_RMBG" | |
| ], | |
| [ | |
| 3, | |
| 101, | |
| 1, | |
| 155, | |
| 2, | |
| "MASK" | |
| ], | |
| [ | |
| 4, | |
| 154, | |
| 0, | |
| 156, | |
| 0, | |
| "CCTECH_TRIPOSG_MODEL" | |
| ], | |
| [ | |
| 5, | |
| 155, | |
| 0, | |
| 156, | |
| 1, | |
| "IMAGE" | |
| ], | |
| [ | |
| 6, | |
| 154, | |
| 0, | |
| 157, | |
| 0, | |
| "CCTECH_TRIPOSG_MODEL" | |
| ], | |
| [ | |
| 7, | |
| 156, | |
| 0, | |
| 157, | |
| 1, | |
| "CCTECH_TRIPOSG_LATENT" | |
| ], | |
| [ | |
| 8, | |
| 157, | |
| 0, | |
| 158, | |
| 0, | |
| "MESH" | |
| ], | |
| [ | |
| 9, | |
| 157, | |
| 0, | |
| 251, | |
| 0, | |
| "MESH" | |
| ], | |
| [ | |
| 10, | |
| 251, | |
| 0, | |
| 252, | |
| 0, | |
| "IMAGE" | |
| ] | |
| ], | |
| "groups": [], | |
| "config": {}, | |
| "extra": { | |
| "ds": { | |
| "scale": 0.75, | |
| "offset": [ | |
| 0, | |
| 0 | |
| ] | |
| } | |
| }, | |
| "version": 0.4 | |
| } | |