mirror of
https://github.com/huggingface/lerobot.git
synced 2026-07-21 08:51:47 +00:00
fix(logging): remove unused list-valued metric expansion
This commit is contained in:
@@ -186,12 +186,6 @@ class WandBLogger:
|
|||||||
if custom_step_key is not None and k == custom_step_key:
|
if custom_step_key is not None and k == custom_step_key:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
if isinstance(v, list):
|
|
||||||
for i, elem in enumerate(v):
|
|
||||||
if isinstance(elem, (int | float)):
|
|
||||||
batch_data[f"{mode}/{k}_{i}"] = elem
|
|
||||||
continue
|
|
||||||
|
|
||||||
if not isinstance(v, (int | float | str)):
|
if not isinstance(v, (int | float | str)):
|
||||||
logging.warning(
|
logging.warning(
|
||||||
f'WandB logging of key "{k}" was ignored as its type "{type(v)}" is not handled by this wrapper.'
|
f'WandB logging of key "{k}" was ignored as its type "{type(v)}" is not handled by this wrapper.'
|
||||||
|
|||||||
Reference in New Issue
Block a user