Commit b4764a4
fix(eval): address #1380 review (cache filename, registry, deps, warn)
- README: correct the documented cache filename to
``${FASTVIDEO_EVAL_CACHE}/fvd/real_features_{extractor}.pt`` — the file
is per-extractor partitioned since CLIP and VideoMAE landed; the old
``real_features.pt`` form is never used.
- test_registry: include ``common.fvd`` in ``_CORE_METRICS`` so a
decorator/import-time breakage on this top-level metric surfaces in CI
rather than at runtime, alongside the other structurally-similar
top-level common metrics already in the tuple.
- metric.dependencies: declare ``transformers`` (used by the CLIP and
VideoMAE extractors). Already in base deps so the registry pre-import
check passes today; futureproofs if transformers ever moves to an extra.
- accumulate: ``warnings.warn`` when ``sample["reference"]`` is silently
ignored because reference features are already loaded (from cache or an
earlier accumulate call). Surfaces the foot-gun rather than producing a
plausible-but-wrong score.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>1 parent b1f2828 commit b4764a4
3 files changed
Lines changed: 15 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
273 | 273 | | |
274 | 274 | | |
275 | 275 | | |
276 | | - | |
| 276 | + | |
277 | 277 | | |
278 | 278 | | |
279 | 279 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
157 | 157 | | |
158 | 158 | | |
159 | 159 | | |
160 | | - | |
| 160 | + | |
161 | 161 | | |
162 | 162 | | |
163 | 163 | | |
| |||
234 | 234 | | |
235 | 235 | | |
236 | 236 | | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
237 | 249 | | |
238 | 250 | | |
239 | 251 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| |||
0 commit comments