Hunyuan3D-2

Tencent-Hunyuan长期未更新

腾讯混元开源的大规模扩散模型,能从文本或图片直接生成高分辨率3D模型,带精细几何形状和纹理,省去手工建模流程。

High-Resolution 3D Assets Generation with Large Scale Hunyuan3D Diffusion Models.

暂无版本15,378star +34 / 7 天1,594fork同步于 2026-11-10 17:26 UTC

怎么上手

由 README 提炼,执行前请确认
pip install -r requirements.txt
pip install -e .
硬件要求按 README 说明

README 未说明具体显存要求;Gradio 启动命令提供 --low_vram_mode 低显存选项,Turbo 版本可加 --enable_flashvdm 加速。

下载:源码 zip·GitHub Releases(安装包)本站不镜像安装包

项目说明

由 README 自动翻译提炼

腾讯开源的两阶段 3D 生成系统,先用扩散模型出网格再合成贴图,把图片变成带纹理的高分辨率 3D 资产

腾讯混元开源的大规模扩散模型,能从文本或图片直接生成高分辨率3D模型,带精细几何形状和纹理,省去手工建模流程。

核心能力

  • 用 Hunyuan3D-DiT 流匹配扩散 Transformer 从条件图生成几何网格
  • 用 Hunyuan3D-Paint 为生成或手工网格合成高分辨率纹理贴图
  • 形状与纹理解耦的两阶段流水线,可单独给已有网格上色
  • 提供 diffusers 风格 API,输出 trimesh 对象可存 glb/obj
  • 自带 Gradio 应用、API Server 与 Blender 插件三种调用方式

容易踩的坑

纹理功能需额外进入 hy3dgen/texgen/custom_rasterizer 和 differentiable_renderer 目录分别执行 python3 setup.py install;模型需从 Hugging Face 拉取 tencent/Hunyuan3D-2 等权重,首次运行会下载;Pytorch 需自行按官网安装,不在 requirements.txt 内。

内容由模型根据 README 生成,可能不完整或不准确,以官方文档为准。看原文 README

最近发版

0 个版本

暂无 release 数据(可能没有发版,或尚未同步)。

用户点评

