Skip to content

Embed & Explore: image-folder handling and backend auto-selection #50

Description

@NetZissou

Three small gaps found while reading the app log for a 36-image run. None affect results; they cost time or hide images.


Subfolders are never searched

EmbeddingService.generate_embeddings supports recursive=True (#41), but the sidebar never passes it, so a folder organized by species subfolders reports "Found 0 images". Add an "Include subfolders" checkbox to the Embed section (default on) and pass it through.


Model is loaded even when no images were found

Log: Found 0 images followed by a 17 s BioCLIP 2 load, then 0 embeddings. Return early (with the existing "0 embeddings" warning) before load_model_unified when the listing is empty.


auto backend ignores dataset size

resolve_backend("auto") in both sidebars resolves to cuml whenever a GPU and cuML are present, so the size heuristics inside reduce_dim (cuML only above 5000 samples) and run_kmeans (500) are unreachable from the apps. A 36-point UMAP paid ~20 s of cuML subprocess startup. Decide whether auto should honor a size threshold; if so, make resolve_backend take n_samples and apply one shared rule so the two layers agree.

Activity

  1. self-assigned this
    on Sep 22, 2026
  2. added
    bug
    enhancement
    on Sep 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugenhancement

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions