Hunyuan3D 2.0

repository·main·Indexed 12 days ago

https://github.com/tencent-hunyuan/hunyuan3d-2

An advanced 3D synthesis system for generating high-resolution textured 3D assets from images. It features a decoupled pipeline consisting of Hunyuan3D-DiT for shape generation and Hunyuan3D-Paint for texture synthesis. The system supports various model series including mini, mv (multiview), and standard versions, with Turbo variants accelerated by FlashVDM. It provides a diffusers-like API, a Gradio web interface, an API server, and a Blender addon.

Tokens
6.4K
Snippets
25
Records
35
Agent score
92%

What's inside Hunyuan3D 2.0

  1. Overview of Hunyuan3D 2.0

    main

    Hunyuan3D 2.0 is a large-scale 3D synthesis system designed to generate high-resolution textured 3D assets. It consists of two primary foundation components:

    1. Hunyuan3D-DiT: A large-scale shape generation model built on a scalable flow-based diffusion transformer. It creates geometry that aligns with a provided condition image.
    2. Hunyuan3D-Paint: A large-scale texture synthesis model that produces high-resolution, vibrant texture maps for both generated and hand-crafted meshes.

    The system is designed to decouple the complexities of shape and texture generation, providing flexibility for various 3D asset creation workflows.

  2. Overview of Hunyuan3D 2.0 components

    main

    Hunyuan3D 2.0 is a large-scale 3D synthesis system designed for generating high-resolution textured 3D assets. It is composed of four primary foundation components:

    1. Hunyuan3D-DiT: A large-scale model dedicated to shape generation.
    2. Hunyuan3D-Paint: A large-scale model dedicated to texture synthesis.
    3. Hunyuan3D-Studio: A production platform for manipulating or animating meshes, suitable for both professional and amateur workflows.
    4. FlashVDM: A universal acceleration framework used to speed up processes.
  3. How the Hunyuan3D 2.0 generation pipeline works

    main

    Hunyuan3D 2.0 utilizes a two-stage generation pipeline to create 3D assets:

    1. Stage 1: Shape Generation: The system first creates a 'bare mesh' (geometry without textures) using the shape generation model.
    2. Stage 2: Texture Synthesis: The system then synthesizes a texture map for that specific mesh.

    This decoupled approach allows users to either use the full end-to-end pipeline or apply the texture synthesis model to existing, hand-crafted meshes.

  4. Explore ∇-Prox features and API

    main

    New users can get oriented with ∇-Prox through the following resources:

    • Quick Tour: A guided overview to become familiar with the features and functionalities of ∇-Prox.
    • API Reference: A complete technical list of all available classes and functions.
    • Tutorials: In-depth guides covering advanced topics and best practices.
  5. Build and preview the documentation HTML

    main
    To generate the HTML version of the project documentation from the source files, use the make html command. Once the build process is complete, you can preview the documentation by opening build/html/index.html in your web browser.
    make html
  6. Run the Hunyuan3D 2.0 Gradio App (Standard Version)

    main

    You can host a local Gradio interface for Hunyuan3D 2.0 using the gradio_app.py script. Depending on the model variant you wish to use (mini, multi-view, or standard), you must specify the correct --model_path and --subfolder. All commands below include --low_vram_mode to optimize memory usage.

    # 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
  7. Perform an editable installation of Delta-Prox

    main

    Use an editable installation if you need to use the main version of the source code or if you intend to test changes made to the code.

    Important: You must retain the cloned DeltaProx folder to continue using the library after an editable installation.

    git clone git+https://github.com/princeton-computational-imaging/Delta-Prox.git
    cd DeltaProx
    pip install -e .
  8. Use Hunyuan3D 2.0 in Blender via the Blender Addon

    main

    You can use Hunyuan3D 2.0 directly within Blender by using the provided Blender Addon (blender_addon.py).

    Prerequisite: You must have an API server launched and running before using the addon in Blender.

    Installation and Usage:

    1. Obtain the blender_addon.py file from the repository.
    2. Follow the specific tutorial provided in the repository to install and configure the addon within your Blender environment.