No project description provided
Project description
ASOne
Table of Contents
- Introduction
- Asone Library Installation
Introduction
Asone is a python wrapper for multiple detection and tracking algorithms all at one place. Different trackers such as ByteTrack
, DeepSort
or NorFair
can be integrated with different versions of YOLO
with minimum lines of code.
This python wrapper provides yolo models in both ONNX
and PyTorch
versions.
Usage:
pip install asone
# for windows
pip install -e git+https://github.com/samson-wang/cython_bbox.git#egg=cython-bbox
# for linux
pip install cython-bbox
# for gpu
pip install torch torchvision --extra-index-url https://download.pytorch.org/whl/cu113
Sample code:
import asone
from asone import ASOne
dt_obj = ASOne(tracker=asone.BYTETRACK, detector=asone.YOLOX_DARKNET_PYTORCH, use_cuda=True)
dt_obj.start_tracking('sample_videos/test.mp4')
Results on provided sample video
Asone Library Installation
Install In Docker Container
Prerequisite
- Make sure you have docker installed in your system. if not reffer to docker installation for Linux, Windows
Installation
- Clone the repo
git clone https://github.com/axcelerateai/asone.git
cd asone
- If using windows, Run this command in command prompt.
set PWD=%cd%
- Run docker coompose command.
# if you wanna test on gpu system
docker compose run asone-gpu
# if you wanna test on cpu system
docker compose run asone
- In docker terminal.
# if using gpu
python main.py [VIDEO_PATH]
# if using cpu
python main.py [VIDEO_PATH] --cpu
Install Locally
- Clone the repo
git clone https://github.com/axcelerateai/asone.git
cd asone
- Create virtual env.
python3 -m venv .env
- Activate venv
# linux
source .env/bin/activate
# windows
.env\Scripts\activate
- Install asone
pip install .
- Intall pre-requisite
# for windows
pip install -e git+https://github.com/samson-wang/cython_bbox.git#egg=cython-bbox
# for linux
pip install cython-bbox
- Install torch
# for gpu
pip install torch torchvision --extra-index-url https://download.pytorch.org/whl/cu113
- Test it by runiing main.py
# if using gpu
python main.py [VIDEO_PATH]
# if using cpu
python main.py [VIDEO_PATH] --cpu
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
asone-0.1.2.dev2-py3-none-any.whl
(285.8 kB
view hashes)
Close
Hashes for asone-0.1.2.dev2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2d151d2fd08015fc633d77099774aba007008613ebfe40a58fd48fe819789d5c |
|
MD5 | 9b764d0cda235714d61207cbdef1bf28 |
|
BLAKE2b-256 | e1ff33b858af31a00ce4e0ef2dec682b58ecbb193252b34ddc55ae558dfc3a17 |