Skip to main content

Deep learning automated segmentation models using high-level features from foundation ViT models.

Project description

CryoVIT: Efficient Segmentation of Cryo-electron Tomograms with Vision Foundation Models

Installation Instructions

CryoVIT uses Mamba to manage python packages and dependencies and can be downloaded here. You should also be able to use Conda instead of Mamba but setting up the environment may take an unreasonably long time.

  1. Clone the CryoVIT github repository: git clone https://github.com/VivianDLi/CryoVIT.git
  2. Setup the mamba environment: mamba env create -f CryoVIT/env.yml
  3. Activate the mamba environment: mamba activate cryovit_env

Usage Instructions

For more details, check out the documentation.

Replicating Experiments

All experiments are managed using Hydra, with their configurations stored in src/cryovit/configs.

Before running experiments, make sure to change the relevant entries in src/cryovit/configs/paths/default.yaml.

You can run a specific experiment using the scripts in the cryovit.training module.

For example:

$ mamba activate cryovit_env
$ python -m cryovit.training.dino_features
$ python -m cryovit.training.train_model +experiment=<experiment_config_name>
$ python -m cryovit.training.eval_model +experiment=<experiment_config_name>

These commands assume your data is setup in the following format:

dataset/
├── sample_1/
│   ├── tomogram1.hdf
│   ├── tomogram2.hdf
│   └── ...
├── sample_2/
│   ├── tomogram1.hdf
│   ├── tomogram2.hdf
│   └── ...
├── sample_3/
│   └── ...
├── sample_4/
│   └── ...
│   ...

where each tomogram has a data key, with labels saved in labels/<label_name> keys.

All figures in the paper were produced using the cryovit.training.visualize_results command.

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

cryovit-0.1.2.tar.gz (6.0 MB view details)

Uploaded Source

Built Distribution

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

cryovit-0.1.2-py3-none-any.whl (105.0 kB view details)

Uploaded Python 3

File details

Details for the file cryovit-0.1.2.tar.gz.

File metadata

  • Download URL: cryovit-0.1.2.tar.gz
  • Upload date:
  • Size: 6.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for cryovit-0.1.2.tar.gz
Algorithm Hash digest
SHA256 4928dc59939895abc9372e049e698e2180bae11f38a2d47ddca188e2cf7fc6bc
MD5 dadf680c5723e4b0a3da1ada5976de24
BLAKE2b-256 9f73c6c087743a6abdf6e67793aad835f060759b9b3d64d784c3fbf26c388ff3

See more details on using hashes here.

Provenance

The following attestation bundles were made for cryovit-0.1.2.tar.gz:

Publisher: deploy.yml on VivianDLi/CryoVIT

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

File details

Details for the file cryovit-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: cryovit-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 105.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for cryovit-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 cabec3feb049a0c7ac844389e0085fa7718e88774e1aa7f3966600d4bd38ebd6
MD5 04eed99494fcad741cdafd3842f46aeb
BLAKE2b-256 85983e5fbb8e81caeede0d687899f7686bcbee4455a6bed69f9c92355f983cac

See more details on using hashes here.

Provenance

The following attestation bundles were made for cryovit-0.1.2-py3-none-any.whl:

Publisher: deploy.yml on VivianDLi/CryoVIT

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