ComfyUI-3D-Pack icon indicating copy to clipboard operation
ComfyUI-3D-Pack copied to clipboard

Error when starting ComfyUI

Open Lostdragon5 opened this issue 1 year ago • 1 comments

After many hours of testing and tampering and trying to get this to even load into comfy correctly, I noticed that I keep getting this error:

Warn!: Cannot import D:\StableDiffusion\ComfyUI\custom_nodes\ComfyUI-3D-Pack module for custom nodes: This ORT build has ['TensorrtExecutionProvider', 'CUDAExecutionProvider', 'CPUExecutionProvider'] enabled. Since ORT 1.9, you are required to explicitly set the providers parameter when instantiating InferenceSession. For example, onnxruntime.InferenceSession(..., providers=['TensorrtExecutionProvider', 'CUDAExecutionProvider', 'CPUExecutionProvider'], ...)

It seems to be caused by these lines of code in ".\ComfyUI-3D-Pack\Gen_3D_Modules\Unique3D\scripts\utils.py"

providers = [
    ('CUDAExecutionProvider', {
        'device_id': 0,
        'arena_extend_strategy': 'kSameAsRequested',
        'gpu_mem_limit': 8 * 1024 * 1024 * 1024,
        'cudnn_conv_algo_search': 'HEURISTIC',
    })
]

session = new_session(providers=providers)

Lostdragon5 avatar Nov 20 '24 01:11 Lostdragon5

https://github.com/MrForExample/ComfyUI-3D-Pack/issues/222

Dhrhciebcy avatar Dec 30 '24 20:12 Dhrhciebcy

@Lostdragon5 try the new version with wheels for cuda 12.8 please

DenisKochetov avatar Jun 13 '25 20:06 DenisKochetov