-
Notifications
You must be signed in to change notification settings - Fork 7.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TensorRT inference with C++ for yolov7 #8599
Comments
where is the "yolov7_trt Project"? |
https://github.com/linghu8812/tensorrt_inference/tree/master/yolov7 |
[07/12/2022-03:14:01] [I] [TRT] [MemUsageChange] Init CUDA: CPU +159, GPU +0, now: CPU 165, GPU 127 (MiB) [07/12/2022-03:14:01] [E] [TRT] ModelImporter.cpp:723: --- End node --- what's your GPU and tensorrt version? |
the TensorRT I used is 7.1.3.4, for TensorRT 8.0, I will consider to support it later. |
i meet this problem when run ./yolov7_trt ../config.yaml ../samples: can you telll me how to solve? thanks |
try to export onnx model with https://github.com/linghu8812/yolov7 |
While parsing node number 249 [Slice]: onnx to tensorrt is wrong? have you meet this problem? |
I use torch==1.11 and onnx==1.12 to export ONNX model |
i got same wrong when use torch=1.11 and onnx=1.12 |
python export.py --weights ./weights/best_230.pt --simplify --grid Converting op y.1_internal_tensor_assign_1 : _internal_op_tensor_inplace_copy torch == 1.11.0+cu102, onnx ==1.12.0 |
Hello every one, the repo which support yolov4: #7002, scaled yolov4: WongKinYiu/ScaledYOLOv4#56, yolov5: ultralytics/yolov5#1597, and yolov6: meituan/YOLOv6#122 TensorRT inference with C++ is also support yolov7 inference, all the yolov7 pretrained model can be convert to onnx model and then to tensorrt engine.
1.Export ONNX Model
Use the following command to export onnx model:
first download yolov7 models to folder
weights
,git clone https://github.com/linghu8812/yolov7.git cd yolov7 python export.py --weights ./weights/yolov7.pt --simplify --grid
if you want to export onnx model with 1280 image size add
--img-size
in command:2.uild yolov7_trt Project
3.Run yolov7_trt
4.Results:
WongKinYiu/yolov7#95
The text was updated successfully, but these errors were encountered: