Skip to content

Prompt-based segmentation and fine-tuning for data-efficient and flexible particle picking in cryo-ET tomograms

Notifications You must be signed in to change notification settings

MLI-lab/ProPicker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ProPicker

Installation and Setup

We recommend using Conda to install the necessary dependencies. To do so, run the following commands:

conda env create -f environment.yml
conda activate ppicker

To use ProPicker, you need the checkpoint of our pre-trained model, as well as the checkpoint of the TomoTwin model we used as prompt encoder:

  • You can download the ProPicker checkpoint here here

  • You can download the TomoTwin checkpoint by running bash download_tomotwin_ckpt.sh

After downloading, place the files in the ProPicker directory. If you want to store them somewhere else, you have to adjust the paths in paths.py.

Prompt-Based Picking

We provide an example for prompt-based picking in the TUTORIAL1 notebook, in which we pick ribosomes in the EMPIAR-10988 dataset.

Fine-Tuning ProPicker

An example for fine-tuning ProPicker on the EMPIAR-10988 dataset is provided in the TUTORIAL2 notebook.

Training ProPicker from Scratch

Training is handled in the train.py script. All necessary parameters are set in train_cfg.py.

To download the training data, you can use the the datasets/download_train_data.sh script.

Note: The training data is large, so you might want to download it to a different location. To do this, you can modify the download_train_data.sh script. In this case, you also have to adjust the path to the training data in paths.py

Note

This repository contains code copied and modified from the following projects:

All derived code is explicitly marked as such.

About

Prompt-based segmentation and fine-tuning for data-efficient and flexible particle picking in cryo-ET tomograms

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published