Skip to main content

Framework for deployment of volumetric machine learning models, and easy composition of training jobs.

Project description

CellMap logo

DaCapo DaCapo GitHub Org's stars

PyPI - Downloads Documentation Status Github Created At GitHub License Python Version from PEP 621 TOML

tests black mypy docs codecov

A framework for easy application of established machine learning techniques on large, multi-dimensional images.

dacapo allows you to configure machine learning jobs as combinations of DataSplits, Architectures, Tasks, Trainers, on arbitrarily large volumes of multi-dimensional images. dacapo is not tied to a particular learning framework, but currently only supports torch with plans to support tensorflow.

DaCapo Diagram

Installation and Setup

Currently, python>=3.10 is supported. We recommend creating a new conda environment for dacapo with python 3.10.

conda create -n dacapo python=3.10
conda activate dacapo

Then install DaCapo using pip with the following command:

pip install dacapo-ml

This will install the minimum required dependencies.

You may additionally utilize a MongoDB server for storing outputs. To install and run MongoDB locally, refer to the MongoDB documentation here.

The use of MongoDB, as well as specifying the compute context (on cluster or not) should be specified in the dacapo.yaml in the main directory.

Functionality Overview

Tasks we support and approaches for those tasks:

  • Instance Segmentation
    • Affinities
    • Local Shape Descriptors
  • Semantic segmentation
    • Signed distances
    • One-hot encoding of different types of objects

Example Tutorial

A minimal example tutorial can be found in the examples directory and opened in colab here: Open In Colab

Helpful Resources & Tools

Citing this repo

If you use our code, please cite us and spread the news!

@article{Patton_DaCapo_a_modular_2024,
author = {Patton, William and Rhoades, Jeff L. and Zouinkhi, Marwan and Ackerman, David G. and Malin-Mayor, Caroline and Adjavon, Diane and Heinrich, Larissa and Bennett, Davis and Zubov, Yurii and Project Team, CellMap and Weigel, Aubrey V. and Funke, Jan},
doi = {10.48550/arXiv.2408.02834},
journal = {arXiv-cs.CV},
title = {{DaCapo: a modular deep learning framework for scalable 3D image segmentation}},
year = {2024}
}

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

dacapo_ml-0.3.2.tar.gz (3.3 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dacapo_ml-0.3.2-py3-none-any.whl (272.2 kB view details)

Uploaded Python 3

File details

Details for the file dacapo_ml-0.3.2.tar.gz.

File metadata

  • Download URL: dacapo_ml-0.3.2.tar.gz
  • Upload date:
  • Size: 3.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for dacapo_ml-0.3.2.tar.gz
Algorithm Hash digest
SHA256 3600a0e7bc660a60a302b640784bdd8f4b35c4deb9224772dccb4b2ee7e810a8
MD5 865fcce0850f6d28998cbf0ab2bf76cf
BLAKE2b-256 958bb1602fc1c2faf8e76d5319c653656016c1a56f27a2f8f9814cd718f9c65f

See more details on using hashes here.

File details

Details for the file dacapo_ml-0.3.2-py3-none-any.whl.

File metadata

  • Download URL: dacapo_ml-0.3.2-py3-none-any.whl
  • Upload date:
  • Size: 272.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for dacapo_ml-0.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 75e20272041da2ce20461689e3201fd017ab2de7cbeeac0a81fecaa2c1b3a126
MD5 0e02bed839639169ae4a5c030f1b32c4
BLAKE2b-256 955c47e9b127d8f929c080a2441e38af1f1f752be29563812c6efebf2fc88485

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page