Views
No views yet

python large_scale_mask_prediction.py --image_path path/to/your/image.zarr --model_path path/to/your/model.safetensors| Parameter | Description |
|---|---|
image_path | Path to the OME-Zarr dataset (local or S3). Example: s3://bucket/SmartSPIM_Dataset/Ex_639_Em_667.zarr |
model_path | Path to the trained segmentation model. It can point to a .cpkt or .safetensors file. |
output_folder | Directory where results will be saved. |
target_size_mb | Memory allocation target for large-scale predictions. |
n_workers | Number of workers for PyTorch DataLoader. |
super_chunksize | Data shard size for optimized cloud communication. |
scale | Name of the multiscale dataset to use for segmentation. |
scratch_folder | Path for temporary files (Raw data). |
image_height | Resize height for segmentation (Default: 1024). |
image_width | Resize width for segmentation (Default: 1024). |
prob_threshold | Probability threshold for segmentation mask generation. |
| Output File | Description |
|---|---|
probabilities.zarr | Zarr dataset containing segmentation probabilities (useful for post-processing). |
segmentation_mask.zarr | Segmentation mask in the original image space (before resizing). |
data.zarr | Raw input data used for segmentation (optional). |
git clone https://github.com/AllenNeuralDynamics/aind-brain-segmentation
cd aind-brain-segmentationdocker build -t brain_seg -f Dockerfile .