Skip to main content

The "you only glance once" object detection model

Project description

you only glance once

A version of the YOLO architecture (versions 1 through 3), optimized for inference speed on simple object detection problems. Designed for the remoscope project by the bioengineering team at the Chan-Zuckerberg Biohub SF.

Our yogo manuscript is currently in preparation - stay tuned!

Install

With Python versions >= 3.9 and < 3.11, you can install yogo with pip

python3 -m pip install -e .

Basic usage

$ yogo train path/to/dataset-definition-file.yml  # train your model!
$ yogo infer path/to/model.pth  # use your model!
$ yogo export path/to/model.pth  # use your model somewhere else!
$ yogo test path/to/model.pth path/to/dataset-definition-file. # test your model!
$ yogo --help  # all the other details are here :)

We're using Weights and Biases for run tracking. But, note that you do not need a W&B account to run anything! Runs that are started without an account are logged to an anonymous page. If you do decide to start with W&B, look here. Anonymous runs can be claimed later.

Further, we currently only support GPU training, since we use Torch's Distributed Data Parallel.

[!NOTE] Installing Openvino on Apple Silicon is a little involved. Here is Openvino's guide to installation. You can also use a Linux VM or Docker.

Docs

Documentation for YOGO. If you want documentation in a specific area, let us know!

  • recipes.md has the basics of using YOGO in your own code
  • cli.md is a short guide on how to use YOGO from the command line (via yogo)
  • yogo-high-level.md is a high level guide of the YOGO architecture
  • dataset-definition.md defines the dataset description files, the files YOGO uses to define datasets for training

Contributing Guidelines

Please run ./prepush.sh before pushing. It runs mypy, ruff, black and pytest.

When creating issues or pull requests, please be detailed. What exact commands were you running on what computer to get your issue? What exactly does your PR contribute and why is it necessary?

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

yogo-1.0.0.tar.gz (58.3 kB view details)

Uploaded Source

Built Distribution

yogo-1.0.0-py3-none-any.whl (61.0 kB view details)

Uploaded Python 3

File details

Details for the file yogo-1.0.0.tar.gz.

File metadata

  • Download URL: yogo-1.0.0.tar.gz
  • Upload date:
  • Size: 58.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.10.14

File hashes

Hashes for yogo-1.0.0.tar.gz
Algorithm Hash digest
SHA256 fa033ec720f5adcd851ea8324827ac7552b69378dfc19f0c0af6b576f5a5fe53
MD5 a8cc181bc09b363af6d0aae088e1f860
BLAKE2b-256 8ed55b539ae8846efe428e78e13fb19223223809f410bfbc87d092cd385d4971

See more details on using hashes here.

File details

Details for the file yogo-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: yogo-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 61.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.10.14

File hashes

Hashes for yogo-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 84c9eab51081016869455b7707811539217a9da505fa84766c5f82dfdf92ec7a
MD5 25acd2d4f812033afedb633c4b359eb3
BLAKE2b-256 8784037a70e9e57aa921de32bd751cc1ed584c3b52aa4277e83d1df6456da3c3

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