Git Product home page Git Product logo

mouse-tracking-yolo5's Introduction

This is a mouse tracking application that track single or multiple mice in images or videos.

This application use YOLOv5 of Ultralytics and Pytorch to train YOLOv5n with custom mouse dataset. You can see the YOLOv5 Docs for more understandings of YOLOv5. If you want to know how to use this application, you can skip this and see following section.

Quick Start Examples

Install and detect sections are similar to YOLOv5. You may refer to their example.

Install

Clone repo and install requirements.txt in a Python>=3.6.0 environment, including PyTorch>=1.7.
*This application is tested in Python==3.7 and PyTorch==1.8.0+cu111.

git clone https://github.com/nicholas1022/mouse_tracking  # clone
cd mouse_tracking
pip install -r requirements.txt  # install
Inference with detect.py

detect.py runs inference on a variety of sources and saving results to runs/detect.

python detect.py --source 0  # webcam
                          img.jpg  # image
                          vid.mp4  # video
                          path/  # directory
                          path/*.jpg  # glob
                          'https://youtu.be/Zgi9g1ksQHc'  # YouTube
                          'rtsp://example.com/media.mp4'  # RTSP, RTMP, HTTP stream



detect.py accepts a series of parameters:
--skip-frame: skip inference of video frames. 10 = infer one-tenth frames, 2 = infer half frames. 1 = no skip
--real-time: real-time playback if --view-img parameter is set
Refer YOLOv5 Doc for other parameters

mouse-tracking-yolo5's People

Contributors

ezyang avatar malfet avatar pytorchmergebot avatar zou3519 avatar jerryzh168 avatar soumith avatar gchanan avatar apaszke avatar suo avatar peterbell10 avatar zdevito avatar rohan-varma avatar colesbury avatar chillee avatar smessmer avatar alband avatar janeyx99 avatar kshitij12345 avatar yangqing avatar vkuzo avatar ssnl avatar swolchok avatar wanchaol avatar zasdfgbnm avatar mrshenli avatar bowenbao avatar pietern avatar seemethere avatar ngimel avatar bwasti 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.