From 5f68ae0de75094067398209f1e5f1bd9fcaf7909 Mon Sep 17 00:00:00 2001 From: hben35096 <139383150+hben35096@users.noreply.github.com> Date: Fri, 18 Sep 2026 09:07:50 +0800 Subject: [PATCH] Reorder execution providers in model initialization When TensorRT libraries are missing, forcibly using the TensorRT Execution Provider can crash the entire ComfyUI Python process. --- py/human_parts_ultra.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/py/human_parts_ultra.py b/py/human_parts_ultra.py index cbe433c..8e37dca 100644 --- a/py/human_parts_ultra.py +++ b/py/human_parts_ultra.py @@ -73,7 +73,7 @@ class LS_HumanPartsUltra: """ import onnxruntime as ort - model = ort.InferenceSession(model_path, providers=['TensorrtExecutionProvider', 'CUDAExecutionProvider', 'CPUExecutionProvider']) + model = ort.InferenceSession(model_path, providers=['CUDAExecutionProvider', 'CPUExecutionProvider', 'TensorrtExecutionProvider']) ret_images = [] ret_masks = [] for img in image: