forked from tangger/lerobot
incomplete merge
This commit is contained in:
@@ -291,22 +291,14 @@ class LeRobotDatasetMetadata:
|
||||
obj.root.mkdir(parents=True, exist_ok=False)
|
||||
|
||||
if robot is not None:
|
||||
<<<<<<< HEAD
|
||||
features = {**(features or {}), **get_features_from_robot(robot)}
|
||||
=======
|
||||
features = get_features_from_robot(robot, use_videos)
|
||||
>>>>>>> main
|
||||
robot_type = robot.robot_type
|
||||
if not all(cam.fps == fps for cam in robot.cameras.values()):
|
||||
logging.warning(
|
||||
f"Some cameras in your {robot.robot_type} robot don't have an fps matching the fps of your dataset."
|
||||
"In this case, frames from lower fps cameras will be repeated to fill in the blanks."
|
||||
)
|
||||
<<<<<<< HEAD
|
||||
elif robot_type is None or features is None:
|
||||
=======
|
||||
elif features is None:
|
||||
>>>>>>> main
|
||||
raise ValueError(
|
||||
"Dataset features must either come from a Robot or explicitly passed upon creation."
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user