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.3.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.3-py3-none-any.whl (108.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cryovit-0.1.3.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.3.tar.gz
Algorithm Hash digest
SHA256 d5c51ceded31df9c2f089b673ac7619c8a7dab70a8d9d40f6681f7e2dd30b0d8
MD5 fba7c8f33632ac3d31b994f3a1bcddb7
BLAKE2b-256 00991c8c3e4ffa32380722c1a4df18cfb7edbac32c9fb46da91fe610fb0e85dd

See more details on using hashes here.

Provenance

The following attestation bundles were made for cryovit-0.1.3.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.3-py3-none-any.whl.

File metadata

  • Download URL: cryovit-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 108.8 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 e61a86aadd5478c9d6c7b2ea0034b90dc2d2fab77b4c83c00cb7d0e322d1c74b
MD5 928cb5387be6f7dd85c4536ee67ab97b
BLAKE2b-256 a3ee53b5d940fc665bae503f560ee4cce449871d4a47ae1bb1eefd836d08da10

See more details on using hashes here.

Provenance

The following attestation bundles were made for cryovit-0.1.3-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