Skip to content

Commit

Permalink
convert mask to funlib array
Browse files Browse the repository at this point in the history
  • Loading branch information
pattonw committed Jan 2, 2025
1 parent e9697ad commit ddb3760
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dacapo/experiments/trainers/gunpowder_trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,9 @@ def iterate(self, num_iterations, model, optimizer, device):
),
}
if mask is not None:
snapshot_arrays["volumes/mask"] = mask
snapshot_arrays["volumes/mask"] = np_to_funlib_array(
mask[0], offset=target.offset, voxel_size=target.voxel_size
)
logger.warning(
f"Saving Snapshot. Iteration: {iteration}, "
f"Loss: {loss.detach().cpu().numpy().item()}!"
Expand Down

0 comments on commit ddb3760

Please sign in to comment.