Skip to main content

Odin - Pytorch

Project description

Multi-Modality

Odin

Super Fast and super cheap object detection at massive scale in less than 10 lines of code!

Appreciation

  • Lucidrains
  • Agorians

Install

pip install vodin

Usage

Here are three examples demonstrating the usage of the Odin class from your provided code:

Example 1: Basic Usage

# Import the necessary modules and classes
from odin import Odin

# Initialize the Odin object with paths and thresholds
odin = Odin(
    source_weights_path="yolo.weights",
    source_video_path="input_video.mp4",
    target_video_path="output_video.mp4",
    confidence_threshold=0.3,
    iou_threshold=0.7
)

# Run the object to process the video
odin.run()

Example 2: Custom Parameters

# Import the necessary modules and classes
from odin import Odin

# Initialize the Odin object with custom parameters
odin = Odin(
    source_weights_path="custom_yolo.weights",
    source_video_path="input_video.mp4",
    target_video_path="output_video.mp4",
    confidence_threshold=0.5,
    iou_threshold=0.6
)

# Run the object to process the video
odin.run()

Example 3: Advanced Usage

# Import the necessary modules and classes
from odin import Odin

# Initialize the Odin object with paths and thresholds
odin = Odin(
    source_weights_path="yolo.weights",
    source_video_path="input_video.mp4",
    target_video_path="output_video.mp4",
    confidence_threshold=0.3,
    iou_threshold=0.7
)

# Customize further configurations if needed
odin.tracker.set_max_distance(50)
odin.box_annotator.set_box_color((0, 255, 0))
odin.model.set_device("cuda")

# Run the object to process the video
odin.run()

Architecture

License

MIT

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

vodin-0.0.3.tar.gz (6.4 kB view details)

Uploaded Source

Built Distribution

vodin-0.0.3-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

Details for the file vodin-0.0.3.tar.gz.

File metadata

  • Download URL: vodin-0.0.3.tar.gz
  • Upload date:
  • Size: 6.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.2 CPython/3.11.0 Darwin/22.4.0

File hashes

Hashes for vodin-0.0.3.tar.gz
Algorithm Hash digest
SHA256 391f047cab668db60713f59619ee9f39830dbeaf4ac390b86c4e24caabe4337c
MD5 2e18aaed05a60ebf36aa34d4a7320ca2
BLAKE2b-256 4284b67789c59c44c1fcb58656209cc26c386657bc2a9aeeda83dc65ba4777cd

See more details on using hashes here.

File details

Details for the file vodin-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: vodin-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 7.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.2 CPython/3.11.0 Darwin/22.4.0

File hashes

Hashes for vodin-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 6db4c23b8d1a098bd1b8db624ed1a36bab290255d37dfebdadc3f37a295f9f0b
MD5 ef8b6ac9a87239dd5d159aa81acab217
BLAKE2b-256 a92185d3d5da9008c8c577f6b141273aea4c849fb2df0a69230c83b6da05beda

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