Comments (2)
@guanyuwang0001, you interference is slow may due to you try to load weights every time you iterating.
You can move the lines below out of your for loop:
// load network
std::string weights = opt["weights"].asstd::string();
auto detector = Detector(weights, device_type);
// set up threshold
float conf_thres = opt["conf-thres"].as();
float iou_thres = opt["iou-thres"].as();
from libtorch-yolov5.
@yasenh ,thank you very much.
from libtorch-yolov5.
Related Issues (20)
- .toTuple() Error occured HOT 2
- When `PostProcessing()` error occurred
- 发现一个问题,在实际跑的时候前面两张速度很慢 HOT 5
- A problem about model.model[-1].export = False HOT 1
- from where i got yolov5s.torchscript.pt file? HOT 1
- how to speed up the post-process? HOT 1
- error when running inference HOT 2
- The model I want to export runs on multiple GPUs HOT 1
- Pre-processing step takes very long if processing several frames simultaneously
- 如何进行多GPU推理 HOT 2
- torchscript inference: success on yolov5s and bad results on yolov5m HOT 1
- libtorch multi batch inference
- terminate called after throwing an instance of 'std::bad_alloc'
- how to use batch?
- RuntimeError: Could not run 'prepacked::conv2d_clamp_run' with arguments from the 'CUDA' backend. HOT 2
- Set different conf-thre for different tags
- libtorch-yolov7 can be used for this project? HOT 2
- GTX 1660 SUPER not detect HOT 1
- 关于检测速度问题
- engine HOT 2
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 libtorch-yolov5.