Skip to content

Fingerprint's YAMNet is fetched once on every machine (for 0.1.3) - #140

Merged
shinyobjectz merged 1 commit into
mainfrom
yamnet-fetch
Nov 13, 2026
Merged

shinyobjectz merged 1 commit into
mainfrom
yamnet-fetch

Conversation

@shinyobjectz

Copy link
Copy Markdown
Owner

Only machines with perception's hand-made YAMNet copy had the sound-events encoder. A fingerprint records the encoders it was trained on and refuses a machine with a different set, so a fingerprint trained on Shane's Mac (which pins yamnet/yamnet.onnx) failed on a fresh install with 'trained on other encoders'. That breaks 0.1.3's Keep with this project for teammates.

  • yamnet.onnx (Google's YAMNet, Apache-2.0, perception's ONNX copy, sha256 8e4e21d5) is now an asset of the public models-1 release. Its download was checked against that sha256.
  • systems/columns models.rs: perception's copy when it's there, else fetched once into raea's model cache and checked against the sha256 (a bad download is removed and refused).
  • raea-sys-ml models.rs: ensure_url, a model file from a URL of its own.

SigLIP 2 and CLAP already match Hugging Face's files byte for byte (the pins in Shane's fingerprint are HF's LFS sha256s), so YAMNet was the only difference. A fingerprint trained without YAMNet takes it as an encoder added since (verbs.rs open), so 0.1.2 users' fingerprints keep working.

Branched from rc3 (3784608) so rc4 is rc3 plus this. Checked after rc4 builds: its raea with an empty RAEA_MODELS fetches YAMNet and judges with Shane's fingerprint.

…ystems/columns models.rs), from the public repo's models-1 release (Google's model, Apache-2.0, as ONNX; perception's copy, sha256 8e4e21d5) and checked against that sha256, so every machine has the same encoders. Before, only machines with perception's copy had YAMNet: a fingerprint trained on one (Shane's) refused a fresh install's columns ('trained on other encoders'), so a fingerprint kept with a project didn't judge on a teammate's machine. A fingerprint trained without YAMNet takes it as an encoder added since. raea-sys-ml models.rs gains ensure_url, a file from a URL of its own
@shinyobjectz
shinyobjectz merged commit d8c392b into main Nov 13, 2026
4 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