/ComfyUI-Flowty-TripoSR-ZHO

TripoSR custom node for comfyui

Primary LanguagePythonGNU General Public License v3.0GPL-3.0

ComfyUI-Flowty-TripoSR-ZHO

项目更新

  • 20240309 重构1.0:修改为直接保存3D文件的节点 Save TripoSR,新增很多基础参数

    Dingtalk_20240309194002

我在原作者的基础上进行了修改,区别如下(已和原作者沟通,意见不同,所以作为独立分支):

1.是否内含背景去除功能

  • 原版:为了保证更快的生成速度,选择去掉了背景去除的步骤,仅保留了生成部分
  • 改版:增加了背景去除的选项,可以选择使用,也可选择不使用,速度上略慢一点

2.对 RGBA 图像的支持不同

  • 目前原版 RGBA 图像直接转为 RGB 后生成的模型会带有黑色背板的,算是一个 bug,估计作者还会继续优化
  • 我的改版遵从原项目对 alpha 通道重新着色为灰色的操作,所以可以保证生成模型不会带有背景

两版节点对比示意图:

TPSR

与原版区别示意视频:

3.5.1.mp4

使用建议:

更加追求速度可直接选择原版,想要自带背景去除 + 更好的 RGBA 支持选择我的改版就好,两个版本之间没有好坏之分,大家根据自己的喜好选择就好!

工作流设计:

LayerDiffusion 和 TripoSR 简直绝配!所以设计了一版和 LayerDiffusion 衔接的工作流,由 LayerDiffusion 生成透明对象,然后直接通过 TripoSR 转为 3D 模型(用的是我这版节点)

已更新为重构之后的新工作流(旧版工作流已不适用):

NEW V1.0 LayerDIffusion + TripoSR【Zho】

Dingtalk_20240309193351

关于我 | About me

📬 联系我

🔗 社交媒体

💡 支持我

下面是原作者的内容:

This is a custom node that lets you use TripoSR right from ComfyUI.

TripoSR is a state-of-the-art open-source model for fast feedforward 3D reconstruction from a single image, collaboratively developed by Tripo AI and Stability AI. (TL;DR it creates a 3d model from an image.)

example

I've created this node for experimentation, feel free to submit PRs for performance improvements etc.

Installation:

  • Install ComfyUI
  • Clone this repo into custom_nodes:
    $ cd ComfyUI/custom_nodes
    $ git clone https://github.com/flowtyone/ComfyUI-Flowty-TripoSR.git
  • Install dependencies:
    $ cd ComfyUI-Flowty-TripoSR
    $ pip install -r requirements.txt
  • Download TripoSR and place it in ComfyUI/models/checkpoints
  • Start ComfyUI (or restart)

Special thanks to MrForExample for creating ComfyUI-3D-Pack. Code from that node pack was used to display 3d models in comfyui.

This is a community project from flowt.ai. If you like it, check us out!

flowt.ai logo