Skip to content

Conversation

mirjagranfors
Copy link
Collaborator

Made LoadImage compatible with torch, and updated the documetation and unittesting.

When I tried loading a list, I got an error from the line
while ndim and image.ndim < ndim:,

so I changed it to
if not isinstance(image, list) and ndim:
while image.ndim < ndim:

@mirjagranfors mirjagranfors requested a review from JChonpca July 28, 2025 07:18
Copy link
Collaborator

@JChonpca JChonpca left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants