Skip to content

Commit

Permalink
Save the label mask in the loop
Browse files Browse the repository at this point in the history
  • Loading branch information
pchlap committed Dec 14, 2023
1 parent f3d6a99 commit 2890943
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions services/nnunet/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,10 +159,10 @@ def nnunet_service(data_objects, working_dir, settings):

sitk.WriteImage(mask, str(mask_file))

output_data_object = DataObject(
type="FILE", path=str(mask_file), parent=data_object
)
output_objects.append(output_data_object)
output_data_object = DataObject(
type="FILE", path=str(mask_file), parent=data_object
)
output_objects.append(output_data_object)

os.remove(io_path)

Expand Down

0 comments on commit 2890943

Please sign in to comment.