This repository has been archived by the owner on Oct 19, 2024. It is now read-only.
If use_roi is set to False, the pretransform will still try to use an roi because of the initialization from dlup #21
Labels
bug
Something isn't working
Describe the bug
In the pretransforms there is an if statement to check for ROI's, but the statement doesn't work as ROIs are always in the sample, but they can be None. The error happens here. Due to the way
sample['annotation_data']
is created, the if statement will always pass (as the key "roi" is always present) and then in line 235 it will throw an error as a None object isn't subscriptableTo Reproduce
Run any model in training mode with use_roi=False
Expected behavior
The if-statement should actually check if the ROI is not None
Environment
dlup version:
How installed:
Python version:
Operating System:
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: