Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions scripts/cryo/lamella/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
embeddings/
segmentations/
19 changes: 19 additions & 0 deletions scripts/cryo/lamella/mito_segmentation_micro_sam.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
from micro_sam.sam_annotator import image_folder_annotator

ROOT = "/home/pape/Work/data/fernandez-busnadiego/lamella/Filtered_lamellae"


def main():
tile_shape = (384, 384)
halo = (64, 64)
image_folder_annotator(
ROOT, "./segmentations",
model_type="vit_b_lm", embedding_path="./embeddings",
tile_shape=tile_shape, halo=halo,
precompute_amg_state=True,
skip_segmented=False,
)


if __name__ == "__main__":
main()