foley.eval.clip_checks#
The per-clip scorers foley.generate can run on each stored clip: one table (#277).
Each ClipCheck is a model that scores one clip on its own (no reference set,
no prompt), run in its own interpreter: Audiobox Aesthetics (aesthetics=,
foley.eval.aesthetics) and PAM (pam=, foley.eval.pam). generate
resolves the ones asked for before it spends anything, then records each verdict in
qc[name] and a note, the same way for all of them: a record, never a quarantine,
unchecked with a scrubbed reason when it cannot run. A new scorer is a row here
plus its keyword on generate (and foley.generate), which hands it to the table.
>>> sorted(clip_checks())
['aesthetics', 'pam']
>>> resolve_clip_scorers({"aesthetics": None, "pam": False})
{}
Functions
The per-clip scorers, by |
|
|
|
Classes
|
One per-clip scorer |
- class foley.eval.clip_checks.ClipCheck(name, resolve, verdict, note_for, duplicate_note)[source]#
Bases:
objectOne per-clip scorer
generatecan run.- resolve#
option -> scorer | None; raises for a bad value or a missing interpreter (so before anything is paid for).- Type:
- foley.eval.clip_checks.clip_checks()[source]#
The per-clip scorers, by
generatekeyword (imported on use: none is loaded unless asked for).
- foley.eval.clip_checks.resolve_clip_scorers(options)[source]#
{name: scorer}for each option asked for (NoneandFalseare not).- Raises:
KeyError – For a name that is not a
clip_checks()row.FileNotFoundError, TypeError – As the check’s
resolvedoes.
- Return type: