Repository navigation
feat: FP32 MobileCLIP-S0 vision, EXIF upright rotation, tuned search & release AAB - #6
Merged
Merged
Conversation
…os) + finite norm guard
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
Fixes visual search accuracy on real camera photos and adds
bundleReleaseR8 verification:43 MB, SHA-256 pinned):vision_model_int8.onnx(which severely degrades MobileCLIP's reparameterized Conv2D embeddings) with FP32vision_model.onnx(17d3c037b1d488c10c50e09f6009ea5a198caef4e0e8f4ea5617b7cb2d067ac0), avoiding both INT8 accuracy collapse and an ARM64 ONNX Runtime 1.25.0 CPU EP bug wherevision_model_fp16.onnxsilently outputs all-zero vectors.MobileClipOnnxEncoder.extractEmbedding()and cleans up legacy INT8/FP16 vision cache files on upgrade.MobileClipOnnxEncoder.buildVisualPrompts()ensembles raw short descriptive queries with"a photo of a <query>"(L2-normalized average) while leaving numeric/code queries untouched.androidx.exifinterface:exifinterface:1.3.7(0platform permissions) to rotate portrait camera JPEGs upright inImportManager.decodeSampledBitmap()(and refreshes thumbnails + upright dimensions during DB v8 re-index).DB_VERSION = 8):photo,picture,screenshot,a,of, etc.) before SQLite FTS5 matching.SEMANTIC_MATCH_THRESHOLDto0.17f(SEMANTIC_TOP_RATIO = 0.80f) to match FP32 CLIP cosine separation and triggers clean auto-reindex on upgrade.bundleRelease) & Durable FreeSched Pin:-keep class ai.onnxruntime.** { *; }toapp/proguard-rules.proand verifiesbundleRelease(91 MBtotal including:models_pack) in CI.scripts/build-freesched-aar.shto durablefreesilicon/freeschedmainSHA22f08fc753cdf1fba8a1253b384483dd575ea5f7.Verification
./gradlew --no-daemon testDebugUnitTest assembleDebug bundleDebug bundleRelease— PASS (app-release.aab=91 MB)../scripts/check-zero-permissions.sh— PASS (0platform permissions across debug/release merged manifests and APK)../scripts/check-16k-alignment.sh— PASS (PT_LOAD 0x4000on all 4 native.sos +zipalign -P 16)../scripts/clean-room-audit.sh— PASS (59files,0errors).norm > 0across indexed embeddings,0zero-vectors,0crashes).