Skip to main content

Got a working detection model file? Want to quickly setup inference pipelines? You are in the right place!

Project description

Easy Inference

Welcome to the easy inference repository! The main goal of this repository is to provide a clean, simple and short way of setting up inference pipelines for 2D (and 3D) visual detection. The interfaces to camera drivers are abstracted away as python generators. A simple inference pipeline for a webcam based inference pipeline looks as follows:

from easy_inference.providers.webcam import Webcam

provider = Webcam(source=0)

for frame in provider:

  # run my detection 

See the examples directory for some yolov7 pipelines.

Sidenote

Many examples is this repository include yolov7 pipelines using the onnx-runtime. To generate onnx model files follow the steps on the yolov7 repository readme.

To export a model for yolov7 including pose detection, checkout the following branch of yolov7 and download the pytorch model yolov7-w6-pose.pt. Then run the following to export an onnx model with your desired configuration:

cd yolov7
python models/export.py --weights yolov7-w6-pose.pt --grid --simplify --export-nms --batch-size 2 --img-size 512 640

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

easy_inference-0.1.1.tar.gz (10.8 kB view details)

Uploaded Source

Built Distribution

easy_inference-0.1.1-py3-none-any.whl (12.9 kB view details)

Uploaded Python 3

File details

Details for the file easy_inference-0.1.1.tar.gz.

File metadata

  • Download URL: easy_inference-0.1.1.tar.gz
  • Upload date:
  • Size: 10.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.10

File hashes

Hashes for easy_inference-0.1.1.tar.gz
Algorithm Hash digest
SHA256 0f5546aa7a5fa02b6dece666d9d7eae908e2b074fab9d93490a11ea97d40efd6
MD5 34674bd8e94f87889e6783b6da742ce3
BLAKE2b-256 d52a7f94d463fda20e09db2bebc07ddc1cf48eeba70ad5b670b8ec0483936047

See more details on using hashes here.

File details

Details for the file easy_inference-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for easy_inference-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5e3011ee3c7e3ecdf0a8d560a6476d4ee41637a32de4226cac298ac11caa633a
MD5 0d49e1f46554c24c22aef34516245487
BLAKE2b-256 f19a4c225f1aad8f413646d9fa663fe3ac08185a406c58fd56e4722a6a9de45b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page