Skip to content
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

Open
wants to merge 10 commits into
base: main
Choose a base branch
from

Conversation

PaulHax
Copy link
Collaborator

@PaulHax PaulHax commented Jan 24, 2025

The shitspoter dataset has ~12 megapixel images.

  • Its slow to scroll through the image list. Fixed by serving images via endpoint, not pushing on state.
  • The image cache was filling up main memory.

Closes #92

@PaulHax PaulHax requested a review from alesgenova January 24, 2025 19:14
@PaulHax PaulHax changed the title fix(predictor): use image orieantion in batch grouping fix(predictor): use image orientation in batch grouping Jan 24, 2025
- Use generator when computing embeddings.
- Ajust image cache size based on image size and available memory.
@PaulHax PaulHax changed the title fix(predictor): use image orientation in batch grouping Fix batching with oriented images and support larger image datasets Jan 27, 2025
return file_path.split(".")[-1].upper() in COMPATIBLE_FORMATS


def ensure_browser_compatable_format(image: Image.Image):
Copy link
Member

Choose a reason for hiding this comment

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

typo "compatable" -> "compatible"

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.

Crash Report
2 participants