Repository navigation
feat: add mirage, in-browser image description with the Mirage vision model - #61
Merged
Merged
Conversation
… model Our own take on joemaddalone/mirage-demo: drop in a photo and the Mirage model returns objects, text, scene and relations, drawn over the image. Inference runs in a Web Worker on Cactus's WebAssembly runtime (vendored, Apache-2.0). Weights are fetched from Hugging Face at a pinned commit, checked against a SHA-256 and kept in Cache Storage. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BoMPz7UrQa7V4x91joYfzc
Contributor
OpenTofu PlanPlan output |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds
projects/mirage/, our own take on joemaddalone/mirage-demo. Drop, paste or browse a photo and the Mirage vision model returns objects (boxes, outlines, scores), readable text, a scene summary and object relations, drawn over the image. Inference runs in the browser; the image is never uploaded.Merging creates the Pages project and DNS for
mirage.apps.andymolenda.comand publishes the homepage with its new card.How it is built
cactusCLI, which cannot run on Pages.vendor/cactus.js+vendor/cactus.wasmare Cactus runtime 4.1.4 (1.3 MB, Apache-2.0, license invendor/LICENSE.txt), unmodified and checked against the releasemanifest.json.worker.jsfetches the 21.6 MBmirage.cact(Apache-2.0) from Hugging Face at a pinned commit, checks its SHA-256, and keeps it in Cache Storage.index.html+worker.jsrather than a single file.Also changed
tofu/variables.tf:mirageadded to the projects setprojects/homepage/index.html: new cardCLAUDE.md: structure, projects table, and a mirage exception noteTesting
Driven end to end in headless Chromium against a local static server: cold load with weights download, warm run on a second image, reload with weights served from Cache Storage, hover and click-to-pin on canvas and lists, confidence filter, clear, and a 390px viewport. No console errors. A describe took about 2.5–3 s per image there.
There are no automated tests for this project.
Generated by Claude Code