Comments (4)
I had the same issue, fixed it by replacing
builder.create_network(EXPLICIT_BATCH)
with:
builder.create_network()
.. in onnx_to_tensorrt.py. Detection works fine now. The EXPLICIT_BATCH argument is specific for TensorRT7, I think.
I also had the message for 'Layer of type yolo not supported', but it all seemed to work nonetheless.
from tensorrt_demos.
Sorry, this is my bad. I modified the code to support TensorRT 7 (for x86_64) a couple of days ago. I did not do enough testing to make sure the modification does not break TensorRT 5 & 6. I just pushed a fix into the repository.
Thanks to Michael-Dub for quick answering of the question.
from tensorrt_demos.
thanks your help. Michael-Dub advise worked. I have few quastions ? My system tensorRT 6.0 on jetson tx2 and I try to convert my onnx_model to tensorRT C++ API but I couldn't. Do you have any idea for this quastions? I tried this repo https://github.com/onnx/onnx-tensorrt but tx2 not suporrted tensorRT 7.0. https://devtalk.nvidia.com/default/topic/1069634/how-to-upgrade-tensorrt-to-7-0-version/?offset=7
from tensorrt_demos.
@omeralierdemir Would you like to inference (do object detection) with TensorRT C++ API, or to convert a YOLOv3 model to TensorRT engine with C++? If it's the former case, you could use the TensorRT engine created by my python scripts, and:
- Reference my TrtGooglenet code for how to feed an input image ('float32' array) and do inference with the TensorRT engine.
- Implement the preprocessing and postprocessing code in C++.
I think a C++ implementation could run significantly faster than python if done properly.
from tensorrt_demos.
Related Issues (20)
- Calib.table not created Deepstream
- Error when install install_pycuda.sh file HOT 2
- Any plan about SwinIR? HOT 1
- Batch Processed Image Inference HOT 2
- Failure to Build ONNX from Custom Yolo HOT 2
- Error when running on separate thread HOT 2
- wrong many bounding box and wrong predict untrained class id HOT 2
- error happening when sh ./install_pycuda.sh HOT 3
- Integration With AGX Orin HOT 4
- yolov3 onnx format with low opset, suitable for tensorrt 6.5 HOT 1
- Trouble with linker on yolo plugin x86 HOT 2
- Xavier onnx to TensorRT error HOT 1
- How to prevent tensorrt from fusing the final layers when trying to convert tiny yolov3 to int8? HOT 2
- No output when running my own yolov4
- Failed to build the TensorRT engine --int8
- How do I free up memory when I want to switch models
- Cudnn initialization error: I already installed Cudnn but Why?
- Is there any way to avoid using the reshape operation after inference?
- DRIVE AGX Orin
- Facing Issue with yolo to onnx conversion with pre-trained yolov3-tiny model.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tensorrt_demos.