mirror of
https://github.com/huggingface/lerobot.git
synced 2026-07-25 02:36:11 +00:00
fix: exclude _is_pad mask from images
This commit is contained in:
@@ -152,7 +152,7 @@ def _collate_processed(samples):
|
|||||||
}
|
}
|
||||||
|
|
||||||
keys = {
|
keys = {
|
||||||
*[key for key in samples[0] if key.startswith("observation.images.")],
|
*[key for key in samples[0] if key.startswith("observation.images.") and not key.endswith("_is_pad")],
|
||||||
OBS_LANGUAGE_TOKENS,
|
OBS_LANGUAGE_TOKENS,
|
||||||
OBS_LANGUAGE_ATTENTION_MASK,
|
OBS_LANGUAGE_ATTENTION_MASK,
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user