-
Notifications
You must be signed in to change notification settings - Fork 3
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
Fix batching with oriented images and support larger image datasets #178
base: main
Are you sure you want to change the base?
Conversation
- Use generator when computing embeddings. - Ajust image cache size based on image size and available memory.
Don't cache the full transformed image in embedding app. Was running out of memory.
return file_path.split(".")[-1].upper() in COMPATIBLE_FORMATS | ||
|
||
|
||
def ensure_browser_compatable_format(image: Image.Image): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo "compatable" -> "compatible"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
@alesgenova Should I merge this down, then trigger a release? |
The shitspoter dataset has ~12 megapixel images.
Closes #92 <- Was happning when the transformers.pipeline was rotating shitspoter images in preprocessing based on their medatdata. That broke the "all images in batch must be same width and height" rule, causing the error.