MCPcopy Create free account
hub / github.com/MotrixLab/ViMoGen / decide_quality

Function decide_quality

motion_gating/apply_quality_gate.py:246–257  ·  view source on GitHub ↗
(
    motion_metrics: Dict[int, Dict[str, float]],
    vlm_results: Dict[int, Dict[str, Any]],
    jitter_threshold: float,
)

Source from the content-addressed store, hash-verified

244
245
246def decide_quality(
247 motion_metrics: Dict[int, Dict[str, float]],
248 vlm_results: Dict[int, Dict[str, Any]],
249 jitter_threshold: float,
250) -> Dict[int, bool]:
251 final = {}
252 for motion_id, metrics in motion_metrics.items():
253 jitter = metrics.get("Jitter_Degree", float("inf"))
254 vlm = vlm_results.get(motion_id, {"matches": False})
255 is_good = jitter < jitter_threshold and vlm.get("matches", False)
256 final[motion_id] = is_good
257 return final
258
259
260def apply_quality_gate(

Callers 1

apply_quality_gateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected