Views
No views yet
ribosome/)last.ckpt (262 MB): Full transformer-based detector checkpoint3DCNN.ckpt (65 MB): 3D CNN particle classifier for scoring refinementconfig.json - Training hyperparameters and architecture specshsp60/)last.ckpt (262 MB): Transformer-based detector checkpoint3DCNN.ckpt (29 MB): 3D CNN particle classifierconfig.json - Training hyperparametersmitochondria&nucleus/)last.ckpt (262 MB): DETR-based detector for organellespretrained_models/)conditionaldetr.ckpt: Base conditional DETR model used as initializationdata_example/ directory:1# Create conda environment
2conda create -n cryo-detection python=3.12 -y
3conda activate cryo-detection
4
5# Install dependencies
6cd /path/to/cryoem
7pip install -r requirements.txt
8pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu1211import sys
2sys.path.append("../src")
3import utils, data
4
5model = utils.loadModel("/path/to/release_models/ribosome", "last.ckpt")
6model = model.eval().cuda(0)
7
8dataset = data.TestDatasetMrc(
9 "/path/to/release_models/data_example/ribosome.mrc",
10 norm="hist",
11 reshape=800,
12 length_for_average=3,
13 gap=1
14)notebooks/scan_particles.ipynb for slice-wise detectionnotebooks/scan_particle_with3DCNN_pipeline.ipynb for full pipeline with 3D CNN scoringrevise_notebooks/SHREC.ipynb for benchmark evaluation| Model | Objectness Threshold | Sweep Distance | Matching Distance |
|---|---|---|---|
| Ribosome | 0.20 | 15 | 15 |
| HSP60 | 0.20 | 10 | 15 |
| Organelle | 0.30 | 20 | 20 |
prediction_score then spatial clustering/home/feity/cryoem/notebooks/:/home/feity/cryoem/revise_notebooks/:mrcfile library (included in requirements)mrcfile.open(path).dataz y x
125 256 512
130 260 520
...1{
2 "mapclass": {"ribosome": 0},
3 "annotations": {0: {slice_idx: [instance_ids]}},
4 "masks": {0: {slice_idx: scipy.sparse.csr_matrix}},
5 "bboxes": {0: {slice_idx: {instance_id: [x_min, y_min, w, h]}}},
6 "mrc_path": "/path/to/volume.mrc",
7 "mrc_shape": (500, 1024, 1024)
8}.ckpt (Lightning checkpoint)1@article{your_paper_title,
2 author={Your Authors},
3 journal={Journal Name},
4 year={2024}
5}pip install pytorch-lightning==2.0.0 # adjust version as neededreshape parameter or use smaller batches
Poor predictions: Verify input normalization matches training setuprelease_models/
├── README.md (this file)
├── ribosome/
│ ├── last.ckpt
│ ├── 3DCNN.ckpt
│ └── config.json
├── hsp60/
│ ├── last.ckpt
│ ├── 3DCNN.ckpt
│ └── config.json
├── mitochondria&nucleus/
│ └── last.ckpt
├── pretrained_models/
│ └── conditionaldetr.ckpt
└── data_example/
├── ribosome.mrc
├── ribosome_label.txt
├── ribosome_label.mrc
├── ribosome_label.pkl
├── hsp60.mrc
├── hsp60_label.txt
├── hsp60_label.pkl
├── hsp60_label_corrected.pkl
├── mitochondria_nucleus.mrc
└── shrec_labels.txt