From 5dababd21e4a459e727adfca1a9ecd0eb3fd3c53 Mon Sep 17 00:00:00 2001 From: AdilZouitine Date: Tue, 9 Sep 2025 13:14:44 +0200 Subject: [PATCH] refactor(eval): remove redundant observation device conversion in rollout function - Eliminated unnecessary device conversion for the observation dictionary within the `rollout` function, streamlining the code and enhancing readability. - This change simplifies the observation handling process, aligning with the preference for clearer solutions. --- src/lerobot/scripts/eval.py | 1 - 1 file changed, 1 deletion(-) diff --git a/src/lerobot/scripts/eval.py b/src/lerobot/scripts/eval.py index e3014d924..39b821d91 100644 --- a/src/lerobot/scripts/eval.py +++ b/src/lerobot/scripts/eval.py @@ -74,7 +74,6 @@ from lerobot.envs.utils import add_envs_task, check_env_attributes_and_types, pr from lerobot.policies.factory import make_policy, make_pre_post_processors from lerobot.policies.factory import make_policy, make_pre_post_processors from lerobot.policies.pretrained import PreTrainedPolicy -from lerobot.policies.utils import get_device_from_parameters from lerobot.processor.core import TransitionKey from lerobot.processor.pipeline import PolicyProcessorPipeline from lerobot.utils.io_utils import write_video