Skip to content

Error loading texture generator: '_SafeTensorLoader' object has no attribute 'keys' #113

@Filip2002avramovic

Description

@Filip2002avramovic

`Current working directory: F:\Hunyuan3D2_WinPortable
Script location: F:\Hunyuan3D2_WinPortable\WinScripts-GUI\py\launcher.en.py
--- Starting texture generation setup ---
Compiling and installing DISO...
WARNING: Ignoring invalid distribution ~ustom-rasterizer (F:\Hunyuan3D2_WinPortable\python_standalone\Lib\site-packages)
Requirement already satisfied: diso in f:\hunyuan3d2_winportable\python_standalone\lib\site-packages (0.1.4)
Requirement already satisfied: trimesh in f:\hunyuan3d2_winportable\python_standalone\lib\site-packages (from diso) (4.7.4)
Requirement already satisfied: numpy>=1.20 in f:\hunyuan3d2_winportable\python_standalone\lib\site-packages (from trimesh->diso) (2.2.6)
WARNING: Ignoring invalid distribution ~ustom-rasterizer (F:\Hunyuan3D2_WinPortable\python_standalone\Lib\site-packages)
WARNING: Ignoring invalid distribution ~ustom-rasterizer (F:\Hunyuan3D2_WinPortable\python_standalone\Lib\site-packages)

[notice] A new release of pip is available: 25.2 -> 26.1.1
[notice] To update, run: F:\Hunyuan3D2_WinPortable\python_standalone\python.exe -m pip install --upgrade pip
Compiling and installing custom_rasterizer...
WARNING: Ignoring invalid distribution ~ustom-rasterizer (F:\Hunyuan3D2_WinPortable\python_standalone\Lib\site-packages)
Processing f:\hunyuan3d2_winportable\hunyuan3d-2.1\hy3dpaint\custom_rasterizer
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'done'
Building wheels for collected packages: custom_rasterizer
DEPRECATION: Building 'custom_rasterizer' using the legacy setup.py bdist_wheel mechanism, which will be removed in a future version. pip 25.3 will enforce this behaviour change. A possible replacement is to use the standardized build interface by setting the --use-pep517 option, (possibly combined with --no-build-isolation), or adding a pyproject.toml file to the source tree of 'custom_rasterizer'. Discussion can be found at pypa/pip#6334
Building wheel for custom_rasterizer (setup.py): started
Building wheel for custom_rasterizer (setup.py): finished with status 'done'
Created wheel for custom_rasterizer: filename=custom_rasterizer-0.1-cp312-cp312-win_amd64.whl size=131038 sha256=8097de7eb30c97db80c3443b05f0c03aecefc1524913739378862bbb6259c8b7
Stored in directory: C:\Users\filip\AppData\Local\Temp\pip-ephem-wheel-cache-uxfi6j5h\wheels\4d\1e\95\b02859e8721bc38b443dc81f87a755c5d2623a27bf4f4c3eb6
Successfully built custom_rasterizer
WARNING: Ignoring invalid distribution ~ustom-rasterizer (F:\Hunyuan3D2_WinPortable\python_standalone\Lib\site-packages)
Installing collected packages: custom_rasterizer
Attempting uninstall: custom_rasterizer
Found existing installation: custom_rasterizer 0.1
Uninstalling custom_rasterizer-0.1:
Successfully uninstalled custom_rasterizer-0.1
WARNING: Ignoring invalid distribution ~ustom-rasterizer (F:\Hunyuan3D2_WinPortable\python_standalone\Lib\site-packages)
Successfully installed custom_rasterizer-0.1

[notice] A new release of pip is available: 25.2 -> 26.1.1
[notice] To update, run: F:\Hunyuan3D2_WinPortable\python_standalone\python.exe -m pip install --upgrade pip
Compiling and installing DifferentiableRenderer...
WARNING: Ignoring invalid distribution ~ustom-rasterizer (F:\Hunyuan3D2_WinPortable\python_standalone\Lib\site-packages)
Processing f:\hunyuan3d2_winportable\hunyuan3d-2.1\hy3dpaint\differentiablerenderer
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'done'
Requirement already satisfied: pybind11>=2.6.0 in f:\hunyuan3d2_winportable\python_standalone\lib\site-packages (from mesh_inpaint_processor==0.0.0) (3.0.1)
Building wheels for collected packages: mesh_inpaint_processor
DEPRECATION: Building 'mesh_inpaint_processor' using the legacy setup.py bdist_wheel mechanism, which will be removed in a future version. pip 25.3 will enforce this behaviour change. A possible replacement is to use the standardized build interface by setting the --use-pep517 option, (possibly combined with --no-build-isolation), or adding a pyproject.toml file to the source tree of 'mesh_inpaint_processor'. Discussion can be found at pypa/pip#6334
Building wheel for mesh_inpaint_processor (setup.py): started
Building wheel for mesh_inpaint_processor (setup.py): finished with status 'done'
Created wheel for mesh_inpaint_processor: filename=mesh_inpaint_processor-0.0.0-cp312-cp312-win_amd64.whl size=80810 sha256=592411a54fa2523c28248c6c7174361af018e2189163b9ffecc5c9e9e8b45c97
Stored in directory: C:\Users\filip\AppData\Local\Temp\pip-ephem-wheel-cache-w2onq8vy\wheels\93\63\91\477263d2662513861014a8edb2decfa97d873150644e689737
Successfully built mesh_inpaint_processor
WARNING: Ignoring invalid distribution ~ustom-rasterizer (F:\Hunyuan3D2_WinPortable\python_standalone\Lib\site-packages)
Installing collected packages: mesh_inpaint_processor
Attempting uninstall: mesh_inpaint_processor
Found existing installation: mesh_inpaint_processor 0.0.0
Uninstalling mesh_inpaint_processor-0.0.0:
Successfully uninstalled mesh_inpaint_processor-0.0.0
WARNING: Ignoring invalid distribution ~ustom-rasterizer (F:\Hunyuan3D2_WinPortable\python_standalone\Lib\site-packages)
Successfully installed mesh_inpaint_processor-0.0.0

[notice] A new release of pip is available: 25.2 -> 26.1.1
[notice] To update, run: F:\Hunyuan3D2_WinPortable\python_standalone\python.exe -m pip install --upgrade pip
Copied file: mesh_inpaint_processor.cp312-win_amd64.pyd
--- Texture generation setup completed ---
Changing to directory: F:\Hunyuan3D2_WinPortable\Hunyuan3D-2.1
Starting subprocess...
Executing command:
cd F:\Hunyuan3D2_WinPortable\Hunyuan3D-2.1 && F:\Hunyuan3D2_WinPortable\python_standalone\python.exe -s gradio_app.py --low_vram_mode --profile 3
A matching Triton is not available, some optimizations will not be enabled
Traceback (most recent call last):
File "F:\Hunyuan3D2_WinPortable\python_standalone\Lib\site-packages\xformers_init_.py", line 57, in _is_triton_available
import triton # noqa
^^^^^^^^^^^^^
ModuleNotFoundError: No module named 'triton'
Torchvision version: 0.23.0+cu129
torchvision.transforms.functional_tensor not found, applying compatibility fix...
Applied compatibility fix: created functional_tensor mock module
Loading example img list ...
Loading example txt list ...
Applying torchvision compatibility fix for texture generation...
Torchvision version: 0.23.0+cu129
torchvision.transforms.functional_tensor is available

Fetching 19 files: 0%| | 0/19 [00:00<?, ?it/s]
Fetching 19 files: 100%|##########| 19/19 [00:00<00:00, 18915.68it/s]

Loading pipeline components...: 0%| | 0/6 [00:00<?, ?it/s]
Loading pipeline components...: 17%|#6 | 1/6 [00:00<00:02, 2.43it/s]
Loading pipeline components...: 67%|######6 | 4/6 [00:08<00:04, 2.28s/it]

Loading weights: 0%| | 0/372 [00:00<?, ?it/s]�[A

Loading weights: 1%| | 2/372 [00:00<01:24, 4.38it/s]�[A

Loading weights: 58%|#####8 | 216/372 [00:00<00:00, 496.69it/s]�[A

Loading weights: 88%|########7 | 327/372 [00:00<00:00, 516.70it/s]�[A
Loading weights: 100%|##########| 372/372 [00:00<00:00, 429.25it/s]

Loading pipeline components...: 83%|########3 | 5/6 [00:09<00:01, 1.95s/it]
Loading pipeline components...: 100%|##########| 6/6 [00:10<00:00, 1.52s/it]
Loading pipeline components...: 100%|##########| 6/6 [00:10<00:00, 1.68s/it]
Traceback (most recent call last):
File "F:\Hunyuan3D2_WinPortable\Hunyuan3D-2.1\gradio_app.py", line 824, in
tex_pipeline = Hunyuan3DPaintPipeline(conf)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "F:\Hunyuan3D2_WinPortable\Hunyuan3D-2.1\hy3dpaint\textureGenPipeline.py", line 84, in init
self.load_models()
File "F:\Hunyuan3D2_WinPortable\Hunyuan3D-2.1\hy3dpaint\textureGenPipeline.py", line 89, in load_models
self.models["multiview_model"] = multiviewDiffusionNet(self.config)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "F:\Hunyuan3D2_WinPortable\Hunyuan3D-2.1\hy3dpaint\utils\multiview_utils.py", line 58, in init
self.dino_v2 = Dino_v2(config.dino_ckpt_path).to(torch.float16)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "F:\Hunyuan3D2_WinPortable\Hunyuan3D-2.1\hy3dpaint\hunyuanpaintpbr\unet\modules.py", line 52, in init
self.dino_v2 = AutoModel.from_pretrained(dino_v2_path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "F:\Hunyuan3D2_WinPortable\python_standalone\Lib\site-packages\transformers\models\auto\auto_factory.py", line 394, in from_pretrained
return model_class.from_pretrained(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "F:\Hunyuan3D2_WinPortable\python_standalone\Lib\site-packages\transformers\modeling_utils.py", line 4245, in from_pretrained
loading_info, disk_offload_index = cls._load_pretrained_model(model, state_dict, checkpoint_files, load_config)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "F:\Hunyuan3D2_WinPortable\python_standalone\Lib\site-packages\transformers\modeling_utils.py", line 4365, in _load_pretrained_model
for k in file_pointer.keys():
^^^^^^^^^^^^^^^^^
AttributeError: '_SafeTensorLoader' object has no attribute 'keys'
2026-05-05 18:16:12,529 - hy3dgen.shapgen - INFO - Try to load model from local path: F:\Hunyuan3D2_WinPortable\HuggingFaceHub\tencent/Hunyuan3D-2.1\hunyuan3d-dit-v2-1
2026-05-05 18:16:12,532 - hy3dgen.shapgen - INFO - Loading model from F:\Hunyuan3D2_WinPortable\HuggingFaceHub\tencent/Hunyuan3D-2.1\hunyuan3d-dit-v2-1\model.fp16.ckpt
INFO: Started server process [7288]
INFO: Waiting for application startup.
INFO: Application startup complete.
INFO: Uvicorn running on http://0.0.0.0:8080 (Press CTRL+C to quit)
Error loading texture generator: '_SafeTensorLoader' object has no attribute 'keys'
Failed to load texture generator.
Please try to install requirements by following README.md
using moe
using moe
using moe
using moe
using moe
using moe
PointCrossAttentionEncoder INFO: pc_sharpedge_size is zero
�[1m�[95m************ Memory Management for the GPU Poor (mmgp 3.5.10) by DeepBeepMeep ************�[0m�[0m
Hooked to model 'i23d_workerconditioner' (SingleImageEncoder)
Hooked to model 'i23d_workermodel' (HunYuanDiTPlain)
Hooked to model 'i23d_workervae' (ShapeVAE)
INFO: 127.0.0.1:55123 - "GET // HTTP/1.1" 200 OK
INFO: 127.0.0.1:55123 - "GET /gradio_api/heartbeat/r8oec19vid HTTP/1.1" 200 OK
INFO: 127.0.0.1:11908 - "GET /theme.css?v=af66930c6b21000bbd1ac78b002361c4c0013947b467468ee478903a5dab794a HTTP/1.1" 200 OK
INFO: 127.0.0.1:11908 - "GET /static/fonts/IBMPlexSans/IBMPlexSans-Regular.woff2 HTTP/1.1" 404 Not Found
INFO: 127.0.0.1:11908 - "GET /static/fonts/IBMPlexSans/IBMPlexSans-Bold.woff2 HTTP/1.1" 404 Not Found
INFO: 127.0.0.1:11908 - "GET /static/fonts/ui-sans-serif/ui-sans-serif-Regular.woff2 HTTP/1.1" 404 Not Found
INFO: 127.0.0.1:11908 - "GET /static/fonts/ui-sans-serif/ui-sans-serif-Bold.woff2 HTTP/1.1" 404 Not Found
INFO: 127.0.0.1:11908 - "GET /static/fonts/system-ui/system-ui-Regular.woff2 HTTP/1.1" 404 Not Found
INFO: 127.0.0.1:11908 - "GET /static/fonts/system-ui/system-ui-Bold.woff2 HTTP/1.1" 404 Not Found
INFO: 127.0.0.1:51340 - "GET /manifest.json HTTP/1.1" 404 Not Found`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions