AGENT SKILL

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

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

  1. Check the source state against references/repo-provenance.md when exact behavior matters or the checkout looks newer than the skill.

  2. Confirm dependencies. Base inference needs PyTorch, TorchVision, NumPy, OpenCV, scikit-video, MoviePy, tqdm, and an ffmpeg executable for video/audio work. Training also needs TensorBoard; HD benchmarks need scikit-image.

  3. Confirm external assets. Pretrained checkpoints and benchmark/training datasets are not bundled with the source checkout or this skill.

  4. 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 32
    

    This smoke uses random weights. It proves source imports, torch backend, and Model.inference shape 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, and benchmark/HD_multi_4X.py require 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 active model.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

04 同仓库更多 Skills

VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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).

★ 351