Hunyuan3D-2 icon indicating copy to clipboard operation
Hunyuan3D-2 copied to clipboard

fix --model_path argument in api_server.py

Open PascalSalesch opened this issue 1 month ago • 2 comments

If you pass a --model_path to api_server.py that you haven't downloaded already, it won't be able to resolve because the subfolder in api_server.py doesn't exist: subfolder='hunyuan3d-dit-v2-mini-turbo'

https://huggingface.co/tencent/Hunyuan3D-2/tree/main

there's currently no way to pass a subfolder to api_server.py via args. After the change you can call

    python3 api_server.py \
        --host 0.0.0.0 \
        --port 8080 \
        --enable_tex \
        --model_path tencent/Hunyuan3D-2 \
+       --subfolder hunyuan3d-dit-v2-0-turbo \
        --tex_model_path tencent/Hunyuan3D-2

as you can see I changed subfolder from hunyuan3d-dit-v2-mini-turbo to hunyuan3d-dit-v2-0-turbo

PascalSalesch avatar Nov 09 '25 18:11 PascalSalesch

CLA assistant check
Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

tencent-adm avatar Nov 09 '25 18:11 tencent-adm

https://github.com/Tencent-Hunyuan/Hunyuan3D-2/issues/71#issuecomment-3462253772

PascalSalesch avatar Nov 09 '25 18:11 PascalSalesch