Skip to content

Fix SAM image cache invalidation (0.3.2) - #4

Merged
JsonMatrixLab merged 2 commits into
mainfrom
fix/sam-image-cache-032
Sep 9, 2026
Merged

Fix SAM image cache invalidation (0.3.2)#4
JsonMatrixLab merged 2 commits into
mainfrom
fix/sam-image-cache-032

Conversation

@JsonMatrixLab

Copy link
Copy Markdown
Owner

Fix stale SAM eye-mask embeddings when a different image reuses an object ID or the same image changes in place. The cache now validates object lifetime and exact pixels, and serializes embedding updates with prediction. Unchanged repeated eye queries still reuse their embedding.

Version 0.3.2 includes five portable regressions for cache invalidation, noncontiguous input, released references, failed refreshes and concurrent calls. All five fail the previous implementation and pass this candidate. The complete 26-test portable suite and exact source rebuild pass. The runtime diff is limited to the SAM adapter; existing UI and Metadata Killer assets are preserved. Real GPU mask-quality acceptance is separate from these cache-contract tests.

@JsonMatrixLab
JsonMatrixLab merged commit 841fcf9 into main Sep 9, 2026
6 checks passed
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.

1 participant