Spaces:
Running
Running
Commit History
22 days ago
-
feat(sync): two-way interior sync against vai-avatar's library
Verified signatureThe field is missing 51 interiors vai-avatar serves, and still holds 151 the user deleted there. Copying files cannot close the gap. The field searches with its own CLIP matrix; vai-avatar's library uses a different model, so a new image has to be encoded with the field's model or it lands in a 512-dim space the field never searches. Measured: cosine between the two datasets on the 377 images they share is 0.6347, and cosine between two different images is 0.6336. Same size, no signal. The script reads the API's live list rather than metadata.json, which retains deleted rows (1,752 rows for 1,122 live images) and would resurrect anything the user removed. Verified against the real files: the headerless float32 codec round-trips the 2.4 MB blob byte-identically, the index and blob agree at 1,222 rows, new records carry exactly the scraper's fields, and a dry run reports +51 / -151. Run: pip install -r scripts/requirements-sync.txt python scripts/sync-interiors.py --dry-run07cd7be