Skip to content

Commit

Permalink
Directory structure in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
brianreicher committed Dec 14, 2023
1 parent 4f1ee97 commit 0b81954
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 1 deletion.
49 changes: 49 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,55 @@ pip install git+https://github.com/brianreicher/autoseg.git


### Usage
This package is used for training, predicting, & evaluating deep learning segmentation models. The models are compatible with Zarr & N5 chunked image files, and volumes should be stored in the following format:

```
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
```

1. The first step in the `autoseg` segmentation pipeline is predicting pixel affinities. Pointing the `autoseg.train_model()` driver function to a zarr with the following volumes will allow for training, along with hyperparameter tuning.

```bash
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,
)
```
Functonality exists in `autoseg.utils` and `autoseg.WebknossosToolkit()` to handle data fetching, transformations, and conversions.


### Credits
Expand Down
1 change: 0 additions & 1 deletion segmonitor/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ pub mod segmonitor {
}

fn load_config(config_path: &str) -> Config {
// Load configuration from JSON file
let config_str = std::fs::read_to_string(config_path).expect("Error reading config file");
serde_json::from_str(&config_str).expect("Error parsing JSON")
}
Expand Down

0 comments on commit 0b81954

Please sign in to comment.