eccv2022-rife
Operate ECCV2022-RIFE video frame interpolation, benchmark evaluation, and training workflows from a source checkout.
- License 许可
- MIT
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- eccv2022-rife
- license
- MIT
- metadata
- { "disco-role": "operating" }
- description
- Operate ECCV2022-RIFE video frame interpolation, benchmark evaluation, and training workflows from a source checkout.
- disable-model-invocation
- true
02 资源文件 5
- 参考文档references/model-api.md5.4 KB
- 参考文档references/repo-provenance.md3.4 KB
- 参考文档references/repo-routing-metadata.json324 B
- 参考文档references/troubleshooting.md5.5 KB
- 脚本scripts/smoke_model_api.py5.7 KB
03 SKILL.md 正文
ECCV2022-RIFE repo skill
Use this skill when the task names ECCV2022-RIFE, RIFE, Real-Time Intermediate Flow Estimation, video frame interpolation, slow-motion generation, image-pair interpolation, RIFE benchmarks, or RIFE training/reproduction from this source checkout.
The repository is a source-script project rather than an installable Python distribution. Future agents should reason from the checkout scripts and bundled skill references, not from a package console entry point.
First checks
-
Check the source state against references/repo-provenance.md when exact behavior matters or the checkout looks newer than the skill.
-
Confirm dependencies. Base inference needs PyTorch, TorchVision, NumPy, OpenCV, scikit-video, MoviePy, tqdm, and an
ffmpegexecutable for video/audio work. Training also needs TensorBoard; HD benchmarks need scikit-image. -
Confirm external assets. Pretrained checkpoints and benchmark/training datasets are not bundled with the source checkout or this skill.
-
Run a safe import/backend smoke before long work when the environment is uncertain:
python scripts/smoke_model_api.py --repo-root <checkout> --device auto --size 32This smoke uses random weights. It proves source imports, torch backend, and
Model.inferenceshape behavior only; it does not prove interpolation quality or official benchmark metrics.
Route map
| User intent | Read |
|---|---|
Interpolate two images, use --ratio, make 2X/4X/16X frames, process a video or numbered PNG directory, tune --scale/--fps/--fp16, understand output paths or audio transfer |
sub-skills/interpolation/SKILL.md |
Select or validate UCF101, Vimeo90K, MiddleBury, ATD12K, HD, HD 4X, or testtime.py evaluations; classify safe native verification cases; interpret PSNR/SSIM/IE |
sub-skills/evaluation/SKILL.md |
Prepare Vimeo triplet data, plan train.py distributed CUDA/NCCL launch, check TensorBoard/checkpoints, reason about world size, batch size, OOM, or long-running training |
sub-skills/training/SKILL.md |
Inspect model.RIFE.Model, checkpoint loading, tensor shapes, device selection, or VimeoDataset signatures |
references/model-api.md |
| Diagnose install/import, checkpoint, CUDA/CPU, dataset, ffmpeg/audio, or output side-effect issues shared across workflows | references/troubleshooting.md |
Operating boundaries
- Do not download checkpoints or datasets, run full benchmarks, launch training, or start long video inference without explicit user approval and a time/storage/GPU budget.
- Do not treat CPU importability as proof of CUDA-only training or HD benchmark behavior.
train.py,benchmark/HD.py, andbenchmark/HD_multi_4X.pyrequire CUDA paths. - Do not claim README-reported paper or official metrics are reproduced unless the matching external data, checkpoints, backend, and commands were actually run in the current session.
- Do not promise verified HD model variants from the default checkout. The inference scripts try HD import paths before falling back to
model.RIFE, but the activemodel.RIFE_HD*paths are absent in this source snapshot. - Prefer bundled validators/builders before mutating work:
Common source commands
These command shapes are documented in the sub-skill references; validate assets first.
python inference_img.py --img img0.png img1.png --exp 4 --model train_log
python inference_img.py --img img0.png img1.png --ratio 0.25 --model train_log
python inference_video.py --video input.mp4 --exp 1 --scale 0.5 --model train_log
python inference_video.py --img frames --exp 2 --png --model train_log
python benchmark/testtime.py
python -m torch.distributed.launch --nproc_per_node=4 train.py --world_size=4
Self-contained skill assets
- references/repo-provenance.md records the source commit, dirty-state caveat, evidence paths, and refresh triggers.
- references/repo-routing-metadata.json provides structured router metadata for managed repo-skill import tooling.
- references/model-api.md records verified signatures and tensor/device contracts.
- references/troubleshooting.md covers cross-cutting operational failures.
- scripts/smoke_model_api.py is the shared safe API/backend smoke helper.
04 同仓库更多 Skills
passnet-triton-opt
Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.
passnet-solve
END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.
passnet-skill
PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.
passnet-pattern-fusion
Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.
passnet-orchestrate
Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.
passnet-feedback
Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).