autoseg
收藏数据集名称
autoseg
数据集描述
自动化分割大规模生物数据集。
许可证
Apache 2.0 License
安装指南
- 通过运行
bash install.sh完成安装。 - 分步安装包括:
- 安装 Rust 和 Cargo。
- 安装 MongoDB。
- 初始化 MongoDB 服务器。
- 安装
graph_tool。 - 安装
autoseg通过 pip。
功能
- 用于训练、预测和评估深度学习分割模型。
- 模型兼容 Zarr 和 N5 分块图像文件。
使用方法
-
用于训练模型的示例代码: python from autoseg import train_model
train_model( model_type="MTLSD", iterations=100000, warmup=100000, raw_file="path/to/your/raw/data.zarr", out_file="./raw_predictions.zarr", voxel_size=33, save_every=25000, )
-
用于后处理的示例代码: python from autoseg import postprocess.get_validation_segmentation
get_validation_segmentation( segmentation_style: str = "mws", iteration="latest", raw_file="./data.zarr", raw_dataset="volumes/validation_raw", out_file="./validation.zarr", )
数据集结构
数据集应存储在以下格式中:
your_dataset.zarr/ |-- volumes/ | |-- training_raw/ | | |-- 0/ | | | |-- <raw_data_chunk_0> | | | |-- <raw_data_chunk_1> | | | | ... | | |-- 1/ | | ... |-- training_labels/ | |-- 0/ | | |-- <label_chunk_0> | | |-- <label_chunk_1> | | | ... | |-- 1/ | ... |-- training_labels_masked/ | |-- 0/ | | |-- <masked_label_chunk_0> | | |-- <masked_label_chunk_1> | | | ... | |-- 1/ | ... |-- training_labels_unmasked/ |-- 0/ | |-- <unmasked_label_chunk_0> | |-- <unmasked_label_chun




