Sitemap

AI that creates 3D models from images

MLBoy
Mar 24, 2025

You can also see the back of it.

The 3D created from the image below.
original image.

How to use 🍰

install

git clone https://github.com/Tencent/Hunyuan3D-2.git
cd Hunyuan3D-2
pip install -r requirements.txt
# for texture
cd hy3dgen/texgen/custom_rasterizer
python3 setup.py install
cd ../../..
cd hy3dgen/texgen/differentiable_renderer
python3 setup.py install

execution

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='image.jpg')[0]

pipeline = Hunyuan3DPaintPipeline.from_pretrained('tencent/Hunyuan3D-2')
mesh = pipeline(mesh, image='image.jpg')
mesh.export('mesh.glb')

🐣

I am a freelance engineer.
For business inquiries, please contact me at
rockyshikoku@gmail.com

I provide information related to AI.

[Twitter](https://twitter.com/JackdeS11)

[Medium](https://medium.com/@rockyshikoku)

[GitHub](https://github.com/john-rocky)

--

--

MLBoy
MLBoy

No responses yet