-
Notifications
You must be signed in to change notification settings - Fork 234
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
Custom loader not used when loading data lazily #1084
Labels
bug
Something isn't working
Comments
Thanks for reporting, @Zhack47. This should be fixed in @all-contributors please add @Zhack47 for bug |
I couldn't determine any contributions to add, did you specify any contributions? I've put up a pull request to add @Zhack47! 🎉 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is there an existing issue for this?
Bug summary
While using a custom loader (in my example .npy loader), if the data is loaded lazily (i.e.: not with subject.load(), but during the application of a transformation for example) Torchio doesnt seem to use the provided thee custom loader, and instead tries to find a fitting SimpleITIKIO reader
This throws an error in this case because no such reader exists for .npy files.
Code for reproduction
Actual outcome
Throws error: Unable to determine ImageIO reader for "/mnt/disk_2//Sarco///mask.npy"
Error messages
Expected outcome
No error
System info
The text was updated successfully, but these errors were encountered: