Errors when using C++ API inference
See original GitHub issueI don’t know what’s wrong with this computer?cuda or cudnn? Need to get your help.
[2022-07-22 09:47:45.731] [mmdeploy] [error] [trt_net.cpp:28] TRTNet: 3: [executionContext.cpp::nvinfer1::rt::ExecutionContext::setBindingDimensions::926] Error Code 3: API Usage Error (Parameter check failed at: executionContext.cpp::nvinfer1::rt::ExecutionContext::setBindingDimensions::926, condition: mOptimizationProfile >= 0 && mOptimizationProfile < mEngine.getNbOptimizationProfiles()
Issue Analytics
- State:
- Created a year ago
- Comments:7
Top Results From Across the Web
APEx: Automated Inference of Error Specifications for C APIs
Using our approach, we generated 93 correct error specifications for API functions collected from 6 popular C libraries, with a pre- cision of...
Read more >Tensorflow-Lite on NDK with C-API fails to provide output - no ...
Extracting the inference result with TfLiteTensorCopyToBuffer does not change the output array - it's still all zeros. Describe the expected ...
Read more >Inference error with TensorFlow C++ on iOS: "Invalid argument
I am trying to run my model on iOS using TensorFlow's C++ API. The model is a SavedModel saved ...
Read more >[OpenVino C API] inference engine error while reading network
Solved: Hi I have converted my ML model using a model optimizer. My project is developed in C language and my model will...
Read more >Inferencing SDK Error Codes - Edge Impulse API
This occurs if you are using EI_C_LINKAGE to call to SDK from a C file. Some functions are not supported via C linkage....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@irexyc @lvhan028 Reproduced on my machine
error log with running
demo/csrc/object_detection
env
script with
deploy.py
script with
test.py
run successfully.script with
object_detection
failedThe pytorch was installed with conda through
conda install pytorch==1.8.0 torchvision==0.9.0 cudatoolkit=11.1 -c pytorch
Reinstall pytorch withpip install torch==1.8.0+cu111 torchvision==0.9.0+cu111 -f https://download.pytorch.org/whl/torch_stable.html
works. Strongly suggest not to installcudatoolkit
with conda if cuda&cudnn are already installed on the machine.