Reorder execution providers in model initialization
When TensorRT libraries are missing, forcibly using the TensorRT Execution Provider can crash the entire ComfyUI Python process.
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user