Spaces:
Runtime error
Runtime error
Commit History
-
Replace bottom Examples + top stats card with one demo button
- Remove the 'Run summary' tile card at the top of the output column; the four output panels (vis video, charts, canvas, raw JSON accordion) are enough. - Remove the bottom 'Demo video' card with three example rows; sat awkwardly below the layout. - Add a single 'Load demo video' button right under the upload widget in the Input card. One click fills every control with a curated preset (sbs · combined · log · GOP=dynamic · 1024 patches) and loads the bundled demo clip. - Button is hidden when examples/demo_codec_heatmap.mp4 is missing so the UI degrades cleanly on stripped checkouts. - process() is back to its 4-output signature.bb0f4d9 -
Fourth UI pass: stats tiles + tame Gradio empty placeholders
Summary tiles - render_stats_html() formats the run's headline numbers as a grid of brand-colored tiles (selected patches, groups, sampled frames, canvas, uniform baseline, saliency, patch grid, codec, elapsed). - process() now returns a 5th output and the Run button wires it into a new gr.HTML at the very top of the output column. - Empty state is itself a tile-styled placeholder so the column never feels broken. Empty placeholder polish (fix for 'output area has ugly black frame') - Drop the redundant ovc-empty placeholder gr.HTMLs that sat above each output component; they overlapped Gradio's own empty state and looked duplicated. - Blanket-override Gradio's dark default backgrounds inside .ovc-card (.video-container / .image-container / .image-frame / .preview / .plot-container / video / [data-testid="video"|"image"] / .icon-button / .upload-container) so the inner zones are transparent. - Repaint those wrappers with a soft brand-tin…82a1045 -
Merge branch 'main' of https://huggingface.co/spaces/FeilongTang/OneVision-Encoder-Codec-View into main
df94bff -
Third UI pass: pipeline flow, primary outputs, animations, empty states
Hero - "by lmms-lab" chip above the title. - Larger 2.7rem gradient title with animated background-position drift (ovc-shift, 9s loop) so the gradient feels alive. - Subtle 28px grid-pattern background reinforces the patch-grid metaphor without distracting from text. Pipeline flow strip - New dashed card under the hero showing the six pipeline stages: Sample -> Score -> GOP -> Top-K -> Visualize -> Pack canvas. Gives first-time visitors a one-glance map of what the demo does. Cards - Two tiers: regular ovc-card and accented ovc-card-primary used on the visualization video and the codec-vs-uniform charts. Primary cards carry an indigo ring + soft shadow so the eye lands on outputs first. - Section headers re-styled as pill chips (uppercase, tinted background, gradient bullet) for stronger visual hierarchy. - Card fade-in keyframe so newly rendered components animate in. Run button - Idle pulse (2.6s) draws attention before the first run…8c97d5b -
Add demo video for the Examples block
Verified signature9aa02e8 -
Add gr.Examples block (gated on demo file presence)
The block renders only if examples/demo_codec_heatmap.mp4 exists in the Space root, so checkouts without the binary still launch cleanly. Three preset rows ready for the demo clip: 1. Selection · gradient · global (baseline) 2. Heatmap · combined · log · dynamic (readiness story) 3. Side-by-side · combined · GOP=8 · 2048 budget (full feature) The video itself is uploaded separately via xet (binary files are not allowed through plain git push to HF Spaces).2482664 -
Add GOP parameter: fixed (4/8/16) and dynamic (energy-adaptive)
Mirrors codec_tools' grouping_mode {fixed, readiness} for the patch-selection stage of the demo. - global : one group across the whole video (current behavior). - 4/8/16 : fixed-size groups; budget split equally, top-K within each group. Forces patches to spread along the timeline instead of clumping on the single most salient moment. - dynamic : adaptive groups via build_dynamic_groups, walking sampled frames in time order and closing each group when its cumulative score sum reaches total_energy / target_groups. This is the simplified readiness rule from codec_tools/pipeline/process_video_bitcost_mv_mask_collage.py (equal-energy groups, no coverage_bins / delta-ratio refinement — this is a demo). The codec-vs-uniform chart now shows group boundaries as dashed vertical lines on the codec panel, and the title carries the GOP label and group count. Run info JSON gains…33347ae -
Rename to OneVision Encoder; global top-K; codec-vs-uniform charts
UI / brand - Rename Space and headings to "OneVision Encoder". - Hero now carries Homepage / Models / Tech Report / Model Card / Data Card links as pill-style buttons (white -> gradient on hover). - Card hover lift; tighter typography rhythm. Algorithm - Patch budget is now a single global Top-K spent across the whole video, not per-frame. High-saliency frames may receive many patches; low-saliency frames may receive zero. - Slider renamed to "Total patches budget (whole video)" with explanatory `info` text; range bumped to 64..8192, default 1024. Charts (gr.Plot) - Replaced the score histogram with a codec-vs-uniform comparison: * Left : x = time (s), y = patches selected at that timestamp by the codec saliency, including zero bars where the budget skipped the frame. * Right : x = time (s), y = full grid size, drawn for the N_uniform = budget // grid frames a uniform sampler would extract un…67e22fc -
Rename to OneVision Patch Inspector + presets, charts, UI polish
- Rename title in README and Hero block to "OneVision Patch Inspector". - Run info JSON moved into a default-collapsed Accordion to keep the output area tidy; a small summary blurb sits above it. - Visualization mode and saliency signal Radios now use (label, value) pairs so the meaning of "sbs" / "frame_diff" / etc. is visible. - Quick presets: three buttons (Detail / Motion / Balanced) wire through to atomically set saliency_signal + log + percentile + viz_mode. - Charts panel: matplotlib gr.Plot with a log-y patch-score histogram and a per-frame selected-count line, refreshed each run. - CSS pass: bigger hero with subtle radial glow, accent-bullet card headers, larger gradient Run button with hover lift, soft-gradient preset chips, footer divider. Container widened to 1320px. - requirements: matplotlib added (used for the charts panel).27a601e -
Fix Gradio 6.0 API breakage on HF Spaces
- Image() no longer accepts show_download_button; remove it. - theme/css moved off Blocks(...) to launch() in Gradio 6.0; detect gr.__version__ and route accordingly so the file still works under Gradio 4.x (local dev) and Gradio 6.x (HF Space).5c5ab4f -
Codec patch selection demo: visualization + canvas
- Replace probe with the codec_tools-style pipeline: uniform sample -> smart_resize -> per-patch saliency -> top-K selection -> visualization video + packed canvas. - Three viz modes: selection (kept-in-color, dropped fade-to-gray), heatmap (full-frame JET overlay), sbs (side-by-side). - Saliency: gradient (Sobel), frame_diff (motion), or combined. - Tunables: time window (start/end sec), top-K, patch size, max_pixels, log1p scoring, percentile normalization, fade strength, heatmap blend alpha. - Designer pass on UI: indigo Soft theme, hero gradient title, card-grouped controls, prominent Run button, output-priority layout, footer credit.36a9b0a
-
Add minimal ffprobe-based codec inspector
14590e3 -
initial commit
Verified signature3ba51be