Universal Arthropod Localization and Instance Segmentation
Project description
flatbug
A General Method for Detection and Segmentation of Terrestrial Arthropods in Images
| Find and cite the flatbug paper in Method in Ecology and Evolution | Send us new data through our data contribution form. |
flatbug is partly a high-performance pyramid tiling inference wrapper for YOLOv8 and partly a hybrid instance segmentation dataset of terrestrial arthropods accompanied by an appropriate training schedule for YOLOv8 segmentation models, built on top of the original YOLOv8 training schedule.
The goal of flatbug is to provide a single unified model for detection and segmentation of all terrestrial arthropods on arbitrarily large images, especially fine-tuned for the case of top-down images/scans - thus the name "flat"bug.
Installation
We recommend using uv (installation):
# Add to a project permanently (recommended)
uv add flat-bug
# install temporarily in a venv/project
uv pip install flat-bug
or (not recommended):
pip install flat-bug
Source/development
Or a development version can be installed from source by cloning this repository:
# Clone repository
git clone https://github.com/darsa-group/flat-bug.git
cd flat-bug
# Install
uv sync --all-extras --all-groups --upgrade
# or (not recommended)
pip install -e .
However, as with other packages built with PyTorch it is best to ensure that torch is installed separately. See https://pytorch.org/ for details. We recommend using torch>=2.3.
CLI Usage
We provide a number of CLI scripts with flatbug. The main one of interest is fb_predict, which can be used to run inference on images or videos:
[uv] fb_predict -i <DIR_WITH_IMGS> -o <OUTPUT_DIR> [-w <WEIGHT_PATH>] ...
Tutorials
We provide a number of tutorials on general and advanced usage, training, deployment and hyperparameters of flatbug in examples/tutorials or with Google Colab .
Documentation
Find our documentation at https://darsa.info/flat-bug/.
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 flat_bug-1.1.0.tar.gz.
File metadata
- Download URL: flat_bug-1.1.0.tar.gz
- Upload date:
- Size: 81.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.8 {"installer":{"name":"uv","version":"0.11.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c5bd8697571c039ac593f7a99e3c870ac7adce49dc3d8a818e1ab8ef9add1442
|
|
| MD5 |
4ed8c87c4b1da4cdf15db1f09670fe5b
|
|
| BLAKE2b-256 |
c4d285b4e30d297e6d215d0b99fee64dc3299ac446c3f1a810c15c5348c9e880
|
File details
Details for the file flat_bug-1.1.0-py3-none-any.whl.
File metadata
- Download URL: flat_bug-1.1.0-py3-none-any.whl
- Upload date:
- Size: 86.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.8 {"installer":{"name":"uv","version":"0.11.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9ff0565376111828410a8bf7958d08330f124afaf13e900aa7d4d1c249d83823
|
|
| MD5 |
e49bc9c45b69dd45140c23b167d71013
|
|
| BLAKE2b-256 |
b17e9a9acb65ae9e95a36e61e2d1bcaa0c324ece3a7453d5777b7a89dcaf0998
|