Views
No views yet
config.yaml records its exact architecture (e.g. U-Net, SegResNet, DynUNet, SwinUNETR), input dimensions, and training configuration.<checkpoint-name>/
├── weights.pth # trained model state_dict
└── config.yaml # architecture + training config used to build the model| Model | Target | Description |
|---|---|---|
| tomogram-boundary | Vacuum vs. specimen | Segments a tomogram into vacuum vs. specimen, useful for masking before downstream particle picking. |
octopi CLI--model-weights — no --model-config needed, it's bundled
and downloaded automatically. The first run downloads and caches the checkpoint; subsequent runs
reuse the local cache.1octopi segment \
2 --config config.json \
3 --tomo-uri wbp@10.0 \
4 --model-weights tomogram-boundary \
5 --seg-uri predict:octopi/11from octopi.workflows import segment
2
3segment(
4 config="config.json",
5 model_weights="tomogram-boundary",
6 tomo_uri="wbp@10.0",
7 seg_uri="predict:octopi/1",
8)huggingface_hub1from huggingface_hub import snapshot_download
2
3checkpoint = "tomogram-boundary"
4local_dir = snapshot_download(repo_id="biohub/octopi", allow_patterns=f"{checkpoint}/*")
5
6weights_path = f"{local_dir}/{checkpoint}/weights.pth"
7config_path = f"{local_dir}/{checkpoint}/config.yaml"hf CLI:hf download biohub/octopi --include "tomogram-boundary/*" --local-dir ./tomogram-boundarysample_boundaries
tutorial. Trained on 300 tomograms (77 held out for validation) spanning 21 datasets (see details below).| Dataset | Organism | Domain | Prep | Sample | Train | Val | Total |
|---|---|---|---|---|---|---|---|
| 10001 | S. pombe | Eukaryota | FIB-milled | lamellae, Volta phase plate | 8 | 2 | 10 |
| 10007 | S. cerevisiae | Eukaryota | FIB-milled | lamellae | 30 | 7 | 37 |
| 10301 | C. reinhardtii | Eukaryota | FIB-milled | lamellae | 14 | 4 | 18 |
| 10302 | C. reinhardtii | Eukaryota | FIB-milled | lamellae | 26 | 6 | 32 |
| internal | H. sapiens | Eukaryota | Plunge-frozen | unroofed cells | 8 | 2 | 10 |
| internal | H. sapiens | Eukaryota | Plunge-frozen | unroofed cells | 8 | 2 | 10 |
| internal | H. sapiens | Eukaryota | Plunge-frozen | unroofed cells | 8 | 2 | 10 |
| internal | H. sapiens | Eukaryota | Plunge-frozen | unroofed cells | 8 | 2 | 10 |
| 10430 | H. sapiens | Eukaryota | Plunge-frozen | unroofed cells | 8 | 2 | 10 |
| 10458 | H. sapiens | Eukaryota | Plunge-frozen | affinity-captured organelles | 24 | 7 | 31 |
| 10461 | H. sapiens | Eukaryota | Plunge-frozen | affinity-captured organelles | 23 | 6 | 29 |
| 10473 | S. cerevisiae | Eukaryota | FIB-milled | lamellae | 3 | 1 | 4 |
| 10474 | S. cerevisiae | Eukaryota | FIB-milled | lamellae | 6 | 2 | 8 |
| 10475 | H. sapiens | Eukaryota | FIB-milled | lamellae | 12 | 3 | 15 |
| 10476 | H. sapiens | Eukaryota | FIB-milled | lamellae | 12 | 3 | 15 |
| 10477 | C. elegans | Eukaryota | FIB-milled | lamellae | 8 | 2 | 10 |
| 10479 | A. thaliana | Eukaryota | FIB-milled | lamellae | 12 | 3 | 15 |
| internal | E. coli | Bacteria | FIB-milled | lamellae | 24 | 6 | 30 |
| 10498 | E. coli | Bacteria | Plunge-frozen | purified 70S ribosomes (EMPIAR-10985) | 20 | 5 | 25 |
| 10510 | M. musculus | Eukaryota | FIB-milled | brain, lamellae | 18 | 5 | 23 |
| 10511 | H. sapiens | Eukaryota | FIB-milled | lamellae (labeled from EMPIAR-12894) | 20 | 5 | 25 |
| Total | 21 datasets | 300 | 77 | 377 |
octopi train with SegResNet architecture and
FocalLoss AdamW (lr = 3.21×10⁻⁴) for 1000 epochs, checkpoint selected on validation avg_f1 (evaluated every 100 epochs).avg_f1 on the 77-run validation split was used only to select the best checkpoint during training, not as a reported benchmark.tomogram-boundary checkpoint was annotated by Utz Ermel, who also trained this model.