Buckets:
0 Bytes
13 files
Updated about 13 hours ago
Ctrl+K
| Name | Size | Uploaded | Xet hash |
|---|---|---|---|
| DCVC | 26 items | ||
| codec_tools | 13 items | ||
| README.md | 3.25 kB xet | 132e52fc | |
| canvas_assembler.py | 9.1 kB xet | 0b042d61 | |
| codec_dcvc_config.py | 2.9 kB xet | 3971718f | |
| codec_loader.py | 3.9 kB xet | 5a1de1c9 | |
| dcvc_readiness_gen.py | 5.85 kB xet | 08c4e6cc | |
| dcvc_rt_engine.py | 12.1 kB xet | c90b2e73 | |
| dcvc_rt_inter.tar | 82.9 MB xet | f6cb0954 | |
| dcvc_rt_intra.tar | 183 MB xet | 3155e53d | |
| infer_dcvc_rt.py | 5.12 kB xet | 8624b7e0 | |
| precompute_dcvc_rt.py | 12.2 kB xet | e429c6a5 | |
| reproduce_bench.py | 6.5 kB xet | 9fe5ce92 |
neural_codec — DCVC-RT patch selection
Internal package for DCVC-RT neural-codec patch selection: the codec's per-frame
bit-cost map decides which video patches to feed the VLM (regions the codec spends more
bits on — motion / new detail — are kept; predictable background is dropped), as the neural
alternative to the traditional HEVC (cv-preinfer) path.
Usage, environment setup, and the controllable
codec.dcvcparameters are documented in the top-level../README.md. This file is an internal file reference.
Files
| File | Role |
|---|---|
dcvc_rt_engine.py |
Loads DCVC-RT intra/inter nets; DMCIBitmap / DMCBitmap add compute_bitmap (per-frame (H/16, W/16) bit-cost map) via a streaming reset_sequence / step API. Loads the bundled DCVC-RT source from DCVC/ (no env var); checkpoints default to dcvc_rt_intra.tar / dcvc_rt_inter.tar in this dir (DCVC_INTRA_TAR / DCVC_INTER_TAR to override). |
codec_dcvc_config.py |
Single source of truth — reads the codec.dcvc block of ../processor/preprocessor_config.json. |
dcvc_readiness_gen.py |
Config-driven generator: runs the readiness pipeline (codec_tools/) with DCVC bit-cost as the score source. Invoked by the model's codec path (../processor/codec_video_processing_magevl.py::_run_dcvc_rt). |
reproduce_bench.py |
Reproduce the evaluated selection for one video (config-driven; presets cap12 / b50 / s95_b50). |
codec_loader.py |
Load precomputed assets → model inputs via the release codec helpers. |
infer_dcvc_rt.py |
Standalone end-to-end demo (--asset_dir or --video). |
precompute_dcvc_rt.py |
Standalone, CLI-flag-driven batch precompute (video(s) → assets). |
canvas_assembler.py |
Top-k patch selection + canvas packing used by the standalone precompute path. |
codec_tools/ |
Vendored readiness pipeline (frame sampling, grouping, 2×2-block selection, canvas packing). |
DCVC/ |
Bundled DCVC-RT source (MIT, microsoft/DCVC): the src/ package the engine imports + the CUDA-kernel source under src/layers/extensions/inference/. No external checkout / DCVC_RT_ROOT needed. |
dcvc_rt_intra.tar / dcvc_rt_inter.tar |
DCVC-RT checkpoints. |
Notes / limitations
- The bit-cost map is the summed y-bits estimate from DCVC-RT's Gaussian entropy model
(the dominant, spatially-resolved term); the small hyperprior
zterm is omitted (it is a ranking signal). It is not run through the RANS arithmetic coder. patch=16is mandatory — it must match the image processor (preprocessor_config.json: patch_size=16, merge_size=2). Thecodec.patch=14field is a separate cv-preinfer internal and does not apply here.- Canvases are square; non-16:9 videos are letterboxed, so wide videos waste some budget on
padding. Tune
codec.dcvc.max_pixelsif needed. - DCVC-RT decodes every frame
0..max(sampled)to keep temporal references valid, so long videos are slow — usecodec.dcvc.max_sideand multiple GPUs. - The DCVC CUDA kernels fall back to pytorch when the compiled extension is unavailable (slower but numerically fine, and deterministic on the fallback path).
- Total size
- 0 Bytes
- Files
- 13
- Last updated
- Aug 9
- Pre-warmed CDN
- US EU US EU