登录用户的真实使用记录,可按版本和硬件筛选
共 0 条

    还没有人点评。第一个说出真实体验的人最有价值。

    README 原文

    未翻译

    中文阅读 日本語で読む

    https://github.com/user-attachments/assets/a2cbc5b8-be22-49d7-b1c3-7aa2b20ba460

    🔥 News

    Join our Wechat and Discord group to discuss and find help from us.

    Wechat GroupXiaohongshuXDiscord

    Abstract

    We present Hunyuan3D 2.0, an advanced large-scale 3D synthesis system for generating high-resolution textured 3D assets. This system includes two foundation components: a large-scale shape generation model - Hunyuan3D-DiT, and a large-scale texture synthesis model - Hunyuan3D-Paint. The shape generative model, built on a scalable flow-based diffusion transformer, aims to create geometry that properly aligns with a given condition image, laying a solid foundation for downstream applications. The texture synthesis model, benefiting from strong geometric and diffusion priors, produces high-resolution and vibrant texture maps for either generated or hand-crafted meshes. Furthermore, we build Hunyuan3D-Studio - a versatile, user-friendly production platform that simplifies the re-creation process of 3D assets. It allows both professional and amateur users to manipulate or even animate their meshes efficiently. We systematically evaluate our models, showing that Hunyuan3D 2.0 outperforms previous state-of-the-art models, including the open-source models and closed-source models in geometry details, condition alignment, texture quality, and e.t.c.

    ☯️ Hunyuan3D 2.0

    Architecture

    Hunyuan3D 2.0 features a two-stage generation pipeline, starting with the creation of a bare mesh, followed by the synthesis of a texture map for that mesh. This strategy is effective for decoupling the difficulties of shape and texture generation and also provides flexibility for texturing either generated or handcrafted meshes.

    Performance

    We have evaluated Hunyuan3D 2.0 with other open-source as well as close-source 3d-generation methods. The numerical results indicate that Hunyuan3D 2.0 surpasses all baselines in the quality of generated textured 3D assets and the condition following ability.

    ModelCMMD(⬇)FID_CLIP(⬇)FID(⬇)CLIP-score(⬆)
    Top Open-source Model13.59154.639289.2870.787
    Top Close-source Model13.60055.866305.9220.779
    Top Close-source Model23.36849.744294.6280.806
    Top Close-source Model33.21851.574295.6910.799
    Hunyuan3D 2.03.19349.165282.4290.809

    Generation results of Hunyuan3D 2.0:

    🎁 Models Zoo

    It takes 6 GB VRAM for shape generation and 16 GB for shape and texture generation in total.

    Hunyuan3D-2-1 Series

    ModelDescriptionDateSizeHuggingface
    Hunyuan3D-DiT-v2-1Mini Image to Shape Model2025-06-133.0BDownload
    Hunyuan3D-Paint-v2-1Texture Generation Model2025-06-131.3BDownload

    Hunyuan3D-2mini Series

    ModelDescriptionDateSizeHuggingface
    Hunyuan3D-DiT-v2-mini-TurboStep Distillation Version2025-03-190.6BDownload
    Hunyuan3D-DiT-v2-mini-FastGuidance Distillation Version2025-03-180.6BDownload
    Hunyuan3D-DiT-v2-miniMini Image to Shape Model2025-03-180.6BDownload

    Hunyuan3D-2mv Series

    ModelDescriptionDateSizeHuggingface
    Hunyuan3D-DiT-v2-mv-TurboStep Distillation Version2025-03-191.1BDownload
    Hunyuan3D-DiT-v2-mv-FastGuidance Distillation Version2025-03-181.1BDownload
    Hunyuan3D-DiT-v2-mvMultiview Image to Shape Model2025-03-181.1BDownload

    Hunyuan3D-2 Series

    ModelDescriptionDateSizeHuggingface
    Hunyuan3D-DiT-v2-0-TurboStep Distillation Model2025-03-191.1BDownload
    Hunyuan3D-DiT-v2-0-FastGuidance Distillation Model2025-02-031.1BDownload
    Hunyuan3D-DiT-v2-0Image to Shape Model2025-01-211.1BDownload
    Hunyuan3D-Paint-v2-0Texture Generation Model2025-01-211.3BDownload
    Hunyuan3D-Paint-v2-0-TurboDistillation Texure Model2025-04-011.3BDownload
    Hunyuan3D-Delight-v2-0Image Delight Model2025-01-211.3BDownload

    🤗 Get Started with Hunyuan3D 2.0

    Hunyuan3D 2.0 supports Macos, Windows, Linux. You may follow the next steps to use Hunyuan3D 2.0 via:

    Install Requirements

    Please install Pytorch via the official site. Then install the other requirements via

    pip install -r requirements.txt
    pip install -e .
    # for texture
    cd hy3dgen/texgen/custom_rasterizer
    python3 setup.py install
    cd ../../..
    cd hy3dgen/texgen/differentiable_renderer
    python3 setup.py install
    

    Code Usage

    We designed a diffusers-like API to use our shape generation model - Hunyuan3D-DiT and texture synthesis model - Hunyuan3D-Paint.

    You could assess Hunyuan3D-DiT via:

    from hy3dgen.shapegen import Hunyuan3DDiTFlowMatchingPipeline
    
    pipeline = Hunyuan3DDiTFlowMatchingPipeline.from_pretrained('tencent/Hunyuan3D-2')
    mesh = pipeline(image='assets/demo.png')[0]
    

    The output mesh is a trimesh object, which you could save to glb/obj (or other format) file.

    For Hunyuan3D-Paint, do the following:

    from hy3dgen.texgen import Hunyuan3DPaintPipeline
    from hy3dgen.shapegen import Hunyuan3DDiTFlowMatchingPipeline
    
    # let's generate a mesh first
    pipeline = Hunyuan3DDiTFlowMatchingPipeline.from_pretrained('tencent/Hunyuan3D-2')
    mesh = pipeline(image='assets/demo.png')[0]
    
    pipeline = Hunyuan3DPaintPipeline.from_pretrained('tencent/Hunyuan3D-2')
    mesh = pipeline(mesh, image='assets/demo.png')
    

    Please visit examples folder for more advanced usage, such as multiview image to 3D generation and * texture generation for handcrafted mesh*.

    Gradio App

    You could also host a Gradio App in your own computer via:

    Standard Version

    # Hunyuan3D-2mini
    python3 gradio_app.py --model_path tencent/Hunyuan3D-2mini --subfolder hunyuan3d-dit-v2-mini --texgen_model_path tencent/Hunyuan3D-2 --low_vram_mode
    # Hunyuan3D-2mv
    python3 gradio_app.py --model_path tencent/Hunyuan3D-2mv --subfolder hunyuan3d-dit-v2-mv --texgen_model_path tencent/Hunyuan3D-2 --low_vram_mode
    # Hunyuan3D-2
    python3 gradio_app.py --model_path tencent/Hunyuan3D-2 --subfolder hunyuan3d-dit-v2-0 --texgen_model_path tencent/Hunyuan3D-2 --low_vram_mode
    

    Turbo Version

    # Hunyuan3D-2mini
    python3 gradio_app.py --model_path tencent/Hunyuan3D-2mini --subfolder hunyuan3d-dit-v2-mini-turbo --texgen_model_path tencent/Hunyuan3D-2 --low_vram_mode --enable_flashvdm
    # Hunyuan3D-2mv
    python3 gradio_app.py --model_path tencent/Hunyuan3D-2mv --subfolder hunyuan3d-dit-v2-mv-turbo --texgen_model_path tencent/Hunyuan3D-2 --low_vram_mode --enable_flashvdm
    # Hunyuan3D-2
    python3 gradio_app.py --model_path tencent/Hunyuan3D-2 --subfolder hunyuan3d-dit-v2-0-turbo --texgen_model_path tencent/Hunyuan3D-2 --low_vram_mode --enable_flashvdm
    

    API Server

    You could launch an API server locally, which you could post web request for Image/Text to 3D, Texturing existing mesh, and e.t.c.

    python api_server.py --host 0.0.0.0 --port 8080
    

    A demo post request for image to 3D without texture.

    img_b64_str=$(base64 -i assets/demo.png)
    curl -X POST "http://localhost:8080/generate" \
         -H "Content-Type: application/json" \
         -d '{
               "image": "'"$img_b64_str"'",
             }' \
         -o test2.glb
    

    Blender Addon

    With an API server launched, you could also directly use Hunyuan3D 2.0 in your blender with our Blender Addon. Please follow our tutorial to install and use.

    https://github.com/user-attachments/assets/8230bfb5-32b1-4e48-91f4-a977c54a4f3e

    Official Site

    Don't forget to visit Hunyuan3D for quick use, if you don't want to host yourself.

    📑 Open-Source Plan

    • Inference Code
    • Model Checkpoints
    • Technical Report
    • ComfyUI
    • Finetuning
    • TensorRT Version

    🔗 BibTeX

    If you found this repository helpful, please cite our reports:

    @misc{lai2025hunyuan3d25highfidelity3d,
          title={Hunyuan3D 2.5: Towards High-Fidelity 3D Assets Generation with Ultimate Details}, 
          author={Tencent Hunyuan3D Team},
          year={2025},
          eprint={2506.16504},
          archivePrefix={arXiv},
          primaryClass={cs.CV},
          url={https://arxiv.org/abs/2506.16504}, 
    }
    
    @misc{hunyuan3d22025tencent,
        title={Hunyuan3D 2.0: Scaling Diffusion Models for High Resolution Textured 3D Assets Generation},
        author={Tencent Hunyuan3D Team},
        year={2025},
        eprint={2501.12202},
        archivePrefix={arXiv},
        primaryClass={cs.CV}
    }
    
    @misc{yang2024hunyuan3d,
        title={Hunyuan3D 1.0: A Unified Framework for Text-to-3D and Image-to-3D Generation},
        author={Tencent Hunyuan3D Team},
        year={2024},
        eprint={2411.02293},
        archivePrefix={arXiv},
        primaryClass={cs.CV}
    }
    

    Community Resources

    Thanks for the contributions of community members, here we have these great extensions of Hunyuan3D 2.0:

    Acknowledgements

    We would like to thank the contributors to the Trellis, DINOv2, Stable Diffusion, FLUX, diffusers, HuggingFace, CraftsMan3D, and Michelangelo repositories, for their open research and exploration.

    Star History