Giter Site home page Giter Site logo

yolov5-detect's Introduction

安装引用

conda install pytorch torchvision torchaudio cudatoolkit=10.2 -c pytorch
pip install -r requirements.txt

模型

coco128 模型名称

  • 存放位置 weights\coco128.pt
  • weights\hubconf.py中新增对应的方法
    def coco128(pretrained=True, channels=3, classes=80, autoshape=True, verbose=True, device=None):
        return _create('coco128', pretrained, channels, classes, autoshape, verbose, device)

调用

import cv2
from utils.detector import Detector

detector = Detector("weights", "coco128", 0.45)

img = cv2.imread(f'./images/1.png')
# 检测
boxes = detector.detect(img)
# 画框
img = detector.plot_boxes(img, boxes)

yolov5-detect's People

Contributors

katzhen 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.