comfyanonymous / ComfyUI_TensorRT

MIT License
459 stars 30 forks source link

[executionContext.cpp::nvinfer1::rt::ShapeMachineContext::resolveSlots::2842] Error Code 3: API Usage Error (Parameter check failed at: runtime/api/executionContext.cpp::nvinfer1::rt::ShapeMachineContext::resolveSlots::2842, condition: allInputDimensionsSpecified(routine) ) #31

Closed DarkAlchy closed 3 months ago

DarkAlchy commented 3 months ago

3: [executionContext.cpp::nvinfer1::rt::ShapeMachineContext::resolveSlots::2842] Error Code 3: API Usage Error (Parameter check failed at: runtime/api/executionContext.cpp::nvinfer1::rt::ShapeMachineContext::resolveSlots::2842, condition: allInputDimensionsSpecified(routine) )

I recompiled the model thinking that was it, but no dice. this was a dynamic compile. Now this used to work then this message began a few days ago.

DarkAlchy commented 3 months ago

Got it to work and if anyone runs into this error then finds this via an Internet search the issue is when you build the model use context min: 1, opt: 2, max: 4 then it will work as the issue was longer than 77 characters prompt.