{"id":22706656,"url":"https://github.com/mbari-org/deepsea-ai","last_synced_at":"2025-04-13T12:12:44.331Z","repository":{"id":62592918,"uuid":"531761947","full_name":"mbari-org/deepsea-ai","owner":"mbari-org","description":"DeepSea-AI is a Python package to simplify processing deep sea video in AWS https://aws.amazon.com from a command line. ","archived":false,"fork":false,"pushed_at":"2024-08-14T13:45:50.000Z","size":3233,"stargazers_count":4,"open_issues_count":6,"forks_count":4,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-04-13T12:12:33.767Z","etag":null,"topics":["aws","aws-cdk","fathomnet","object-detection","tracking-by-detection","video-processing","video-processing-pipeline"],"latest_commit_sha":null,"homepage":"http://docs.mbari.org/deepsea-ai/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mbari-org.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-09-02T03:00:00.000Z","updated_at":"2024-12-31T11:02:07.000Z","dependencies_parsed_at":"2023-10-04T02:50:30.564Z","dependency_job_id":"fcca513f-724f-4b6e-ac50-d2791eeedec0","html_url":"https://github.com/mbari-org/deepsea-ai","commit_stats":{"total_commits":197,"total_committers":3,"mean_commits":65.66666666666667,"dds":"0.40609137055837563","last_synced_commit":"9fcf2aa6a61f4a6d3e4515bcc7fc9a25bd85e489"},"previous_names":[],"tags_count":66,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mbari-org%2Fdeepsea-ai","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mbari-org%2Fdeepsea-ai/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mbari-org%2Fdeepsea-ai/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mbari-org%2Fdeepsea-ai/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mbari-org","download_url":"https://codeload.github.com/mbari-org/deepsea-ai/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248710448,"owners_count":21149191,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aws","aws-cdk","fathomnet","object-detection","tracking-by-detection","video-processing","video-processing-pipeline"],"created_at":"2024-12-10T10:09:21.104Z","updated_at":"2025-04-13T12:12:44.299Z","avatar_url":"https://github.com/mbari-org.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n[![MBARI](https://www.mbari.org/wp-content/uploads/2014/11/logo-mbari-3b.png)](http://www.mbari.org)\n[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)\n[![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)\n[![Python](https://img.shields.io/badge/language-Python-blue.svg)](https://www.python.org/downloads/)\n\n**DeepSeaAI** is a Python package to simplify processing deep sea video in [AWS](https://aws.amazon.com) from a command line. \n \nIt includes reasonable defaults that have been optimized for deep sea video. The goal is to simplify running these algorithms in AWS.\n\nDeepSea-AI currently supports:\n\n - *Training [YOLOv5](http://github.com/ultralytics/yolov5) object detection* models with up to 8 GPUs using the best available instances in AWS\n - Processing video with [YOLOv5](http://github.com/ultralytics/yolov5) detection and tracking pipeline using \n     * [StrongSort](https://github.com/mikel-brostrom/Yolov5_StrongSORT_OSNet) tracking\n - Scaling processing with [AWS Elastic Container Service](https://aws.amazon.com/ecs/)\n[click image below to see larger example]\n[![ Image link ](docs/imgs/ecs_arch_small.png)](docs/imgs/ecs_arch.png)\n\nThe cost to process a video is typically less than **$1.25** per 1-hour video using a model designed for a 640 pixel size.\n\nThe cost to train a YOLOv5 model depends on your data size and the number of GPUs you use.A large collection with 30K images and \n300K localizations may cost **$300-$600** to process, depending on the instance you choose to train on. This is reasonably small for a \nresearch project, and small in comparison to purchasing your own GPU hardware.\n\nSee the full documentation at [MBARI deepsea-ai](http://docs.mbari.org/deepsea-ai).\n \n## Processing\nThe processing technology uses the [AWS Elastic Container Service](https://aws.amazon.com/ecs/) with an architecture\nthat includes a SQS messaging queue to start the processing. Simply upload a video \nto an S3 bucket then submit a job with the location of that video to the queue to \nstart processing. The result is returned to a S3 bucket and the video is optionally \nremoved to reduce storage cost.\n\n\n## Getting Started\n## Install\n\nThere are two main requirements to use this:\n\n1.  [An account with AWS Amazon Web Services](https://aws.amazon.com).\n2.  [An account with Docker](http://docker.com).\n3.  Install and update using [pip](https://pip.pypa.io/en/stable/getting-started/) in a Python\u003e=3.8.0 environment:\n\nAfter you have setup your AWS account, configure it using the awscli tool  \n\n```\npip install awscli\naws configure\naws --version\n```\n\nThen install directly from pypi\n\n```shell\npip install deepsea-ai\n```\n\nSetting up the AWS environment is done with the setup mirror command.  This only needs to be done once, or when you upgrade\nthe module.   This command will setup the appropriate AWS permissions and mirror the images used in the commands\nfrom [Docker Hub](https://hub.docker.com) to your ECR Elastic Container Registry. \n\nBe patient - this takes a while, but only needs to be run once.\n\n```shell\ndeepsea-ai setup --mirror\n```\n\n## Tutorials\n\n* [FathomNet](docs/notebooks/fathomnet_train.ipynb) ✨ Recommended first step to learn more about how to train a YOLOv5 object detection model using freely available FathomNet data\n\n### Create the Anaconda environment\n\nThe fastest way to get started is to use the Anaconda environment.  This will create a conda environment called *deepsea-ai* and make that available in your local jupyter notebook as the kernel named *deepsea-ai*\n\n```shell\nconda env create \nconda activate deepsea-ai\npip install ipykernel\npython -m ipykernel install --user --name=deepsea-ai\n```\n\n### Launch jupyter\n\n```\ncd docs/notebooks\njupyter notebook\n```\n---\n\n## Commands\n\n* `deepsea-ai setup --help` - Setup the AWS environment. Must run this once before any other commands.\n* [`deepsea-ai train --help` - Train a YOLOv5 model and save the model to a bucket](docs/commands/train.md)\n* [`deepsea-ai process --help` - Process one or more videos and save the results to  a bucket](docs/commands/process.md)\n* [`deepsea-ai ecsprocess --help` - Process one or more videos using the Elastic Container Service and save the results to a bucket](docs/commands/process.md)\n* [`deepsea-ai split --help` - Split your training data. This is required before the train command.](docs/data.md) \n* [`deepsea-ai monitor --help` - Monitor processing. Use this after the ecsprocess train command.](docs/commands/monitor.md)\n* `deepsea-ai -h` - Print help message and exit.\n\n## Setting up an Elastic Container Service (ECS) cluster \n\nTo process videos in bulk, you can setup an ECS cluster to process videos in parallel.\nSee the [ECS setup documentation](docs/commands/ecsdeploy.md) for more details.\n\n---\nSource code is available at [github.com/mbari-org/deepsea-ai](https://github.com/mbari-org/deepsea-ai/).\n  \nFor more details, see the [official documentation](http://docs.mbari.org/deepsea-ai/install).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmbari-org%2Fdeepsea-ai","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmbari-org%2Fdeepsea-ai","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmbari-org%2Fdeepsea-ai/lists"}