Human-in-the-loop Computer Vision for Marine Environments
Project description
SeaVision
Human-in-the-loop Computer Vision for Marine Environments
[!WARNING] Documentation is currently out of date. The packaging, release, and edge-deployment flows have changed recently, and some instructions in this README and the linked docs may still describe older clone-first or pre-release workflows. Treat the published release artifacts and current CLI behavior as the source of truth until the docs are refreshed.
SeaVision offers a practical computer vision workflow for marine monitoring. It supports the development of accurate, custom detection models for specific deployment scenarios. A typical SeaVision workflow involves:
-
Record marine monitoring footage
- This footage can be recorded to a hard drive, stored directly on a workstation or stored in an S3 bucket in the cloud.
-
Process the footage with a generalisable detector.
- This first-pass processing uses a coarse, generalisable detector that returns candiate detections for manual review.
- Currently implemented detectors include SAM3-based semantic detection, motion detection, and the Community Fish Detector
-
Use the [SeaVision GUI](TODO: Link to GUI docs) to review the output of the generalisable detector.
- The GUI is used for validation (i.e. how accurate is the generalisable detector on my footage?) and for generating training data.
-
Train a custom model using the GUI outputs
- Annotations made in the GUI can be exported and [converted to YOLO format](TODO: docs for converting SeaVision detections o YOLO format).
- These annotations can be used to train a custom YOLO detection model with the ultralytics framework. See here for details.
- Model training within SeaVision is not currently supported as the ultralytics API abstracts most complexity already.
-
Deploy the trained detection model on recorded and furture footage.
- The trained YOLO model can be deployed using the SeaVision frameowrk by using the YOLODetector class.
- Users can deploy the model on a worstation, on the cloud or onto an edge device.
If you are new to the project, start with the Start Here guide.
Installation
Prerequisites
- Python 3.10-3.12
- pip
- SeaVision is currently only tested on Windows and Linux systems. Installations on MacOS have not been thouroughly tested though may work in certain circumstances
Install with pip
SeaVision can be installed using pip in a suitable python environemnt.
Conda
For conda users:
conda create -n seavision python=3.11
conda activate seavision
python -m pip install --upgrade pip
Venv (Windows)
For windows users without conda run the following in a powershell terminal:
py -3.11 -m venv .venv-seavision
.\.venv-seavision\Scripts\Activate.ps1
python -m pip install --upgrade pip
Venv (Linux)
In Linux, without conda, run the following:
python3.11 -m venv .venv-seavision
source .venv-seavision/bin/activate1
python -m pip install --upgrade pip
NB: python versions 3.10 and 3.12 will also work
Install
You can now install SeaVision using pip on both Linux and Windows run:
python -m pip install "seavision-python[<extras>]"
SeaVision can be installed in various modes, each of which supports different modes of functionality. See below for a full description of all installation modes.
Install Matrix (User Types)
Use the install command that matches your use case.
| User type | Install command | Primary CLI command(s) |
|---|---|---|
| Detection-only users (local videos) | python -m pip install seavision-python |
seavision |
| Detection users with videos in S3 bucket | python -m pip install "seavision-python[s3]" |
seavision |
| GUI users (includes S3 support) | python -m pip install "seavision-python[gui]" |
seavision-gui |
| Edge device operators (runtime only) | python -m pip install "seavision-python[edge]" |
seavision-edge |
| Export users (prepare edge artifacts) | python -m pip install "seavision-python[export]" |
seavision-export |
| Advanced/full users | python -m pip install "seavision-python[all]" |
seavision, seavision-gui, seavision-export, seavision-edge |
Most users should use either python -m pip install ".[gui]" for desktop-only
usage or python -m pip install ".[all]" if they are also likely to use edge
deployment functionality. Other installation methods may provide lighter
dependencies in specific scenarios. For example, a user only wanting to use the
detection pipeline on a local machine may not need the S3 and GUI dependencies
and would therefore prefer the standard installation with no extras.
Optional GPU acceleration
The above install allows you to run all SeaVision functionality but does not provide support for GPU-accelerated processing. Some methods (e.g. SAM3-based detection) will be significantly faster if a GPU is available. You will need to install GPU-specific dependencies manually based on your hardware.
For example, to run on an NVIDIA RTX 5090 GPU with cuda 13 you could install the following:
python -m pip install torch>=2.9.0 torchvision>=0.20.0 --index-url https://download.pytorch.org/whl/cu130 --force-reinstall
You can find more information on PyTorch compatibility here.
S3 Bucket Access (Optional)
The pipeline supports streaming video directly from S3 buckets. In order to access this feature you will need to configure an AWS SSO profile. For more information on how to do this and integrate AWS streaming into the SeaVision workflow, see the AWS setup documentation # TODO: Verify the AWS set up docs
Quick start
1. Run the detection pipeline
The full detection pipeline can be run with a CLI command, which can optionally be configured with a YAML file
# Local files
seavision --input ./data/footage/ --output ./results/
# With config file
seavision --config config/default.yaml
After installing SeaVision you can create a local copy of the config file by running the following in a terminal:
seavision --write-default-config "path/to/write/config.yml"
Each argument in the config file is explained within the file. Specific detector class documentation can also be found within the source code and may provide additional context.
2. Launch the GUI
You can launch the SeaVision GUI by running hte following in a terminal:
seavision-gui
Here, you can view, validate and manually modify detections created by the SeaVision detection pipeline. See the [docs](TODO: GUI docs) for more info
3. Export for edge deployment
TODO: Need to verify these commands and update them.
seavision-export --weights models/fish.pt --output ./deployment --target onnx
4. Run on an edge device
seavision-edge --artifact-dir ./deployment/artifact
For full documentation of the edge deployment process see here:
- Edge deployment overview
- Concepts and Terms
- Prerequisites Checklist
- Operator Quickstart
- Troubleshooting
Troubleshooting quick checks
| Problem | Likely cause | Quick check | Fix |
|---|---|---|---|
seavision: command not found |
Package not installed in active environment | python -m pip show seavision |
Activate the right environment and reinstall |
seavision-gui: command not found |
GUI extra not installed | python -m pip show PySide6 |
python -m pip install "seavision-python[gui]" |
seavision-edge: command not found |
Edge extra not installed | python -m pip show onnxruntime |
python -m pip install "seavision-python[edge]" |
Import error for boto3 when using S3 |
S3 dependency missing | python -m pip show boto3 |
python -m pip install ".[s3]" or python -m pip install "seavision-python[gui]" |
| GUI starts but S3 login fails | AWS credentials/session not configured | aws sts get-caller-identity |
Run aws sso login --profile <profile-name> and retry |
Documentation
- Start Here guide
- Class and API reference TODO: Reproduce class reference
- Architecture and class diagrams # TODO: Reproduce class diagrams
- AWS setup guide # TODO: Check this guide is up to date and user friendly
- Edge deployment docs
- GUI docs # ENsure the GUI docs are comprehensive and user firendly
Project Status
Note that this project is under active development and features may not yet work as intended.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file seavision_python-0.1.2.tar.gz.
File metadata
- Download URL: seavision_python-0.1.2.tar.gz
- Upload date:
- Size: 162.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
10c898e735093a694fa9bf31ba1071906ec53c3dbc9046c76bf07e0943faa6ed
|
|
| MD5 |
f153090e690ca2e1e35bec98fb2bf647
|
|
| BLAKE2b-256 |
a333494480e5ed5dd881be4c8d4381c5cdbac3ee0b387769ad10e8b4a87795d4
|
Provenance
The following attestation bundles were made for seavision_python-0.1.2.tar.gz:
Publisher:
release.yml on mariolambrette/SeaVision
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
seavision_python-0.1.2.tar.gz -
Subject digest:
10c898e735093a694fa9bf31ba1071906ec53c3dbc9046c76bf07e0943faa6ed - Sigstore transparency entry: 1409443226
- Sigstore integration time:
-
Permalink:
mariolambrette/SeaVision@db952eee4f7b3990b715fbc4b512c114158415a5 -
Branch / Tag:
refs/tags/v0.1.2 - Owner: https://github.com/mariolambrette
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@db952eee4f7b3990b715fbc4b512c114158415a5 -
Trigger Event:
push
-
Statement type:
File details
Details for the file seavision_python-0.1.2-py3-none-any.whl.
File metadata
- Download URL: seavision_python-0.1.2-py3-none-any.whl
- Upload date:
- Size: 190.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6b2eeeed60f81f8c0015d3a1d0d4056e60ffb7298146c20b80e1144542c3e612
|
|
| MD5 |
7122d16082a8eb36fa28d5aa594d9105
|
|
| BLAKE2b-256 |
0feca5e159737dc9ab89ed4a9e79813f40f6be8b665aa69f6480975411641a6e
|
Provenance
The following attestation bundles were made for seavision_python-0.1.2-py3-none-any.whl:
Publisher:
release.yml on mariolambrette/SeaVision
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
seavision_python-0.1.2-py3-none-any.whl -
Subject digest:
6b2eeeed60f81f8c0015d3a1d0d4056e60ffb7298146c20b80e1144542c3e612 - Sigstore transparency entry: 1409443234
- Sigstore integration time:
-
Permalink:
mariolambrette/SeaVision@db952eee4f7b3990b715fbc4b512c114158415a5 -
Branch / Tag:
refs/tags/v0.1.2 - Owner: https://github.com/mariolambrette
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@db952eee4f7b3990b715fbc4b512c114158415a5 -
Trigger Event:
push
-
Statement type: