Skip to content

Commit

Permalink
return loaded image instead of bioio.bioimage (#439)
Browse files Browse the repository at this point in the history
Co-authored-by: Benjamin Morris <[email protected]>
  • Loading branch information
benjijamorris and Benjamin Morris authored Oct 11, 2024
1 parent a257968 commit 2def9f5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cyto_dl/datamodules/multidim_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ def get_per_file_args(self, df):
"original_path": row[self.img_path_column],
}
)
img_data.reverse()
return img_data

def _metadata_to_str(self, metadata):
Expand Down Expand Up @@ -166,7 +167,7 @@ def _transform(self, index: int):
# some monai transforms return a batch. When collated, the batch dimension gets moved to the channel dimension
if self.is_batch(output_img):
return [{self.out_key: img} for img in output_img]
return {self.out_key: img}
return {self.out_key: output_img}

def __len__(self):
return len(self.img_data)
Expand Down

0 comments on commit 2def9f5

Please sign in to comment.