Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hy3D Render Multiview node error: ImportError: DLL load failed while importing custom_rasterizer_kernel: The specified procedure could not be found. #86

Open
Geryco opened this issue Feb 8, 2025 · 1 comment

Comments

@Geryco
Copy link

Geryco commented Feb 8, 2025

Hello, please help me with the solution, I manage to get a working mesh, but with no texture. The workflow stops at the Hy3D Render Multiview node with the following error:


2025-02-07T18:20:53.503404 -
Done.
2025-02-07T18:21:28.202698 - got prompt
2025-02-07T18:21:35.180894 -
Loading pipeline components...: 83%|███████████████████████████████████████████▎ | 5/6 [00:06<00:00, 1.08it/s]2025-02-07T18:21:35.207387 -
Loading pipeline components...: 100%|████████████████████████████████████████████████████| 6/6 [00:06<00:00, 1.16s/it]2025-02-07T18:21:35.207387 -
2025-02-07T18:21:40.122076 - C:\Program Files\ComfyUI_windows_portable\python_embeded\Lib\site-packages\torch\functional.py:539: UserWarning: torch.meshgrid: in an upcoming release, it will be required to pass the indexing argument. (Triggered internally at C:\actions-runner_work\pytorch\pytorch\pytorch\aten\src\ATen\native\TensorShape.cpp:3638.)
return _VF.meshgrid(tensors, **kwargs) # type: ignore[attr-defined]
2025-02-07T18:21:43.835445 - Settings -> Mode=base, Device=cuda:0, Torchscript=enabled2025-02-07T18:21:43.835445 -
2025-02-07T18:21:50.170351 - C:\Program Files\ComfyUI_windows_portable\python_embeded\Lib\site-packages\torchvision\transforms\v2_deprecated.py:42: UserWarning: The transform ToTensor() is deprecated and will be removed in a future release. Instead, please use v2.Compose([v2.ToImage(), v2.ToDtype(torch.float32, scale=True)]).Output is equivalent up to float precision.
warnings.warn(
2025-02-07T18:21:54.626481 -
98%|████████████████████████████████████████████████████████████████████████████████▎ | 49/50 [00:03<00:00, 14.32it/s]2025-02-07T18:21:54.713027 -
100%|██████████████████████████████████████████████████████████████████████████████████| 50/50 [00:03<00:00, 12.62it/s]2025-02-07T18:21:54.713027 -
2025-02-07T18:21:55.675829 - Loading model from C:\Program Files\ComfyUI_windows_portable\ComfyUI\models\diffusion_models\hunyuan3d-dit-v2-0-fp16.safetensors
2025-02-07T18:22:08.101373 - guidance: 2025-02-07T18:22:08.101373 - 2025-02-07T18:22:08.101373 - None2025-02-07T18:22:08.101373 -
2025-02-07T18:22:28.093797 -
Diffusion Sampling:: 100%|█████████████████████████████████████████████████████████████| 50/50 [00:19<00:00, 2.46it/s]2025-02-07T18:22:28.093797 -
Diffusion Sampling:: 100%|█████████████████████████████████████████████████████████████| 50/50 [00:19<00:00, 2.50it/s]2025-02-07T18:22:28.094795 -
2025-02-07T18:22:28.094795 - latents shape: 2025-02-07T18:22:28.094795 - 2025-02-07T18:22:28.094795 - torch.Size([1, 3072, 64])2025-02-07T18:22:28.094795 -
2025-02-07T18:22:28.095791 - Allocated memory: memory=2.769 GB
2025-02-07T18:22:28.095791 - Max allocated memory: max_memory=4.953 GB
2025-02-07T18:22:28.095791 - Max reserved memory: max_reserved=4.969 GB
2025-02-07T18:23:09.598995 -
MC Level 0.0 Implicit Function:: 100%|████████████████████████████████████████████▉| 1783/1784 [00:38<00:00, 46.30it/s]2025-02-07T18:23:09.622982 -
MC Level 0.0 Implicit Function:: 100%|█████████████████████████████████████████████| 1784/1784 [00:38<00:00, 46.16it/s]2025-02-07T18:23:09.622982 -
2025-02-07T18:23:11.475305 - Decoded mesh with 539003 vertices and 1078014 faces
2025-02-07T18:23:13.187761 - Removed floaters, resulting in 538545 vertices and 1077118 faces
2025-02-07T18:23:14.809507 - Removed degenerate faces, resulting in 538545 vertices and 1077118 faces
2025-02-07T18:23:34.624023 - Reduced faces, resulting in 24986 vertices and 50000 faces
2025-02-07T18:23:50.104434 - camera_distance: 1.452025-02-07T18:23:50.104434 -
2025-02-07T18:23:50.206611 - !!! Exception during processing !!! DLL load failed while importing custom_rasterizer_kernel: The specified procedure could not be found.
2025-02-07T18:23:50.212595 - Traceback (most recent call last):
File "C:\Program Files\ComfyUI_windows_portable\ComfyUI\execution.py", line 327, in execute
output_data, output_ui, has_subgraph = get_output_data(obj, input_data_all, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\ComfyUI_windows_portable\ComfyUI\execution.py", line 202, in get_output_data
return_values = _map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\ComfyUI_windows_portable\ComfyUI\execution.py", line 174, in map_node_over_list
process_inputs(input_dict, i)
File "C:\Program Files\ComfyUI_windows_portable\ComfyUI\execution.py", line 163, in process_inputs
results.append(getattr(obj, func)(**inputs))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Hunyuan3DWrapper\nodes.py", line 433, in process
self.render = MeshRender(
^^^^^^^^^^^
File "C:\Program Files\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Hunyuan3DWrapper\hy3dgen\texgen\differentiable_renderer\mesh_render.py", line 158, in init
import custom_rasterizer as cr
File "C:\Program Files\ComfyUI_windows_portable\python_embeded\Lib\site-packages\custom_rasterizer_init
.py", line 32, in
from .render import *
File "C:\Program Files\ComfyUI_windows_portable\python_embeded\Lib\site-packages\custom_rasterizer\render.py", line 25, in
import custom_rasterizer_kernel
ImportError: DLL load failed while importing custom_rasterizer_kernel: The specified procedure could not be found.

2025-02-07T18:23:50.213593 - Prompt executed in 142.00 seconds

## Attached Workflow
Please make sure that workflow does not contain any sensitive information such as API keys or passwords.

Workflow too large. Please manually upload the workflow from local file system.


## Additional Context
(Please add any additional context or steps to reproduce the error here)
@Telpenar
Copy link

Got the sam DLL load failed while importing custom_rasterizer_kernel: The specified procedure could not be found. I have a normal Comfy build but with venv. This helped instantly:

kijai/ComfyUI-Hunyuan3DWrapper#14 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants