Skip to main content

Bindings for yolov7 in one class

Project description

DetExecutor

Python package with latest versions of YOLO architecture for training and inference

Install

Installing is quite simple, just use pip:

pip3 install det_executor

Train

Training support is still in progress!

Inference

Loading model

from det_executor import DetExecutor
# print list of supported arches
DetExecutor.list_arch()

# loading model
name = 'yolov7'
ex = DetExecutor(name)

Predict and draw

from det_executor import DetExecutor, draw_on_image
import cv2

# loading model
name = 'yolov7'
ex = DetExecutor(name)

# loading image
img = cv2.imread('test/img.jpg')

# predict
classes, boxes, scores = ex.predict(img)

# draw
img = draw_on_image(img, boxes[0], scores[0], classes[0])
cv2.imshow("image", img)
cv2.waitKey()

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

det_executor-0.0.1.tar.gz (92.9 kB view details)

Uploaded Source

Built Distribution

det_executor-0.0.1-py3-none-any.whl (98.9 kB view details)

Uploaded Python 3

File details

Details for the file det_executor-0.0.1.tar.gz.

File metadata

  • Download URL: det_executor-0.0.1.tar.gz
  • Upload date:
  • Size: 92.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for det_executor-0.0.1.tar.gz
Algorithm Hash digest
SHA256 d937910b4a19ca617583c292b87c6ff7962d8080161601dc94185eb59957b637
MD5 e4387f09341e2f7d88afb67563590af1
BLAKE2b-256 561bd3305958366364ca7b8639b8b1c562efe317577ffef56012da128a3d0832

See more details on using hashes here.

File details

Details for the file det_executor-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for det_executor-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b8ece1f223e8e0db909922353f48b484cf67958fabc18ca670264f3fb62001fd
MD5 0483d2409dcde31539e7e2df9ef65b63
BLAKE2b-256 a73a334e2cc55a2a93422d38e06b92041a430148b652975b096e165e33f69046

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