From 67b18d87b22dfcb03c4751d5ab72f09744ca3869 Mon Sep 17 00:00:00 2001 From: CarolinePascal Date: Fri, 3 Jul 2026 13:37:02 +0200 Subject: [PATCH] fix(debug log): avoinding spamming warning log with debug log --- src/lerobot/datasets/compute_stats.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/lerobot/datasets/compute_stats.py b/src/lerobot/datasets/compute_stats.py index 133c59f0e..37b32fc3d 100644 --- a/src/lerobot/datasets/compute_stats.py +++ b/src/lerobot/datasets/compute_stats.py @@ -519,9 +519,10 @@ def compute_episode_stats( if features[key]["dtype"] in {"string", "language"}: continue + # Features with zero-width shapes are skipped (no data to compute stats on) if any(d == 0 for d in features[key].get("shape", ())): - logging.warning( - f"Skipping stats for feature '{key}' with a zero-width shape {features[key]['shape']}." + logging.debug( + f"Skipping statistics computation for feature '{key}' with a zero-width shape {features[key]['shape']}." ) continue