Skip to content

Add portable prototype explorer with browser inference and GBIF integration - #3

Open
asgersvenning wants to merge 36 commits into
masterfrom
feature/prototype-browser-inference
Open

asgersvenning wants to merge 36 commits into
masterfrom
feature/prototype-browser-inference

Conversation

@asgersvenning

Copy link
Copy Markdown
Owner

Adds the prototype explorer and its static browser distribution, including ONNX inference with preclassification embeddings and insertion of new images into the fixed t-SNE map. The current UX increment groups controls into Explore, Predict and Settings, uses one model-scoped GBIF namespace setting, resolves names/photos directly in the browser, and shows attributed reference photos for predicted species. Optional resumable GBIF name snapshots can be embedded in the artifact.

Original class IDs/order, prediction semantics and existing projection coordinates are preserved. Legacy saved views migrate to the shared setting; generic IDs and synthetic cases avoid GBIF calls. Local Python launcher endpoints remain compatible, but names/photos no longer require them. The existing public production release is unchanged.

Validation:

  • Current increment: 16 affected Python tests; static lint, formatting and import contracts; installed-wheel smoke and explicit GBIF asset packaging check.
  • Chromium: 158 retained interaction assertions and 16 focused portable-UI checks; live GBIF name/image access from plain static hosting.
  • Actual browser inference: 15 prediction rows, 1280-dimensional embedding and unchanged fixed-map query coordinates. Desktop/mobile previews use real predictions and credited species photos.
  • Shared-client failure checks cover cancellation, bounded requests, cache, malformed responses, offline/429/timeout behavior, taxon identity and attribution.

See dev/prototype_space/portable-qualification.md for evidence and reproduction. Qualification targets Chromium/WASM; other browsers, WebGPU, complete offline image distribution and browser-side construction of global diagnostics remain roadmap work. The candidate includes a partial 100-taxon snapshot; the helper resumes missing lookups. Human layout review and PR review are pending.

The branch includes current local master 268d294 through a merge, with agent workflow guidance in a separate agent: commit.

@github-actions

github-actions Bot commented Sep 11, 2026 •

Copy link
Copy Markdown

Change statistics

Head: b174426a22e4 · Base: 5551c819c092

54 included files · +4464 / −17 lines

Area Files Added Deleted
Core module 24 2703 15
Developer tools and execution configs 18 915 0
Other Markdown (excluded) 16 2442 3
Packaging and dependencies 2 102 1
Tests 9 734 1
User-facing documentation 1 10 0

Headline excludes Markdown except root README.md; excluded documents remain visible above.
Counts describe the PR diff, not commit totals or a measure of effort. Renames count once; binary files have no meaningful line counts.

This branch has not been deployed

No deployments
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.

2 participants