Skip to main content

A napari plugin for segmentation using vision transformer features

Project description

Feature Forest

License BSD-3 PyPI PyPI - Downloads Python Version tests codecov napari hub

A napari plugin for making image annotation using feature space of vision transformers and random forest classifier. We developed a napari plugin to train a Random Forest model using extracted features of vision foundation models and just a few scribble labels provided by the user as input. This approach can do the segmentation of desired objects almost as well as manual segmentations but in a much shorter time with less manual effort.


Documentation

You can check the documentation here (⚠️ work in progress!).

Installation

To install this plugin you need to use conda or mamba to create an environment and install the requirements. Use commands below to create the environment and install the plugin:

git clone https://github.com/juglab/featureforest
cd ./featureforest
# for GPU
conda env create -f ./env_gpu.yml
# if you don't have a GPU
conda env create -f ./env_cpu.yml

For developers that want to contribute to FeatureForest, you need to use this command to install the dev dependencies:

pip install -U "featureforest[dev]"

And make sure you have pre-commit installed in your environment, before committing changes:

pre-commit install

For more detailed installation guide, check out here.

Cite us

Seifi, Mehdi, Damian Dalle Nogare, Juan Battagliotti, Vera Galinova, Ananya Kediga Rao, AI4Life Horizon Europe Programme Consortium, Johan Decelle, Florian Jug, and Joran Deschamps. "FeatureForest: the power of foundation models, the usability of random forests." bioRxiv (2024): 2024-12. DOI: 10.1101/2024.12.12.628025

License

Distributed under the terms of the BSD-3 license, "featureforest" is free and open source software

Issues

If you encounter any problems, please file an issue along with a detailed description.

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

featureforest-0.0.8.tar.gz (1.6 MB view details)

Uploaded Source

Built Distribution

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

featureforest-0.0.8-py3-none-any.whl (52.5 kB view details)

Uploaded Python 3

File details

Details for the file featureforest-0.0.8.tar.gz.

File metadata

  • Download URL: featureforest-0.0.8.tar.gz
  • Upload date:
  • Size: 1.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for featureforest-0.0.8.tar.gz
Algorithm Hash digest
SHA256 a410495ff44e5ed5bde49942abe6c1a010cf2691c36fb564f6289845a753b8e9
MD5 74549965a23abd6aa28d9e9d5560f4c1
BLAKE2b-256 49a444cc5e1d7660906f07ced5e846b87f5ca67be1aa8870b3fd14ed72909d14

See more details on using hashes here.

Provenance

The following attestation bundles were made for featureforest-0.0.8.tar.gz:

Publisher: setup_test_publish.yml on juglab/featureforest

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file featureforest-0.0.8-py3-none-any.whl.

File metadata

  • Download URL: featureforest-0.0.8-py3-none-any.whl
  • Upload date:
  • Size: 52.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for featureforest-0.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 a6a82735c41d18545386b393d90c6710974137e9029d19116c36cda0102acda5
MD5 314865f300fd3bc82455db36d8e77307
BLAKE2b-256 1ee3f1c4424db99f4e99053c75b71a4f72fa3e3a55256c3ee6f94d4cb46a9e0f

See more details on using hashes here.

Provenance

The following attestation bundles were made for featureforest-0.0.8-py3-none-any.whl:

Publisher: setup_test_publish.yml on juglab/featureforest

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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