Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

return loaded image instead of bioio.bioimage #439

Merged
merged 1 commit into from
Oct 11, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading