Commit History
-
Redesign video comparison viewer with synchronized playback
silvanus930Replaced the two independent <video controls> elements (each with its own play state, seek bar, and no relationship to the other) with a proper side-by-side comparison viewer: - Chip labels overlaid on the video itself (Reference/Compressed) instead of plain text below, with a byte-size readout in the corner - Both videos pinned to the same 16:9 frame via object-fit so they're directly comparable regardless of actual resolution - A single shared control bar: one play/pause button and one seek bar drive both videos together, with a small drift-correction check on every timeupdate (independent decoders on separately-encoded files can drift a little even when started in sync) - A loading overlay per video that clears on first decoded frame, so the black box isn't ambiguous between "still loading" and "empty" Also verified (in response to a reported reference/compressed mismatch) that the actual file pairing was correct all along -- extracted frames from both the source fil…c300884 -
Fix video preview playback: browser-safe transcoded copies, not raw samples
silvanus930Range-request streaming (previous commit) fixed the transport layer, but the actual files still couldn't play -- confirmed two distinct root causes directly on the real files, not guessed: 1. Reference clips arrive from the validator with the moov atom at the end of the file (scanned the actual MP4 atoms: ftyp, free, then a 265MB mdat, then moov last) -- a browser has to fetch and parse the tail of a huge file before playback can even begin. 2. Compressed outputs are frequently HEVC (confirmed via ffprobe) -- Chrome and Firefox cannot decode HEVC in <video> on most platforms at all, codec-incompatible regardless of streaming support, and it presents identically to (1): an endless spinner, no error. New preview.py transcodes an on-demand, cached H.264 + faststart copy (scaled to max 1280w, since this is a visual check not a quality measurement -- the real score already covers that) for both video endpoints, leaving the retained originals untouched for everything else…0205fd4 -
Fix video preview: real range-request streaming, live sample detection
silvanus930Two real bugs found from a user report ("looping and don't playing", no compressed video showing): 1. Plain FileResponse doesn't honor Range headers -- confirmed via curl, a Range: bytes=0-1023 request came back 200 OK with the full 265MB file instead of 206 Partial Content with just the requested bytes. Browsers can't play (or even start playing) large video without range support, which is exactly the "spinning, never plays" symptom. Added a real byte-range-aware StreamingResponse. 2. has_reference_sample/has_compressed_sample were snapshotted once at ingest time, but the compressed-sample capture is a fire-and-forget background task in a separate process with no ordering guarantee against the outcome-log write that ingest reads -- ingest routinely ran before the file finished copying, permanently freezing the flag at False even though the file showed up moments later (confirmed: the file existed on disk the whole time). Item detail now checks the …57f6065 -
CMS: overview, score column, filtering/sorting, charts, CQ health, calibration UI, library browser, alerts, auth
silvanus930- scoring.py: shared real compression-score formula (mirrors the exact validator formula, same one used in real_validator_score_test.py) so every part of the CMS scores consistently instead of each view reimplementing it. - db.py: added score column (+ migration for the pre-existing DB), an alerts table, a calibration_runs table, sortable/filterable item queries, score-trend and rate-distortion query helpers. - cq_health.py: parses the live CQ tables directly from app.py's source and cross-references them against real calibration evidence, flagging which tiers are backed by data vs. still guesses. Caught and fixed a real bug while building this: calibration evidence wasn't filtered by encoder_mode, so NVENC AV1 data was silently getting attributed to the SVT-AV1 table (different CQ/CRF curve entirely) and vice versa. Also normalized all scores to the real vmaf_threshold rather than trusting stored score_est, which for search-log rows is computed against an inf…b84c410 -
Modernize CMS UI: real design system, favicon, better layout
silvanus930Replaced the bare-bones first pass with a proper dark theme (token-based colors, consistent spacing/radius scale), an inline SVG favicon (no external asset), a header with a logo mark, stat cards with category pills, and a cleaner item detail panel for the before/after video preview.9a642a0 -
Add CMS foundation: persistent outcome logging, video sample capture, DB + browsing UI
silvanus930- Compression service now writes a structured outcome record (codec, cq, vmaf, ratio, timing, searched-vs-fallback) per completed item to compression_outcomes.jsonl, following the same pattern as the existing cq_search_log.jsonl. This doesn't touch the CompressResponse contract with neurons/miner.py -- the CMS reads this log directly instead. - _search_cq_for_max_score now returns (cq, vmaf) instead of just cq, so the real measured VMAF for the chosen value can be logged instead of re-measuring or guessing. - neurons/miner.py captures a compressed-output sample alongside the existing reference-clip capture, using the same category-aware eviction policy (reserve=3 per codec/threshold, cap=80) -- generalized the reference-library eviction helpers to serve both libraries, since compressed outputs are normally deleted within seconds of upload and would otherwise never be available to preview. - New cms/ subsystem: SQLite-backed ingest of the outcome log, a FastAPI s…b5c3309 -
Category-aware eviction for the real-content-library capture cap
silvanus930Plain FIFO eviction (oldest file wins) lost the only samples of rare (codec, threshold) categories mid-calibration more than once this session -- whatever combo wasn't actively flowing got evicted by whatever was, even though one rare clip is worth more for calibration than one more of an already well-represented category. Reserves a minimum of 3 samples per category (needs >=2 to compute a rate-distortion slope at all) and only evicts from categories already above their own reserve, picking the globally oldest sample among the most over-represented category. Verified against the live 80-clip library: with av1/89.0 at 30 samples vs hevc/89.0 at 5, it correctly evicts from the former, not blind oldest-first.f0084c4 -
Add safety guards to secant CQ search; revert content-adaptive margin attempt
silvanus930- Guard against 1-cq baseline slope estimates producing wild extrapolated jumps (observed live: a noisy 1-cq gap slope extrapolated a probe 10 cq away, wasting the time budget) -- only trust the measured local slope with a >=2-cq baseline, fall back to the pooled prior otherwise. Cap jump2's extrapolated distance as defense in depth. - Attempted making the search margin content-adaptive (shrinking it on demonstrably gentle-slope clips, backed by paired subsampled-vs-full- precision VMAF measurements showing noise is content-dependent) but reverted: the first jump's direction is decided against the inflated margin-threshold, so on easy content it's already biased conservative before there's evidence the content is easy, undermining the adaptation before it can help. Needs the first-jump direction logic reworked too -- left as a scoped future project rather than iterating further live.8089b41 -
Session: AV1/HEVC CQ table fixes, VBR NVENC tuning, secant-based adaptive search, dashboard reset mechanism
silvanus930- Fix HEVC CRF Low (40->35) and Medium (35->30) tiers, both were landing at/below the hard-cutoff on real traffic, scoring near-zero - Add AV1 Low-tier size-based CQ bonus using reference file size as a free content-difficulty signal - Add NVENC advanced rate-control flags (multipass/lookahead/AQ) to VBR-mode encoding, A/B tested against real HEVC threshold-89 traffic - Replace blind +/-3 coordinate-ascent CQ search with a secant-method search that jumps directly toward the VMAF target using measured local slope - Add dynamic per-request deadline computation and download-source/speed instrumentation to neurons/miner.py - Fix cleanup-worker silently deleting calibration data via a protected _persistent/ subdirectory - Add dashboard batch-counter reset mechanism - Add real-validator-score-test harness (calls the literal validator scoring code locally) and CQ-curve calibration scripts for evidence-based tuningbc6f62c
-
Merge origin/main into local (compression solution improvements)
silvanus930d49fc51 -
treat miner sandbox raised error as miner issue rather than validator infra issue (#195)
Arpan TripathiUnverified signature3c18598 -
ensure comp scoring worker can access Modal SDK for fetching Modal volumes (#194)
Arpan TripathiUnverified signaturebd48ba1 -
add inference miners' checklist in docs (#193)
Arpan TripathiUnverified signatured3c84b1 -
reinvite miners rejected with flag INVITATION_DECLINED in comp enrollment (#192)
Arpan TripathiUnverified signature3c2bd6c -
extend Bittensor TypeDefComposite patch to metagraph API (#191)
Arpan TripathiUnverified signature5e1949e -
Score against VMAF NEG model, switch AV1 to SVT-AV1, add probe timeouts
silvanus930 +1: Claude Sonnet 5- CQ search now measures against vmaf_v0.6.1neg (what the validator actually scores with) instead of the standard model, which read ~2.2-2.5 points optimistic and understated the hard-fail margin. - Default AV1 encoder to software SVT-AV1 over NVENC: avg score 0.2185 -> 0.2411 across a 22-video sweep (17 better/5 worse/0 tied), still well inside the search/validator time budgets. - Each ffmpeg/vmaf subprocess now has its own timeout so a single hung call can't block a request past CQ_SEARCH_MAX_SECONDS. - tracker_loop.sh now restarts watchdog.sh if it dies, since nothing else supervises the supervisor. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>16e3bfe -
Add adaptive VMAF-driven CQ search for compression miner, plus ops scripts
silvanus930 +1: Claude Sonnet 5Probe-encode a handful of CQ values against real libvmaf output and pick the one that maximizes the validator's compression score formula, instead of trusting the static per-band CQ table. Adds libvmaf to the compression Dockerfile and dashboard/tracker/watchdog helper scripts. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>eaba72e
-
retry inviting rejected miner UIDs in competition enrollment due to low alpha stake (#190)
Arpan TripathiUnverified signatureed98ac4
-
add metagraph resync & alpha stake finalisation in competitions' enrolling phase (#189)
Arpan TripathiUnverified signature4758a24
-
add first compression competition (#188)
Arpan TripathiUnverified signature6d207cd -
ensure timeout of 3 minutes for comp batch of 5 videos less than 50 seconds length (#187)
Arpan TripathiUnverified signature8596d9d -
adjust dynamic batch timeout calculation comp (#186)
Arpan TripathiUnverified signaturea7256e5 -
remove randomisation from VMAF calculation in competitions (#185)
Arpan TripathiUnverified signaturefe6b545
-
add audio validation for competitions (#184)
Arpan TripathiUnverified signature9b424ca
-
optimise validator competition dataset preparation pipeline to remove redundant recalculations (#183)
Arpan TripathiUnverified signature6b47413 -
isolate competition batches in separate miner Modal sandboxes (#182)
Arpan TripathiUnverified signature718912c
-
update docs and checklists (#181)
Arpan TripathiUnverified signature- comp manifest min_alpha_stake for miners - github account deduplication for miner submission collection - miners only serving owner hotkey for comp by default - modify dataset preparation to reject ineligible inputs - add sandbox pings to ensure proper detection of 'Runner failed with exception: Sandbox disappeared' on Modal - defer competition scoring commits for auditing compatibility - add verbosity to S3 backups of miner competition submissions and results in phase transition - no restriction on competition start day - update documentation - add privacy checks for competition artifact backup bucket and leniency for Backblaze B28eba1b0 -
compression competition mode (#179)
Arpan TripathiUnverified signature1f4a4dd
-
defer scoring commit to DB (#180)
Arpan TripathiUnverified signature775f8ae
-
fix cleanup (#178)
Arpan TripathiUnverified signature72f9501
-
harden tone manipulation checks (#177)
Arpan TripathiUnverified signature0c93e56
-
BT TypeDefComposite patch (#176)
Arpan TripathiUnverified signaturef395783
-
handle-auto-validator-permit (#175)
Arpan TripathiUnverified signature3680870
-
adjust burn to 0 | disable alpha_stake_weigh_factor (#174)
Arpan TripathiUnverified signatured2dceba -
past emissions liquidation proportion based emissions multiplier (#173)
Arpan TripathiUnverified signature390d032
-
Add stake based emissions multiplier (#172)
Arpan TripathiUnverified signatureb14a030
-
adjust burn to 60% (#171)
Arpan TripathiUnverified signatureca41273
-
add VMAF tolerance for deduplication (#170)
Arpan TripathiUnverified signaturee1d0aa6 -
add detection for minor tweaks to compression rate using frame tolerance (#169)
Arpan TripathiUnverified signature6413bf6
-
evenly distribute emissions to top 5 UIDs | 80-20 emissions split between compression-upscaling (#168)
Arpan TripathiUnverified signatured664484 -
prioritise top miner UIDs in synthetic scoring (#167)
Arpan TripathiUnverified signature5c0f647
-
reduce fp precision for compression synthetic deduplication (#166)
Arpan TripathiUnverified signatureadd7d16 -
deduplicate compression miner scoring entries (#165)
Arpan TripathiUnverified signaturec5414cc
-
add tone manipulation checks for compression (#164)
Arpan TripathiUnverified signature31d2567
-
adjust burn (#163)
Arpan TripathiUnverified signaturea35d3d3
-
increase synthetics timeout (#162)
Arpan TripathiUnverified signature7257746
-
fix premature cleanup for batched synthetics scoring (#161)
Arpan TripathiUnverified signature0ad93aa -
add base VMAF calculation in logs (#160)
Arpan TripathiUnverified signaturea41b78e
-
incentive serverless inference (#158)
Arpan TripathiUnverified signature9e97a17
-
add wandb logsink (#159)
Arpan TripathiUnverified signature3466736