yogo


Nameyogo JSON
Version 1.0.0 PyPI version JSON
download
home_pageNone
SummaryThe "you only glance once" object detection model
upload_time2024-06-23 18:11:48
maintainerNone
docs_urlNone
authorNone
requires_python<3.11,>=3.9
licenseBSD 3-Clause License Copyright (c) 2023, Chan-Zuckerberg Biohub All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
keywords object detection yogo yolo deep learning pytorch
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # you only glance once

A version of the [YOLO architecture (versions 1 through 3)](https://pjreddie.com/darknet/yolo/), optimized for inference speed on simple object detection problems. Designed for the [remoscope project](https://www.czbiohub.org/life-science/seeing-malaria-in-a-new-light/) by the bioengineering team at the [Chan-Zuckerberg Biohub SF](https://www.czbiohub.org/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`

```console
python3 -m pip install -e .
```


## Basic usage

```console
$ 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](http://wandb.ai) 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](https://docs.wandb.ai/quickstart). Anonymous runs can be [claimed later](https://docs.wandb.ai/guides/app/features/anon).

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](https://github.com/openvinotoolkit/openvino/blob/master/docs/dev/build_mac_arm.md). You can also use a Linux VM or Docker.


## Docs

Documentation for YOGO. If you want documentation in a specific area, [let us know](https://github.com/czbiohub-sf/yogo/issues/new)!

- [recipes.md](docs/recipes.md) has the basics of using YOGO in your own code
- [cli.md](docs/cli.md) is a short guide on how to use YOGO from the command line (via `yogo`)
- [yogo-high-level.md](docs/yogo-high-level.md) is a high level guide of the YOGO architecture
- [dataset-definition.md](docs/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`](https://mypy-lang.org/), [`ruff`](https://docs.astral.sh/ruff/), [`black`](https://github.com/psf/black) and [`pytest`](https://docs.pytest.org/en/8.2.x/).

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?

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "yogo",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "<3.11,>=3.9",
    "maintainer_email": null,
    "keywords": "object detection, YOGO, YOLO, deep learning, PyTorch",
    "author": null,
    "author_email": "Axel Jacobsen <axelnj44@gmail.com>, Paul Lebel <paul.lebel@czbiohub.org>, Ilakkiyan Jeyakumar <ilakkiyan.jeyakumar@czbiohub.org>",
    "download_url": "https://files.pythonhosted.org/packages/8e/d5/5b539ae8846efe428e78e13fb19223223809f410bfbc87d092cd385d4971/yogo-1.0.0.tar.gz",
    "platform": null,
    "description": "# you only glance once\n\nA version of the [YOLO architecture (versions 1 through 3)](https://pjreddie.com/darknet/yolo/), optimized for inference speed on simple object detection problems. Designed for the [remoscope project](https://www.czbiohub.org/life-science/seeing-malaria-in-a-new-light/) by the bioengineering team at the [Chan-Zuckerberg Biohub SF](https://www.czbiohub.org/sf/).\n\nOur yogo manuscript is currently in preparation - stay tuned!\n\n## Install\n\nWith Python versions >= 3.9 and < 3.11, you can install yogo with `pip`\n\n```console\npython3 -m pip install -e .\n```\n\n\n## Basic usage\n\n```console\n$ yogo train path/to/dataset-definition-file.yml  # train your model!\n$ yogo infer path/to/model.pth  # use your model!\n$ yogo export path/to/model.pth  # use your model somewhere else!\n$ yogo test path/to/model.pth path/to/dataset-definition-file. # test your model!\n$ yogo --help  # all the other details are here :)\n```\n\nWe're using [Weights and Biases](http://wandb.ai) 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](https://docs.wandb.ai/quickstart). Anonymous runs can be [claimed later](https://docs.wandb.ai/guides/app/features/anon).\n\nFurther, we currently only support GPU training, since we use Torch's Distributed Data Parallel.\n\n> [!NOTE]\n> Installing Openvino on Apple Silicon is a little involved. [Here is Openvino's guide to installation](https://github.com/openvinotoolkit/openvino/blob/master/docs/dev/build_mac_arm.md). You can also use a Linux VM or Docker.\n\n\n## Docs\n\nDocumentation for YOGO. If you want documentation in a specific area, [let us know](https://github.com/czbiohub-sf/yogo/issues/new)!\n\n- [recipes.md](docs/recipes.md) has the basics of using YOGO in your own code\n- [cli.md](docs/cli.md) is a short guide on how to use YOGO from the command line (via `yogo`)\n- [yogo-high-level.md](docs/yogo-high-level.md) is a high level guide of the YOGO architecture\n- [dataset-definition.md](docs/dataset-definition.md) defines the dataset description files, the files YOGO uses to define datasets for training\n\n\n## Contributing Guidelines\n\nPlease run `./prepush.sh` before pushing. It runs [`mypy`](https://mypy-lang.org/), [`ruff`](https://docs.astral.sh/ruff/), [`black`](https://github.com/psf/black) and [`pytest`](https://docs.pytest.org/en/8.2.x/).\n\nWhen 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?\n",
    "bugtrack_url": null,
    "license": "BSD 3-Clause License  Copyright (c) 2023, Chan-Zuckerberg Biohub All rights reserved.  Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:  * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.  * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.  * Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ",
    "summary": "The \"you only glance once\" object detection model",
    "version": "1.0.0",
    "project_urls": {
        "repository": "https://github.com/czbiohub-sf/yogo"
    },
    "split_keywords": [
        "object detection",
        " yogo",
        " yolo",
        " deep learning",
        " pytorch"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "8784037a70e9e57aa921de32bd751cc1ed584c3b52aa4277e83d1df6456da3c3",
                "md5": "25acd2d4f812033afedb633c4b359eb3",
                "sha256": "84c9eab51081016869455b7707811539217a9da505fa84766c5f82dfdf92ec7a"
            },
            "downloads": -1,
            "filename": "yogo-1.0.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "25acd2d4f812033afedb633c4b359eb3",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<3.11,>=3.9",
            "size": 61049,
            "upload_time": "2024-06-23T18:11:46",
            "upload_time_iso_8601": "2024-06-23T18:11:46.773969Z",
            "url": "https://files.pythonhosted.org/packages/87/84/037a70e9e57aa921de32bd751cc1ed584c3b52aa4277e83d1df6456da3c3/yogo-1.0.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "8ed55b539ae8846efe428e78e13fb19223223809f410bfbc87d092cd385d4971",
                "md5": "a8cc181bc09b363af6d0aae088e1f860",
                "sha256": "fa033ec720f5adcd851ea8324827ac7552b69378dfc19f0c0af6b576f5a5fe53"
            },
            "downloads": -1,
            "filename": "yogo-1.0.0.tar.gz",
            "has_sig": false,
            "md5_digest": "a8cc181bc09b363af6d0aae088e1f860",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<3.11,>=3.9",
            "size": 58306,
            "upload_time": "2024-06-23T18:11:48",
            "upload_time_iso_8601": "2024-06-23T18:11:48.421559Z",
            "url": "https://files.pythonhosted.org/packages/8e/d5/5b539ae8846efe428e78e13fb19223223809f410bfbc87d092cd385d4971/yogo-1.0.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-06-23 18:11:48",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "czbiohub-sf",
    "github_project": "yogo",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "yogo"
}
        
Elapsed time: 0.29764s