Git Product home page Git Product logo

yolov7_tensorrt_opencv_queue's Introduction

Course

This repository integrates the following functions

  1. Using yolov7+tensorrt to achieve target detection

  2. Index available GPUs in a multi-GPU environment

  3. In a multi-threaded environment, use opencv to put/get pictures into the queue

  4. Save the detection pictures and results as jpg and xml to facilitate subsequent iterative training

Installation

1.Recommended to use the ubuntu system for operation, and the software configuration is as follows:

  • ubuntu20.04
  • cuda11.2
  • cudnn8.4.0
  • tensorrt8.4.3.1
  • python3.7
  • pytorch1.10.0
  • torchvision0.11.0

2.Download this repository

git clone https://github.com/ZhijunLStudio/yolov7_tensorrt_opencv_queue.git

3.Install dependent libraries

pip install -r requirements.txt

Quick Start

1.Modify the detect.py file

# According to your own model and camera information, modify 1, 2, 3
# 1. Put the name of the tensorrt engine under the model folder
trt_name = "best.engine"
# 2. rtsp address, if you are using a USB camera or other onboard camera, you can change it to 0 (without quotation marks)
RtspUrl = "rtsp://admin:[email protected]:554/Streaming/Channels/101"
# 3. Automatically generate xml configuration - tag dictionary, need to follow {"configured folder name": {0: "label 1", 1: "label 2", 2: "label 3"...}} configure
label_dict = {'person': {0: 'person'}}

2.Run the detect.py file

python detect.py

Reference

yolov7_tensorrt_opencv_queue's People

Contributors

zhijunlstudio avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.