diff --git a/dacapo/experiments/trainers/gunpowder_trainer.py b/dacapo/experiments/trainers/gunpowder_trainer.py index 507151ad..15da00a0 100644 --- a/dacapo/experiments/trainers/gunpowder_trainer.py +++ b/dacapo/experiments/trainers/gunpowder_trainer.py @@ -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()}!"