We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The error message from get_patch_extractor is misleading, when location_list is of invalid type.
get_patch_extractor
location_list
img = np.zeros((256,256,3)) coords = [[10,10]] extractor = get_patch_extractor( 'point', input_img = img, locations_list = coords, patch_size=38 ) TypeError: Please input correct image path or an ndarray image.
The problem is not the image, it's the locations list:
img = np.zeros((256,256,3)) coords = [[10,10]] extractor = get_patch_extractor( 'point', input_img = img, locations_list = np.array(coords), patch_size=38 )
This works fine.
The text was updated successfully, but these errors were encountered:
PatchExtractor
🧑💻 Refine PatchExtractor Error Message (#883)
5f1cecb
- Fix Misleading error message #881
Successfully merging a pull request may close this issue.
Description
The error message from
get_patch_extractor
is misleading, whenlocation_list
is of invalid type.What I Did
The problem is not the image, it's the locations list:
This works fine.
The text was updated successfully, but these errors were encountered: