Skip to content

iOS: run the Student models in capture (Paramveer's branch + new M fixture) - #52

Open
b00rg wants to merge 3 commits into
mainfrom
ios-models-update
Open

b00rg wants to merge 3 commits into
mainfrom
ios-models-update

Conversation

@b00rg

@b00rg b00rg commented Nov 22, 2026

Copy link
Copy Markdown
Owner

Brings Paramveer's iOS model hookup up to date with main, so iOS runs the retrained M.

What's in it

  1. Paramveer's commit 388797d from codex/ciuin-design-ios, unchanged: "Run the bundled Student audio models in iOS capture" (StudentAudioClassifier.swift, IosMeasurementCapture.kt, AudioStudentTests.swift, and project setup).
  2. main merged in, with no conflicts. That brings in the retrained M from Cascade S → M on device, retrained M (0.702), live smoothing, GPU training code #46 (sha256 3a508711…, test macro-F1 0.650 → 0.702). iOS bundles M directly from ml/export/audio-student-m.tflite (see iosApp/project.yml), so no copy is needed.
  3. The M test fixture regenerated (iosApp/iosAppTests/Fixtures/audio-student-m-expected.json) for the new M. It uses the same recipe as the original: host LiteRT 2.4.0, built-in CPU kernels, the PCM16 WAVs and window starts from expected.json, rounded to six decimals.
    • As a check, the same generator applied to the old M reproduces the original fixture exactly: max window diff 0, max clip diff 1e-6, top class 10/10.

S is unchanged, so the S checks are unaffected.

Not tested

This hasn't been built or run on iOS. There was no Xcode on the machine. Someone with Xcode needs to:

  • Build iosApp and run AudioStudentTests. Both S and M should match their fixtures within 0.001.
  • Take a measurement in the simulator or on an iPhone, and check that sound classes appear.

Not in this PR

techparamveer and others added 3 commits November 22, 2026 03:19
M was retrained in #46 (sha256 3a508711..., test macro-F1 0.702). Same recipe as
the original fixture: host LiteRT 2.4.0 built-in CPU kernels, the PCM16 WAVs and
window starts from expected.json, six decimals. The generator reproduces the old
fixture from the old M exactly (window max diff 0, clip 1e-6, 10/10 top classes).

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