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
inference on video #26
Comments
reference
|
@Linaom1214 thanks |
cd tensorrt-python/yolov7/
|
im getting this issue . while doing inference. |
the reop don't support end2end model, please reference the readme to convert trt engine. YOLO Series TensorRT Python/C++简体中文SupportYOLOv7、YOLOv6、 YOLOX、 YOLOV5、 Update
Prepare TRT Env
Quick StartHere is a Python Demo mybe help you quickly understand this repo Link YOLOv7 [C++, Python Support]https://github.com/WongKinYiu/yolov7.git Modify code: Modify the yolo.py as follows: return x if self.training else (torch.cat(z, 1), ) if not self.export else (torch.cat(z, 1), x) Export onnxpython models/export.py --weights ../yolov7.pt --grid Convert to TensorRT Engine
Test
C++C++ Demo |
my trained model with yolov7.pth will not support here? should we need to modify yolo.py & again we need to train model ? image inferenceing is supported by this model but on video inference I'm getting this issue. @Linaom1214 |
If image inferencing is working, why don't you just change the input from images to video frames? Which code are you using to predict on images? |
im using this notebook https://colab.research.google.com/github/WongKinYiu/yolov7/blob/main/tools/YOLOv7onnx.ipynb already given video path & here it has only image inference, so I added detect_video() https://github.com/Linaom1214/tensorrt-python/blob/08bb095c022044e254361db18a2f4f4040976c23/utils/utils.py#L62
|
the repo it`s so easy |
@Linaom1214 sorry sir but I'm using your script google collab of yolov7. still I'm getting the error, whats wrong |
please provide more detials |
|
the end2end model means nms opterate is include in trt engine, you should know that. |
@Linaom1214 thank you ,waiting for video inference code for end2end/nms model |
update the end2end support now you can export the model which include nms plugin more simple. you only need export the onnx model which have one output. than use this reop to add the pugin in model, i also provide image and video infer demo |
@Linaom1214 not able to do inference on video, & also video is not saving in output folder |
colab don't support opencv imshow function |
after the model is converted into .trt we want to do inference on video.
The text was updated successfully, but these errors were encountered: