Skip to content

Commit

Permalink
tif extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
brianreicher committed Nov 30, 2023
1 parent b1abbac commit 7245e30
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/autoseg/train_job.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,21 @@ def train_model(
warmup: int = 100000,
raw_file: str = "path/to/.zarr/or/.n5/or/.tiff",
rewrite_file: str = "./rewritten.zarr",
rewrite_ds: str = "rewritten_volume",
rewrite_ds: str = "training_raw",
out_file: str = "./raw_predictions.zarr",
voxel_size: int = 33,
save_every=2500,
) -> None:

# TODO: add util funcs for generating masks
if raw_file.endswith(".tiff"):
# TODO: add util funcs for generating masks, pulling paintings
if raw_file.endswith(".tiff") or raw_file.endswith(".tif"):
tiff_to_zarr(tiff_file=raw_file,
out_file=rewrite_file,
out_ds=rewrite_ds)
raw_file: str = rewrite_file


model_type = model_type.lower()
model_type: str = model_type.lower()
if model_type == "mtlsd":
mtlsd_train(
iterations=iterations,
Expand Down

0 comments on commit 7245e30

Please sign in to comment.