forked from tangger/lerobot
fix(dataset): key is an action if it starts with such prefix in dataset_to_policy_features (#1156)
This commit is contained in:
@@ -461,7 +461,7 @@ def dataset_to_policy_features(features: dict[str, dict]) -> dict[str, PolicyFea
|
|||||||
type = FeatureType.ENV
|
type = FeatureType.ENV
|
||||||
elif key.startswith("observation"):
|
elif key.startswith("observation"):
|
||||||
type = FeatureType.STATE
|
type = FeatureType.STATE
|
||||||
elif key == "action":
|
elif key.startswith("action"):
|
||||||
type = FeatureType.ACTION
|
type = FeatureType.ACTION
|
||||||
else:
|
else:
|
||||||
continue
|
continue
|
||||||
|
|||||||
Reference in New Issue
Block a user