Repository Analysis

huggingface/lerobot

🤗 LeRobot: Making AI for Robotics more accessible with end-to-end learning

32.0 Strong AI signal View on GitHub
32.0
Adjusted Score
32.0
Raw Score
100%
Time Factor
2026-05-30
Last Push
24,509
Stars
Python
Language
196,248
Lines of Code
700
Files
4561
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 10HIGH 176MEDIUM 428LOW 3947

Pattern Findings

4561 matches across 14 categories. Click a row to expand file-level details.

Hyper-Verbose Identifiers1984 hits · 1901 pts
SeverityFileLineSnippet
LOWtests/conftest.py53def _check_component_availability(component_type, available_components, make_component):
LOWtests/test_available.py31def test_require_package_raises_when_missing():
LOWtests/test_available.py43def test_require_package_passes_when_available():
LOWtests/test_available.py54def test_require_package_error_message_includes_uv():
LOWtests/test_robomme_env.py67def test_robomme_env_config_defaults():
LOWtests/test_robomme_env.py79def test_robomme_env_config_type():
LOWtests/test_robomme_env.py86def test_robomme_features_map():
LOWtests/test_robomme_env.py97def test_robomme_features_action_dim_joint_angle():
LOWtests/test_robomme_env.py105def test_robomme_features_action_dim_ee_pose():
LOWtests/test_robomme_env.py119def test_convert_obs_list_format():
LOWtests/test_robomme_env.py154def test_convert_obs_array_format():
LOWtests/test_robomme_env.py182def test_create_robomme_envs_returns_correct_structure():
LOWtests/test_robomme_env.py204def test_create_robomme_envs_multi_task():
LOWtests/test_robomme_env.py222def test_create_robomme_envs_raises_on_invalid_env_cls():
LOWtests/test_rollout.py32def test_rollout_top_level_imports():
LOWtests/test_rollout.py39def test_inference_submodule_imports():
LOWtests/test_rollout.py46def test_strategies_submodule_imports():
LOWtests/test_rollout.py58def test_strategy_config_types():
LOWtests/test_rollout.py72def test_dagger_config_invalid_input_device():
LOWtests/test_rollout.py79def test_dagger_config_defaults():
LOWtests/test_rollout.py88def test_inference_config_types():
LOWtests/test_rollout.py99def test_sentry_config_defaults():
LOWtests/test_rollout.py112def test_ring_buffer_append_and_eviction():
LOWtests/test_rollout.py144def test_ring_buffer_tensor_bytes():
LOWtests/test_rollout.py158def test_thread_safe_robot_delegates():
LOWtests/test_rollout.py200def test_create_strategy_dispatches():
LOWtests/test_rollout.py216def test_create_strategy_unknown_raises():
LOWtests/test_rollout.py230def test_create_inference_engine_sync():
LOWtests/test_rollout.py254def test_estimate_max_episode_seconds_no_video():
LOWtests/test_rollout.py260def test_estimate_max_episode_seconds_with_video():
LOWtests/test_rollout.py288def test_dagger_full_transition_cycle():
LOWtests/test_rollout.py341def test_rollout_context_fields():
LOWtests/test_rollout.py178def test_thread_safe_robot_properties():
LOWtests/test_rollout.py315def test_dagger_invalid_transition_ignored():
LOWtests/utils.py143def skip_if_package_arg_missing(func):
LOWtests/test_cli_peft.py27def resolve_model_id_for_peft_training(policy_type):
LOWtests/test_cli_peft.py37def test_peft_training_push_to_hub_works(policy_type, tmp_path):
LOWtests/test_cli_peft.py125def test_peft_training_params_are_fewer(policy_type, tmp_path):
LOWtests/test_yaml_policy_path.py22def test_extract_path_fields_from_yaml():
LOWtests/test_yaml_policy_path.py58def test_extract_path_fields_from_json():
LOWtests/test_yaml_policy_path.py82def test_extract_no_path_returns_original():
LOWtests/test_yaml_policy_path.py101def test_extract_removes_empty_field():
LOWtests/test_yaml_policy_path.py123def test_get_path_arg_fallback():
LOWtests/test_yaml_policy_path.py135def test_get_path_arg_cli_takes_precedence():
LOWtests/test_yaml_policy_path.py146def test_yaml_overrides_captured():
LOWtests/test_yaml_policy_path.py167def test_yaml_overrides_excludes_type_and_path():
LOWtests/test_yaml_policy_path.py189def test_get_yaml_overrides_empty_when_path_only():
LOWtests/test_yaml_policy_path.py218def test_flatten_none_values_skipped():
LOWtests/test_yaml_policy_path.py227def test_flatten_nested_with_bools():
LOWtests/test_yaml_policy_path.py235def test_extract_removes_field_with_siblings_and_no_type():
LOWtests/test_yaml_policy_path.py285def test_wrap_uses_cleaned_config_for_draccus_parse():
LOW…age_transforms/save_image_transforms_to_safetensors.py34def save_default_config_transform(original_frame: torch.Tensor, output_dir: Path):
LOWtests/artifacts/datasets/save_dataset_to_safetensors.py37def save_dataset_to_safetensors(output_dir, repo_id="lerobot/pusht"):
LOWtests/artifacts/policies/save_policy_to_safetensors.py117def save_policy_to_safetensors(output_dir: Path, ds_repo_id: str, policy_name: str, policy_kwargs: dict):
LOWtests/transport/test_transport_utils.py30def test_bytes_buffer_size_empty_buffer():
LOWtests/transport/test_transport_utils.py41def test_bytes_buffer_size_small_buffer():
LOWtests/transport/test_transport_utils.py51def test_bytes_buffer_size_large_buffer():
LOWtests/transport/test_transport_utils.py62def test_send_bytes_in_chunks_empty_data():
LOWtests/transport/test_transport_utils.py72def test_single_chunk_small_data():
LOWtests/transport/test_transport_utils.py98def test_send_bytes_in_chunks_large_data():
1924 more matches not shown…
Decorative Section Separators299 hits · 1106 pts
SeverityFileLineSnippet
MEDIUMpyproject.toml96# ── Feature-scoped extras ──────────────────────────────────
MEDIUMpyproject.toml129# ── User-facing composite extras (map to CLI scripts) ─────
MEDIUMtests/test_robomme_env.py62# ---------------------------------------------------------------------------
MEDIUMtests/test_robomme_env.py64# ---------------------------------------------------------------------------
MEDIUMtests/test_robomme_env.py114# ---------------------------------------------------------------------------
MEDIUMtests/test_robomme_env.py116# ---------------------------------------------------------------------------
MEDIUMtests/test_robomme_env.py177# ---------------------------------------------------------------------------
MEDIUMtests/test_robomme_env.py179# ---------------------------------------------------------------------------
MEDIUMtests/test_rollout.py27# ---------------------------------------------------------------------------
MEDIUMtests/test_rollout.py29# ---------------------------------------------------------------------------
MEDIUMtests/test_rollout.py53# ---------------------------------------------------------------------------
MEDIUMtests/test_rollout.py55# ---------------------------------------------------------------------------
MEDIUMtests/test_rollout.py107# ---------------------------------------------------------------------------
MEDIUMtests/test_rollout.py109# ---------------------------------------------------------------------------
MEDIUMtests/test_rollout.py153# ---------------------------------------------------------------------------
MEDIUMtests/test_rollout.py155# ---------------------------------------------------------------------------
MEDIUMtests/test_rollout.py195# ---------------------------------------------------------------------------
MEDIUMtests/test_rollout.py197# ---------------------------------------------------------------------------
MEDIUMtests/test_rollout.py225# ---------------------------------------------------------------------------
MEDIUMtests/test_rollout.py227# ---------------------------------------------------------------------------
MEDIUMtests/test_rollout.py249# ---------------------------------------------------------------------------
MEDIUMtests/test_rollout.py251# ---------------------------------------------------------------------------
MEDIUMtests/test_rollout.py283# ---------------------------------------------------------------------------
MEDIUMtests/test_rollout.py285# ---------------------------------------------------------------------------
MEDIUMtests/test_rollout.py336# ---------------------------------------------------------------------------
MEDIUMtests/test_rollout.py338# ---------------------------------------------------------------------------
MEDIUMtests/async_inference/test_policy_server.py29# -----------------------------------------------------------------------------
MEDIUMtests/async_inference/test_policy_server.py31# -----------------------------------------------------------------------------
MEDIUMtests/async_inference/test_policy_server.py91# -----------------------------------------------------------------------------
MEDIUMtests/async_inference/test_policy_server.py93# -----------------------------------------------------------------------------
MEDIUMtests/async_inference/test_policy_server.py116# -----------------------------------------------------------------------------
MEDIUMtests/async_inference/test_policy_server.py118# -----------------------------------------------------------------------------
MEDIUMtests/async_inference/test_e2e.py43# -----------------------------------------------------------------------------
MEDIUMtests/async_inference/test_e2e.py45# -----------------------------------------------------------------------------
MEDIUMtests/async_inference/test_e2e.py87 # ------------------------------------------------------------------
MEDIUMtests/async_inference/test_e2e.py89 # ------------------------------------------------------------------
MEDIUMtests/async_inference/test_e2e.py134 # ------------------------------------------------------------------
MEDIUMtests/async_inference/test_e2e.py136 # ------------------------------------------------------------------
MEDIUMtests/async_inference/test_e2e.py171 # ------------------------------------------------------------------
MEDIUMtests/async_inference/test_e2e.py173 # ------------------------------------------------------------------
MEDIUMtests/async_inference/test_e2e.py180 # ------------------------------------------------------------------
MEDIUMtests/async_inference/test_e2e.py182 # ------------------------------------------------------------------
MEDIUMtests/async_inference/test_helpers.py39# ---------------------------------------------------------------------
MEDIUMtests/async_inference/test_helpers.py41# ---------------------------------------------------------------------
MEDIUMtests/async_inference/test_helpers.py104# ---------------------------------------------------------------------
MEDIUMtests/async_inference/test_helpers.py106# ---------------------------------------------------------------------
MEDIUMtests/async_inference/test_helpers.py141 # ------------------------------------------------------------------
MEDIUMtests/async_inference/test_helpers.py143 # ------------------------------------------------------------------
MEDIUMtests/async_inference/test_helpers.py210# ---------------------------------------------------------------------
MEDIUMtests/async_inference/test_helpers.py212# ---------------------------------------------------------------------
MEDIUMtests/async_inference/test_helpers.py156 # ------------------------------------------------------------------
MEDIUMtests/async_inference/test_helpers.py158 # ------------------------------------------------------------------
MEDIUMtests/async_inference/test_helpers.py172# ---------------------------------------------------------------------
MEDIUMtests/async_inference/test_helpers.py174# ---------------------------------------------------------------------
MEDIUMtests/async_inference/test_robot_client.py33# -----------------------------------------------------------------------------
MEDIUMtests/async_inference/test_robot_client.py35# -----------------------------------------------------------------------------
MEDIUMtests/async_inference/test_robot_client.py70# -----------------------------------------------------------------------------
MEDIUMtests/async_inference/test_robot_client.py72# -----------------------------------------------------------------------------
MEDIUMtests/async_inference/test_robot_client.py89# -----------------------------------------------------------------------------
MEDIUMtests/async_inference/test_robot_client.py91# -----------------------------------------------------------------------------
239 more matches not shown…
Unused Imports791 hits · 726 pts
SeverityFileLineSnippet
LOWtests/test_robomme_env.py21
LOWtests/test_rollout.py17
LOWtests/async_inference/test_policy_server.py18
LOWtests/async_inference/test_e2e.py30
LOWtests/async_inference/test_robot_client.py20
LOWtests/async_inference/test_robot_client.py254
LOWtests/rewards/test_topreward_processor.py17
LOWtests/rewards/test_modeling_topreward.py17
LOWtests/rewards/test_modeling_robometer.py17
LOWtests/rewards/test_robometer_processor.py27
LOWtests/policies/test_gaussian_actor_policy.py32
LOWtests/policies/molmoact2/test_molmoact2.py21
LOWtests/policies/pi0_pi05/utils/openpi_parity.py17
LOWtests/policies/eo1/test_eo1.py19
LOWtests/envs/test_dispatch.py3
LOWtests/envs/test_robotwin.py23
LOWexamples/dataset/create_progress_videos.py38
LOWexamples/omx/record_grab.py30
LOWexamples/omx/record_grab.py31
LOWexamples/backward_compatibility/replay.py39
LOWexamples/backward_compatibility/replay.py39
LOWexamples/backward_compatibility/replay.py39
LOWscripts/ci/extract_task_descriptions.py30
LOWscripts/ci/parse_eval_metrics.py36
LOWsrc/lerobot/__init__.py34
LOWsrc/lerobot/types.py17
LOWsrc/lerobot/transport/services_pb2_grpc.py4
LOWsrc/lerobot/async_inference/robot_client.py50
LOWsrc/lerobot/async_inference/robot_client.py51
LOWsrc/lerobot/async_inference/robot_client.py52
LOWsrc/lerobot/async_inference/robot_client.py52
LOWsrc/lerobot/async_inference/robot_client.py52
LOWsrc/lerobot/async_inference/robot_client.py52
LOWsrc/lerobot/async_inference/robot_client.py52
LOWsrc/lerobot/async_inference/robot_client.py52
LOWsrc/lerobot/async_inference/helpers.py28
LOWsrc/lerobot/async_inference/helpers.py28
LOWsrc/lerobot/async_inference/helpers.py28
LOWsrc/lerobot/async_inference/helpers.py28
LOWsrc/lerobot/async_inference/helpers.py28
LOWsrc/lerobot/async_inference/helpers.py28
LOWsrc/lerobot/motors/__init__.py17
LOWsrc/lerobot/motors/__init__.py17
LOWsrc/lerobot/motors/__init__.py17
LOWsrc/lerobot/motors/motors_bus.py22
LOWsrc/lerobot/motors/robstride/__init__.py17
LOWsrc/lerobot/motors/robstride/__init__.py18
LOWsrc/lerobot/motors/dynamixel/__init__.py17
LOWsrc/lerobot/motors/dynamixel/__init__.py17
LOWsrc/lerobot/motors/dynamixel/__init__.py17
LOWsrc/lerobot/motors/dynamixel/__init__.py17
LOWsrc/lerobot/motors/dynamixel/__init__.py18
LOWsrc/lerobot/motors/damiao/__init__.py17
LOWsrc/lerobot/motors/damiao/__init__.py18
LOWsrc/lerobot/motors/feetech/__init__.py17
LOWsrc/lerobot/motors/feetech/__init__.py17
LOWsrc/lerobot/motors/feetech/__init__.py17
LOWsrc/lerobot/motors/feetech/__init__.py17
LOWsrc/lerobot/motors/feetech/__init__.py18
LOWsrc/lerobot/processor/hil_processor.py30
731 more matches not shown…
Over-Commented Block710 hits · 672 pts
SeverityFileLineSnippet
LOWrequirements-macos.txt1#
LOWrequirements-macos.txt21 # via aiohttp
LOWrequirements-macos.txt41 # aiohttp
LOWrequirements-macos.txt61click==8.3.1
LOWrequirements-macos.txt81 # eigenpy
LOWrequirements-macos.txt101 # via cmeel-urdfdom
LOWrequirements-macos.txt121 # via ipython
LOWrequirements-macos.txt161 # via
LOWrequirements-macos.txt181 # via
LOWrequirements-macos.txt201 # via
LOWrequirements-macos.txt221hebi-py==2.11.0
LOWrequirements-macos.txt241 # diffusers
LOWrequirements-macos.txt301meshcat==0.3.2
LOWrequirements-macos.txt321mypy==1.19.1
LOWrequirements-macos.txt341 # diffusers
LOWrequirements-macos.txt361 # scikit-image
LOWrequirements-macos.txt381 # huggingface-hub
LOWrequirements-macos.txt401 # via lerobot
LOWrequirements-macos.txt421 # virtualenv
LOWrequirements-macos.txt441 # reachy2-sdk-api
LOWrequirements-macos.txt461 # wandb
LOWrequirements-macos.txt481pynput==1.8.1
LOWrequirements-macos.txt501 # via
LOWrequirements-macos.txt521 # lerobot
LOWrequirements-macos.txt541pytz==2026.1.post1
LOWrequirements-macos.txt561 # lerobot
LOWrequirements-macos.txt581rerun-sdk==0.26.2
LOWrequirements-macos.txt601 # lerobot
LOWrequirements-macos.txt621sympy==1.14.0
LOWrequirements-macos.txt641 # via lerobot
LOWrequirements-macos.txt661 # lerobot
LOWrequirements-macos.txt681 # rerun-sdk
LOWrequirements-macos.txt721yarl==1.23.0
LOW.pre-commit-config.yaml1# Copyright 2024 The HuggingFace Inc. team. All rights reserved.
LOW.pre-commit-config.yaml101 # args: ["--docstring-style", "google", "-v", "2"]
LOWpyproject.toml1# Copyright 2024 The HuggingFace Inc. team. All rights reserved.
LOWpyproject.toml241# for the recipe.
LOWpyproject.toml341[tool.ruff]
LOWpyproject.toml421# ignore-init-module = true
LOWpyproject.toml501# ignore_errors = false
LOWpyproject.toml521# module = "lerobot.scripts.*"
LOWsetup.py1# Copyright 2025 The HuggingFace Inc. team. All rights reserved.
LOWrequirements-ubuntu.txt1#
LOWrequirements-ubuntu.txt21aiohappyeyeballs==2.6.1
LOWrequirements-ubuntu.txt41 # watchfiles
LOWrequirements-ubuntu.txt61 # httpx
LOWrequirements-ubuntu.txt81cmeel==0.59.0
LOWrequirements-ubuntu.txt101 # coal-library
LOWrequirements-ubuntu.txt121 # lerobot
LOWrequirements-ubuntu.txt141dill==0.4.0
LOWrequirements-ubuntu.txt161easydict==1.13
LOWrequirements-ubuntu.txt181farama-notifications==0.0.4
LOWrequirements-ubuntu.txt201frozenlist==1.8.0
LOWrequirements-ubuntu.txt221grpcio==1.73.1
LOWrequirements-ubuntu.txt241 # gym-hil
LOWrequirements-ubuntu.txt261 # via
LOWrequirements-ubuntu.txt281hydra-core==1.3.2
LOWrequirements-ubuntu.txt301 # imageio
LOWrequirements-ubuntu.txt341markdown-it-py==4.0.0
LOWrequirements-ubuntu.txt361 # via draccus
650 more matches not shown…
Cross-File Repetition117 hits · 585 pts
SeverityFileLineSnippet
HIGHtests/motors/test_feetech.py0instantiation should raise an error if the class doesn't implement abstract methods/properties.
HIGHtests/motors/test_dynamixel.py0instantiation should raise an error if the class doesn't implement abstract methods/properties.
HIGHtests/cameras/test_realsense.py0instantiation should raise an error if the class doesn't implement abstract methods/properties.
HIGHtests/cameras/test_opencv.py0instantiation should raise an error if the class doesn't implement abstract methods/properties.
HIGHtests/processor/test_diffusion_processor.py0test: deviceprocessor(bfloat16) + normalizerprocessor(float32) → output bfloat16 via automatic adaptation
HIGHtests/processor/test_act_processor.py0test: deviceprocessor(bfloat16) + normalizerprocessor(float32) → output bfloat16 via automatic adaptation
HIGHtests/processor/test_smolvla_processor.py0test: deviceprocessor(bfloat16) + normalizerprocessor(float32) → output bfloat16 via automatic adaptation
HIGHtests/processor/test_gaussian_actor_processor.py0test: deviceprocessor(bfloat16) + normalizerprocessor(float32) → output bfloat16 via automatic adaptation
HIGHtests/processor/test_vqbet_processor.py0test: deviceprocessor(bfloat16) + normalizerprocessor(float32) → output bfloat16 via automatic adaptation
HIGHtests/processor/test_tdmpc_processor.py0test: deviceprocessor(bfloat16) + normalizerprocessor(float32) → output bfloat16 via automatic adaptation
HIGHtests/policies/xvla/test_xvla_original_vs_lerobot.py0set random seed for all rng sources to ensure reproducibility.
HIGHtests/policies/groot/test_groot_vs_original.py0set random seed for all rng sources to ensure reproducibility.
HIGHtests/policies/groot/test_groot_lerobot.py0set random seed for all rng sources to ensure reproducibility.
HIGH…policies/pi0_fast/test_pi0_fast_original_vs_lerobot.py0set random seed for all rng sources to ensure reproducibility.
HIGHtests/policies/xvla/test_xvla_original_vs_lerobot.py0create dummy data for testing both implementations.
HIGHtests/policies/groot/test_groot_vs_original.py0create dummy data for testing both implementations.
HIGH…policies/pi0_fast/test_pi0_fast_original_vs_lerobot.py0create dummy data for testing both implementations.
HIGHtests/policies/pi0_pi05/openpi_pytorch/pi0_pytorch.py0computes sine-cosine positional embedding vectors for scalar positions.
HIGHsrc/lerobot/policies/pi0/modeling_pi0.py0computes sine-cosine positional embedding vectors for scalar positions.
HIGHsrc/lerobot/policies/smolvla/modeling_smolvla.py0computes sine-cosine positional embedding vectors for scalar positions.
HIGHsrc/lerobot/policies/pi05/modeling_pi05.py0computes sine-cosine positional embedding vectors for scalar positions.
HIGHsrc/lerobot/policies/eo1/modeling_eo1.py0computes sine-cosine positional embedding vectors for scalar positions.
HIGHtests/policies/pi0_pi05/openpi_pytorch/pi0_pytorch.py0copied from big_vision. tokens can attend to valid inputs tokens which have a cumulative mask_ar smaller or equal to the
HIGHsrc/lerobot/policies/pi0/modeling_pi0.py0copied from big_vision. tokens can attend to valid inputs tokens which have a cumulative mask_ar smaller or equal to the
HIGHsrc/lerobot/policies/smolvla/modeling_smolvla.py0copied from big_vision. tokens can attend to valid inputs tokens which have a cumulative mask_ar smaller or equal to the
HIGHsrc/lerobot/policies/pi05/modeling_pi05.py0copied from big_vision. tokens can attend to valid inputs tokens which have a cumulative mask_ar smaller or equal to the
HIGHtests/policies/pi0_pi05/openpi_pytorch/pi0_pytorch.py0enable gradient checkpointing for memory optimization.
HIGHsrc/lerobot/policies/pi0/modeling_pi0.py0enable gradient checkpointing for memory optimization.
HIGHsrc/lerobot/policies/pi05/modeling_pi05.py0enable gradient checkpointing for memory optimization.
HIGHsrc/lerobot/policies/pi0_fast/modeling_pi0_fast.py0enable gradient checkpointing for memory optimization.
HIGHtests/policies/pi0_pi05/openpi_pytorch/pi0_pytorch.py0helper method to apply gradient checkpointing if enabled.
HIGHsrc/lerobot/policies/pi0/modeling_pi0.py0helper method to apply gradient checkpointing if enabled.
HIGHsrc/lerobot/policies/pi05/modeling_pi05.py0helper method to apply gradient checkpointing if enabled.
HIGHsrc/lerobot/policies/pi0_fast/modeling_pi0_fast.py0helper method to apply gradient checkpointing if enabled.
HIGHtests/policies/pi0_pi05/openpi_pytorch/pi0_pytorch.py0helper method to prepare 4d attention masks for transformer.
HIGHsrc/lerobot/policies/pi0/modeling_pi0.py0helper method to prepare 4d attention masks for transformer.
HIGHsrc/lerobot/policies/pi05/modeling_pi05.py0helper method to prepare 4d attention masks for transformer.
HIGHsrc/lerobot/policies/pi0_fast/modeling_pi0_fast.py0helper method to prepare 4d attention masks for transformer.
HIGHtests/policies/pi0_pi05/openpi_pytorch/pi0_pytorch.py0embed state, noisy_actions, timestep to prepare for expert gemma processing.
HIGHsrc/lerobot/policies/pi0/modeling_pi0.py0embed state, noisy_actions, timestep to prepare for expert gemma processing.
HIGHsrc/lerobot/policies/smolvla/modeling_smolvla.py0embed state, noisy_actions, timestep to prepare for expert gemma processing.
HIGHtests/policies/pi0_pi05/openpi_pytorch/pi0_pytorch.py0apply one denoising step of the noise `x_t` at a given timestep.
HIGHsrc/lerobot/policies/pi0/modeling_pi0.py0apply one denoising step of the noise `x_t` at a given timestep.
HIGHsrc/lerobot/policies/smolvla/modeling_smolvla.py0apply one denoising step of the noise `x_t` at a given timestep.
HIGHsrc/lerobot/policies/pi05/modeling_pi05.py0apply one denoising step of the noise `x_t` at a given timestep.
HIGHtests/policies/pi0_pi05/openpi_pytorch/image_tools.py0pytorch version of resize_with_pad. resizes an image to a target height and width without distortion by padding with bla
HIGHsrc/lerobot/policies/pi0/modeling_pi0.py0pytorch version of resize_with_pad. resizes an image to a target height and width without distortion by padding with bla
HIGHsrc/lerobot/policies/pi05/modeling_pi05.py0pytorch version of resize_with_pad. resizes an image to a target height and width without distortion by padding with bla
HIGHsrc/lerobot/policies/pi0_fast/modeling_pi0_fast.py0pytorch version of resize_with_pad. resizes an image to a target height and width without distortion by padding with bla
HIGHsrc/lerobot/transport/services_pb2_grpc.py0learnerservice: the actor calls this to push transitions. the learner implements this service.
HIGHsrc/lerobot/transport/services_pb2_grpc.py0learnerservice: the actor calls this to push transitions. the learner implements this service.
HIGHsrc/lerobot/transport/services_pb2_grpc.py0learnerservice: the actor calls this to push transitions. the learner implements this service.
HIGHsrc/lerobot/transport/services_pb2_grpc.py0missing associated documentation comment in .proto file.
HIGHsrc/lerobot/transport/services_pb2_grpc.py0missing associated documentation comment in .proto file.
HIGHsrc/lerobot/transport/services_pb2_grpc.py0missing associated documentation comment in .proto file.
HIGHsrc/lerobot/transport/services_pb2_grpc.py0missing associated documentation comment in .proto file.
HIGHsrc/lerobot/transport/services_pb2_grpc.py0missing associated documentation comment in .proto file.
HIGHsrc/lerobot/transport/services_pb2_grpc.py0missing associated documentation comment in .proto file.
HIGHsrc/lerobot/transport/services_pb2_grpc.py0asyncinference: from robot perspective robot send observations to & executes action received from a remote policy server
HIGHsrc/lerobot/transport/services_pb2_grpc.py0asyncinference: from robot perspective robot send observations to & executes action received from a remote policy server
57 more matches not shown…
Docstring Block Structure59 hits · 295 pts
SeverityFileLineSnippet
HIGHsrc/lerobot/processor/normalize_processor.py305 Core logic to apply a normalization or unnormalization transformation to a tensor. This method selects
HIGHsrc/lerobot/processor/env_processor.py115 Convert batched quaternions to axis-angle format. Only accepts torch tensors of shape (B, 4).
HIGHsrc/lerobot/processor/pipeline.py73A class decorator to register a ProcessorStep. Args: name: The name to register the class under. If
HIGHsrc/lerobot/processor/pipeline.py104Retrieves a processor step class from the registry by its name. Args: name: The name of the step to
HIGHsrc/lerobot/processor/pipeline.py468Loads a pipeline from a local directory, single file, or Hugging Face Hub repository. This method implements a
HIGHsrc/lerobot/processor/pipeline.py594Load configuration from local file or Hugging Face Hub. This method implements a super-simplified 3-way loading
HIGHsrc/lerobot/processor/pipeline.py719Build all processor steps with overrides and state loading. This method orchestrates the complete step construc
HIGHsrc/lerobot/processor/pipeline.py792Resolve step class from registry or import path. This method implements a two-tier resolution strategy:
HIGHsrc/lerobot/processor/pipeline.py863Instantiate a single processor step with config overrides. This method handles the configuration merging and in
HIGHsrc/lerobot/processor/converters.py37 Convert various data types to PyTorch tensors with configurable options. This is a unified tensor conversion f
HIGHsrc/lerobot/processor/converters.py332 Convert a batch dictionary from a dataset/dataloader into an `EnvTransition`. This function maps recognized ke
HIGHsrc/lerobot/processor/observation_processor.py56 Processes a single NumPy image array into a channel-first, normalized tensor. Args: img: A
HIGHsrc/lerobot/rewards/factory.py34 Retrieves a reward model class by its registered name. This function uses dynamic imports to avoid loading all
HIGHsrc/lerobot/rewards/factory.py74 Instantiates a reward model configuration object based on the reward type. This factory function simplifies th
HIGHsrc/lerobot/rewards/factory.py144 Create pre- and post-processor pipelines for a given reward model. Each reward model type has a dedicated fact
HIGHsrc/lerobot/datasets/aggregate.py95Validates that all dataset metadata have consistent properties. Ensures all datasets have the same fps, robot_type,
HIGHsrc/lerobot/datasets/compute_stats.py676Compute normalization statistics for relative actions over the full dataset. Iterates *all* valid action chunks (wi
HIGHsrc/lerobot/datasets/dataset_metadata.py256Return the relative parquet file path for the given episode index. Args: ep_index: Zero-based episo
HIGHsrc/lerobot/datasets/dataset_metadata.py280Return the relative video file path for the given episode and video key. Args: ep_index: Zero-based
HIGHsrc/lerobot/datasets/factory.py69Handles the logic of setting up delta timestamps and image transforms before creating a dataset. Args: cfg
HIGHsrc/lerobot/datasets/utils.py247Serialize a dictionary containing tensors or numpy arrays to be JSON-compatible. Converts torch.Tensor, np.ndarray,
HIGHsrc/lerobot/datasets/utils.py346Return the specified version if available on repo, or the latest compatible one. If the exact version is not found,
HIGHsrc/lerobot/datasets/feature_utils.py44Convert a LeRobot features dictionary to a `datasets.Features` object. Args: features (dict): A LeRobot-sty
HIGHsrc/lerobot/datasets/feature_utils.py163Check if delta timestamps are multiples of 1/fps +/- tolerance. This ensures that adding these delta timestamps to
HIGHsrc/lerobot/datasets/feature_utils.py273Validate the dtype and shape of a single feature's value. Args: name (str): The name of the feature.
HIGHsrc/lerobot/datasets/lerobot_dataset.py453Return a single frame by index, with all transforms applied. Loads the frame from the underlying HF dataset, ex
HIGHsrc/lerobot/teleoperators/phone/phone_processor.py48 Processes the phone action dictionary to create a robot action dictionary. Args: act: The
HIGHsrc/lerobot/teleoperators/homunculus/homunculus_arm.py145Interactively record the min/max encoder values of each joint. Move the joints while the method streams live po
HIGH…c/lerobot/teleoperators/homunculus/homunculus_glove.py176Interactively record the min/max encoder values of each joint. Move the joints while the method streams live po
HIGHsrc/lerobot/optim/optimizers.py166 Build AdamW optimizer with differential learning rates. Args: params: Must be a dict[str,
HIGHsrc/lerobot/optim/optimizers.py249Build multiple Adam optimizers. Args: params: Must be a dict[str, Iterable[Parameter]] mapping para
HIGHsrc/lerobot/utils/feature_utils.py129Convert dataset features to policy features. This function transforms the dataset's feature specification into a fo
HIGHsrc/lerobot/utils/feature_utils.py175Merge LeRobot grouped feature dicts. - For 1D numeric specs (dtype not image/video/string) with "names": we merge t
HIGHsrc/lerobot/cameras/camera.py123Return the most recent new frame. This method retrieves the latest frame captured by the background thread.
HIGHsrc/lerobot/cameras/opencv/camera_opencv.py395 Applies color conversion, dimension validation, and rotation to a raw frame. Args: image (
HIGHsrc/lerobot/cameras/opencv/camera_opencv.py498 Reads the latest available frame asynchronously. This method retrieves the most recent frame captured
HIGHsrc/lerobot/cameras/realsense/camera_realsense.py421 Applies color conversion, dimension validation, and rotation to a raw color frame. Args: i
HIGHsrc/lerobot/cameras/realsense/camera_realsense.py538 Reads the latest available frame data (color) asynchronously. This method retrieves the most recent co
HIGHsrc/lerobot/cameras/zmq/camera_zmq.py306 Reads the latest available frame asynchronously. Args: timeout_ms (float): Maximum time in
HIGHsrc/lerobot/policies/factory.py84 Retrieves a policy class by its registered name. This function uses dynamic imports to avoid loading all polic
HIGHsrc/lerobot/policies/factory.py168 Instantiates a policy configuration object based on the policy type. This factory function simplifies the crea
HIGHsrc/lerobot/policies/factory.py253 Create or load pre- and post-processor pipelines for a given policy. This function acts as a factory. It can e
HIGHsrc/lerobot/policies/factory.py453 Instantiate a policy model. This factory function handles the logic of creating a policy, which requires d
HIGHsrc/lerobot/policies/xvla/processor_xvla.py192 Convert batched rotation matrices (B, 3, 3) into 6D rotation representation (B, 6). Args:
HIGHsrc/lerobot/policies/rtc/modeling_rtc.py126RTC guidance wrapper around an existing denoiser. This method wraps an original denoising callable that only ta
HIGH…c/lerobot/policies/wall_x/qwen_model/qwen2_5_vl_moe.py1640 Calculate the 3D rope index based on image and video's temporal, height and width in LLM. Explanation:
HIGHsrc/lerobot/common/train_utils.py148 Loads the training step, optimizer state, scheduler state, and rng state. This is used to resume a training run
HIGHsrc/lerobot/configs/parser.py130Load and initialize a plugin from a given Python package path. This function attempts to load a plugin by importing
HIGHsrc/lerobot/configs/parser.py195 Filters command-line arguments related to fields with specific path arguments. Args: fields_to_filter
HIGHsrc/lerobot/robots/lekiwi/lekiwi.py235 Convert desired body-frame velocities into wheel raw commands. Parameters: x_cmd : Line
HIGHsrc/lerobot/robots/lekiwi/lekiwi_client.py308Command lekiwi to move to a target joint configuration. Translates to motor space + sends over ZMQ Args:
HIGH…ots/earthrover_mini_plus/robot_earthrover_mini_plus.py334Send action to robot via SDK. Args: action: Action dict with keys: - linear_velocit
HIGHsrc/lerobot/envs/factory.py65Makes a gym vector environment according to the config or Hub reference. Args: cfg (EnvConfig | str): Eithe
HIGHsrc/lerobot/rl/joint_observations_processor.py53 Computes joint velocities and adds them to the observation state. Args: observation: The i
HIGHsrc/lerobot/rl/joint_observations_processor.py149 Fetches motor currents and adds them to the observation state. Args: observation: The inpu
HIGHsrc/lerobot/rl/learner.py654 Handle the resume logic for training. If resume is True: - Verifies that a checkpoint exists - Loads t
HIGHsrc/lerobot/rl/algorithms/factory.py24Instantiate an `RLAlgorithmConfig` from its registered type name. Args: algorithm_type: Registry key of the
HIGHsrc/lerobot/rl/algorithms/factory.py47 Retrieves an RL algorithm class by its registered name. This function uses dynamic imports to avoid loading al
HIGHsrc/lerobot/rl/algorithms/factory.py73 Instantiate an RL algorithm. This factory function looks up the :class:`RLAlgorithm` subclass that matches
Self-Referential Comments92 hits · 286 pts
SeverityFileLineSnippet
MEDIUMtests/async_inference/test_policy_server.py155 # Create a new, dissimilar observation.
MEDIUMtests/async_inference/test_policy_server.py166 # Create a new, very similar observation.
MEDIUMtests/async_inference/test_e2e.py64 # Create a stub policy similar to test_policy_server.py
MEDIUMtests/async_inference/test_helpers.py421 # Create an image with a specific pattern
MEDIUMtests/processor/test_observation_processor.py33 # Create a mock image (H, W, C) format, uint8
MEDIUMtests/processor/test_observation_processor.py82 # Create a batched image (B, H, W, C)
MEDIUMtests/processor/test_normalize_processor.py809 # Create a new processor from the config (deserialization)
MEDIUMtests/processor/test_normalize_processor.py1164# # Create an invalid norm_map (this would never happen in practice, but tests error handling)
MEDIUMtests/processor/test_normalize_processor.py1771 # Create a normalizer with original stats and save its state
MEDIUMtests/processor/test_normalize_processor.py1775 # Create a new normalizer with override stats (simulating from_pretrained with overrides)
MEDIUMtests/processor/test_normalize_processor.py1838 # Create a normalizer with original stats and save its state
MEDIUMtests/processor/test_normalize_processor.py1842 # Create a new normalizer without stats (simulating normal from_pretrained)
MEDIUMtests/processor/test_normalize_processor.py1966 # Create a reference pipeline with override stats for comparison
MEDIUMtests/processor/test_tokenizer_processor.py626 # Create a custom mock that tracks calls
MEDIUMtests/processor/test_tokenizer_processor.py787 # Create a mock tokenizer that tracks padding_side calls
MEDIUM…sts/processor/test_pipeline_from_pretrained_helpers.py40 # Create a config file
MEDIUM…sts/processor/test_pipeline_from_pretrained_helpers.py57 # Create a config file
MEDIUMtests/processor/test_device_processor.py32 # Create a transition with CPU tensors
MEDIUMtests/processor/test_device_processor.py59 # Create a transition with CPU tensors
MEDIUMtests/processor/test_device_processor.py290 # Create a pipeline with DeviceProcessorStep
MEDIUMtests/processor/test_pipeline.py875 # Create a processor with steps that need overrides
MEDIUMtests/processor/test_pipeline.py885 # Create a mock environment for override
MEDIUMtests/processor/test_pipeline.py67 # Create a new transition with updated complementary_data
MEDIUMtests/processor/test_pipeline.py1626 # Define a transform function
MEDIUMtests/processor/test_migration_detection.py189 # Create an invalid JSON file
MEDIUMtests/processor/test_migration_detection.py193 # Create a valid non-processor config
MEDIUMtests/processor/test_migration_detection.py69 # Create a valid processor config
MEDIUMtests/processor/test_migration_detection.py93 # Create an empty processor config
MEDIUMtests/processor/test_migration_detection.py112 # Create a model config (like old LeRobot format)
MEDIUMtests/processor/test_migration_detection.py234 # Create a model config but no processor
MEDIUMtests/processor/test_migration_detection.py256 # Create a valid processor config
MEDIUMtests/processor/test_migration_detection.py335 # Create a model config
MEDIUMtests/datasets/test_datasets.py776 # Create a dataset with 5 episodes (0-4)
MEDIUMtests/datasets/test_datasets.py810 # Create a dataset with only episodes 0, 1, 2
MEDIUMtests/datasets/test_datasets.py837 # Create a filtered dataset
MEDIUMtests/optim/test_optimizers.py181 # Create a dummy loss and do backward
MEDIUMtests/utils/test_replay_buffer.py590 # Create a batch of 2 images with known patterns
MEDIUMtests/policies/pi0_pi05/openpi_pytorch/gemma_pytorch.py170 # Define the complete layer computation function for gradient checkpointing
MEDIUM…icies/pi0_pi05/openpi_pytorch/preprocessing_pytorch.py165 # Create a simple object with the required attributes instead of using the complex Observation class
MEDIUMtests/rl/test_learner_service.py67 # Create a gRPC server and add our servicer to it.
MEDIUMtests/rl/test_learner_service.py73 # Create a client channel and stub connected to the server's port.
MEDIUMtests/rl/test_actor.py54 # Create a gRPC server and add our servicer to it.
MEDIUMtests/rl/test_actor.py60 # Create a client channel and stub connected to the server's port.
MEDIUMexamples/tutorial/act/act_training_example.py58 # Create the optimizer and dataloader for offline training
MEDIUM…mples/tutorial/diffusion/diffusion_training_example.py59 # Create the optimizer and dataloader for offline training
MEDIUMexamples/so100_to_so100_EE/record.py51 # Create the robot and teleoperator configurations
MEDIUMexamples/so100_to_so100_EE/record.py117 # Create the dataset, deriving features from the pipelines so the on-disk schema
MEDIUMexamples/so100_to_so100_EE/evaluate.py60 # Create the robot configuration & robot
MEDIUMexamples/so100_to_so100_EE/evaluate.py105 # Create the dataset
MEDIUMexamples/training/train_policy.py29 # Create a directory to store the training checkpoint.
MEDIUMexamples/training/train_with_streaming.py31 # Create a directory to store the training checkpoint.
MEDIUMexamples/lekiwi/record.py38 # Create the robot and teleoperator configurations
MEDIUMexamples/lekiwi/record.py53 # Create the dataset
MEDIUMexamples/lekiwi/evaluate.py45 # Create the robot configuration & robot
MEDIUMexamples/lekiwi/evaluate.py58 # Create the dataset
MEDIUMexamples/lekiwi/teleoperate.py29 # Create the robot and teleoperator configurations
MEDIUMexamples/phone_to_so100/record.py54 # Create the robot and teleoperator configurations
MEDIUMexamples/phone_to_so100/record.py122 # Create the dataset, deriving features from the pipelines so the on-disk schema
MEDIUMexamples/phone_to_so100/evaluate.py60 # Create the robot configuration & robot
MEDIUMexamples/phone_to_so100/evaluate.py105 # Create the dataset
32 more matches not shown…
Deep Nesting216 hits · 204 pts
SeverityFileLineSnippet
LOWtests/conftest.py53
LOWtests/datasets/test_datasets.py1143
LOWtests/datasets/test_compute_stats.py234
LOWtests/datasets/test_dataset_writer.py40
LOWtests/datasets/test_streaming.py74
LOWtests/datasets/test_streaming.py226
LOWtests/datasets/test_streaming.py307
LOWtests/datasets/test_aggregate.py293
LOWtests/utils/test_replay_buffer.py116
LOWtests/utils/test_replay_buffer.py365
LOWtests/policies/pi0_pi05/openpi_pytorch/gemma_pytorch.py104
LOW…icies/pi0_pi05/openpi_pytorch/preprocessing_pytorch.py20
LOWexamples/tutorial/rl/hilserl_example.py27
LOWexamples/tutorial/rl/hilserl_example.py115
LOWexamples/so100_to_so100_EE/evaluate.py56
LOWexamples/dataset/slurm_compute_rabc.py62
LOWexamples/dataset/use_dataset_image_transforms.py46
LOWexamples/dataset/use_dataset_image_transforms.py86
LOWexamples/dataset/use_dataset_image_transforms.py135
LOWexamples/lekiwi/evaluate.py41
LOWexamples/port_datasets/slurm_upload.py108
LOWexamples/phone_to_so100/evaluate.py56
LOWscripts/ci/extract_task_descriptions.py160
LOWsrc/lerobot/transport/utils.py74
LOWsrc/lerobot/async_inference/robot_client.py269
LOWsrc/lerobot/motors/calibration_gui.py98
LOWsrc/lerobot/motors/calibration_gui.py320
LOWsrc/lerobot/motors/calibration_gui.py356
LOWsrc/lerobot/motors/motors_bus.py430
LOWsrc/lerobot/motors/motors_bus.py850
LOWsrc/lerobot/motors/motors_bus.py879
LOWsrc/lerobot/motors/robstride/robstride.py280
LOWsrc/lerobot/motors/robstride/robstride.py381
LOWsrc/lerobot/motors/robstride/robstride.py395
LOWsrc/lerobot/motors/robstride/robstride.py438
LOWsrc/lerobot/motors/robstride/robstride.py481
LOWsrc/lerobot/motors/robstride/robstride.py840
LOWsrc/lerobot/motors/robstride/robstride.py962
LOWsrc/lerobot/motors/damiao/damiao.py296
LOWsrc/lerobot/motors/damiao/damiao.py309
LOWsrc/lerobot/motors/damiao/damiao.py355
LOWsrc/lerobot/motors/damiao/damiao.py395
LOWsrc/lerobot/motors/damiao/damiao.py705
LOWsrc/lerobot/motors/damiao/damiao.py760
LOWsrc/lerobot/motors/feetech/feetech.py187
LOWsrc/lerobot/motors/feetech/feetech.py341
LOWsrc/lerobot/processor/migrate_policy_normalization.py65
LOWsrc/lerobot/processor/migrate_policy_normalization.py125
LOWsrc/lerobot/processor/migrate_policy_normalization.py365
LOWsrc/lerobot/processor/env_processor.py178
LOWsrc/lerobot/processor/pipeline.py341
LOWsrc/lerobot/processor/pipeline.py588
LOWsrc/lerobot/processor/observation_processor.py131
LOWsrc/lerobot/rewards/factory.py33
LOWsrc/lerobot/rewards/factory.py73
LOWsrc/lerobot/rewards/factory.py137
LOWsrc/lerobot/rewards/sarm/compute_rabc_weights.py212
LOWsrc/lerobot/rewards/sarm/compute_rabc_weights.py464
LOWsrc/lerobot/rewards/sarm/sarm_utils.py22
LOWsrc/lerobot/datasets/pyav_utils.py79
156 more matches not shown…
Excessive Try-Catch Wrapping180 hits · 204 pts
SeverityFileLineSnippet
LOWtests/conftest.py66 except Exception as e:
LOWtests/datasets/test_aggregate.py236 except Exception as e:
LOW…policies/pi0_fast/test_pi0_fast_original_vs_lerobot.py515 except Exception as e:
MEDIUMtests/policies/rtc/test_action_queue.py522def consumer():
MEDIUMtests/policies/rtc/test_action_queue.py556def producer():
MEDIUMtests/policies/rtc/test_action_queue.py586def consumer():
MEDIUMtests/policies/rtc/test_action_queue.py596def producer():
MEDIUMtests/policies/rtc/test_action_queue.py634def reader():
MEDIUMtests/policies/rtc/test_action_queue.py647def consumer():
LOWtests/policies/rtc/test_action_queue.py529 except Exception as e:
LOWtests/policies/rtc/test_action_queue.py563 except Exception as e:
LOWtests/policies/rtc/test_action_queue.py593 except Exception as e:
LOWtests/policies/rtc/test_action_queue.py603 except Exception as e:
LOWtests/policies/rtc/test_action_queue.py641 except Exception as e:
LOWtests/policies/rtc/test_action_queue.py652 except Exception as e:
LOWtests/policies/pi0_pi05/test_pi05.py110 except Exception as e:
LOWtests/policies/pi0_pi05/test_pi05.py119 except Exception as e:
LOWtests/policies/pi0_pi05/test_pi05.py161 except Exception as e:
LOWtests/policies/pi0_pi05/test_pi0.py96 except Exception as e:
LOWtests/policies/pi0_pi05/test_pi0.py106 except Exception as e:
LOWtests/policies/pi0_pi05/test_pi0.py125 except Exception as e:
LOWtests/policies/wall_x/test_wallx.py97 except Exception as e:
LOWtests/policies/wall_x/test_wallx.py116 except Exception as e:
LOWtests/policies/wall_x/test_wallx.py131 except Exception as e:
LOWexamples/dataset/create_progress_videos.py192 except Exception as exc:
LOWexamples/dataset/slurm_compute_rabc.py169 except Exception as e:
LOWexamples/dataset/use_dataset_image_transforms.py82 except Exception as e:
LOWexamples/dataset/use_dataset_image_transforms.py131 except Exception as e:
LOWexamples/dataset/use_dataset_image_transforms.py163 except Exception as e:
LOWexamples/port_datasets/slurm_port_shards.py50 except Exception:
LOWexamples/rtc/eval_dataset.py414 except Exception as e:
LOWexamples/rtc/eval_dataset.py376 except Exception as e:
LOWexamples/rtc/eval_dataset.py530 except Exception as e:
LOWscripts/ci/extract_task_descriptions.py196 except Exception as exc:
LOWsrc/lerobot/async_inference/robot_client.py455 except Exception as e:
LOWsrc/lerobot/async_inference/policy_server.py263 except Exception as e:
LOWsrc/lerobot/motors/robstride/robstride.py215 except Exception as e:
LOWsrc/lerobot/motors/robstride/robstride.py296 except Exception as e:
LOWsrc/lerobot/motors/robstride/robstride.py339 except Exception as e:
LOWsrc/lerobot/motors/robstride/robstride.py390 except Exception as e:
LOWsrc/lerobot/motors/robstride/robstride.py403 except Exception as e:
LOWsrc/lerobot/motors/robstride/robstride.py477 except Exception as e:
LOWsrc/lerobot/motors/robstride/robstride.py506 except Exception as e:
LOWsrc/lerobot/motors/robstride/robstride.py800 except Exception as e:
LOWsrc/lerobot/motors/damiao/damiao.py200 except Exception as e:
LOWsrc/lerobot/motors/damiao/damiao.py262 except Exception as e:
LOWsrc/lerobot/motors/damiao/damiao.py304 except Exception as e:
LOWsrc/lerobot/motors/damiao/damiao.py317 except Exception as e:
LOWsrc/lerobot/motors/damiao/damiao.py391 except Exception as e:
LOWsrc/lerobot/motors/damiao/damiao.py424 except Exception as e:
LOWsrc/lerobot/motors/damiao/damiao.py583 except Exception as e:
LOWsrc/lerobot/processor/pipeline.py663 except Exception as e:
LOWsrc/lerobot/processor/pipeline.py906 except Exception as e:
LOWsrc/lerobot/rewards/factory.py69 except Exception as e:
LOWsrc/lerobot/rewards/factory.py103 except Exception as e:
LOWsrc/lerobot/rewards/factory.py200 except Exception as e:
LOWsrc/lerobot/rewards/sarm/compute_rabc_weights.py75 except Exception: # nosec B110
LOWsrc/lerobot/rewards/sarm/compute_rabc_weights.py604 except Exception as e:
LOWsrc/lerobot/rewards/robometer/compute_rabc_weights.py79 except Exception: # nosec B110
LOWsrc/lerobot/rewards/topreward/compute_rabc_weights.py67 except Exception: # nosec B110
120 more matches not shown…
Hallucination Indicators10 hits · 135 pts
SeverityFileLineSnippet
CRITICALsrc/lerobot/policies/groot/groot_n1.py99 self.eagle_model.language_model.model.layers.pop(-1)
CRITICALsrc/lerobot/policies/vqbet/modeling_vqbet.py70 list(self.vqbet.action_head.vqvae_model.encoder.parameters())
CRITICALsrc/lerobot/policies/vqbet/modeling_vqbet.py71 + list(self.vqbet.action_head.vqvae_model.decoder.parameters())
CRITICALsrc/lerobot/policies/vqbet/modeling_vqbet.py72 + list(self.vqbet.action_head.vqvae_model.vq_layer.parameters())
CRITICALsrc/lerobot/policies/vqbet/modeling_vqbet.py145 if not self.vqbet.action_head.vqvae_model.discretized.item():
CRITICALsrc/lerobot/policies/vqbet/modeling_vqbet.py164 if not self.vqbet.action_head.vqvae_model.discretized.item():
CRITICALsrc/lerobot/policies/pi0_fast/modeling_pi0_fast.py336 self.paligemma_with_expert.paligemma.model.language_model.gradient_checkpointing_enable(
CRITICALsrc/lerobot/policies/pi0_fast/modeling_pi0_fast.py339 self.paligemma_with_expert.paligemma.model.vision_tower.gradient_checkpointing_enable(
CRITICALsrc/lerobot/policies/pi0_fast/modeling_pi0_fast.py348 self.paligemma_with_expert.paligemma.model.language_model.gradient_checkpointing_disable()
CRITICALsrc/lerobot/policies/pi0_fast/modeling_pi0_fast.py349 self.paligemma_with_expert.paligemma.model.vision_tower.gradient_checkpointing_disable()
Redundant / Tautological Comments65 hits · 100 pts
SeverityFileLineSnippet
LOWtests/datasets/test_image_transforms.py426 # Check if the combined transforms directory exists and contains the right files
LOWtests/datasets/test_image_transforms.py445 # Check if the transformed images exist for each transform type
LOWtests/policies/pi0_pi05/openpi_pytorch/gemma_pytorch.py143 # Check if gradient checkpointing is enabled for any of the models
LOWtests/policies/pi0_pi05/openpi_pytorch/image_tools.py23 # Check if input is in channels-last format [*b, h, w, c] or channels-first [*b, c, h, w]
LOW…icies/pi0_pi05/openpi_pytorch/preprocessing_pytorch.py42 is_channels_first = image.shape[1] == 3 # Check if channels are in dimension 1
LOWtests/rl/test_learner_service.py266 # Check if the time difference is close to the expected push frequency
LOWexamples/rtc/eval_dataset.py345 # Check if torch.compile is available (PyTorch 2.0+)
LOWsrc/lerobot/processor/pipeline.py1082 # Check if any JSON file is a processor config
LOWsrc/lerobot/rewards/sarm/compute_rabc_weights.py256 # Set preprocessor to eval mode to disable augmentations
LOWsrc/lerobot/rewards/sarm/compute_rabc_weights.py489 # Set preprocessor to eval mode to disable augmentations
LOWsrc/lerobot/rewards/sarm/rabc.py107 # Check if the requested head mode column exists
LOWsrc/lerobot/datasets/streaming_dataset.py229 # Iterate over the dataset
LOWsrc/lerobot/datasets/dataset_tools.py622 # Check if video stream exists.
LOWsrc/lerobot/datasets/dataset_tools.py644 # Set time_base to match the frame rate for proper timestamp handling.
LOWsrc/lerobot/datasets/dataset_tools.py664 # Check if frame is in any of our desired frame ranges.
LOWsrc/lerobot/datasets/dataset_tools.py673 # Check if frame is in current range.
LOWsrc/lerobot/teleoperators/gamepad/gamepad_utils.py432 # Check if RB is pressed then the intervention flag should be set
LOWsrc/lerobot/teleoperators/gamepad/gamepad_utils.py435 # Check if RT is pressed
LOWsrc/lerobot/teleoperators/gamepad/gamepad_utils.py438 # Check if LT is pressed
LOWsrc/lerobot/teleoperators/gamepad/gamepad_utils.py441 # Check if Y/Triangle button (bit 7) is pressed for saving
LOWsrc/lerobot/teleoperators/gamepad/gamepad_utils.py442 # Check if X/Square button (bit 5) is pressed for failure
LOWsrc/lerobot/teleoperators/gamepad/gamepad_utils.py443 # Check if A/Cross button (bit 4) is pressed for rerecording
LOWsrc/lerobot/teleoperators/gamepad/teleop_gamepad.py138 # Check if intervention is active
LOWsrc/lerobot/teleoperators/keyboard/teleop_keyboard.py247 # Check if any movement keys are currently pressed (indicates intervention)
LOW…data_processing/sarm_annotations/subtask_annotation.py317 # Check if ffmpeg is available
LOWsrc/lerobot/utils/import_utils.py39 # Check if the module spec exists using the import name
LOWsrc/lerobot/utils/import_utils.py53 # Check if the version contains "dev"
LOWsrc/lerobot/policies/pi0/modeling_pi0.py183 # Check if input is in channels-last format [*b, h, w, c] or channels-first [*b, c, h, w]
LOWsrc/lerobot/policies/pi0/modeling_pi0.py503 # Check if gradient checkpointing is enabled for any of the models
LOWsrc/lerobot/policies/pi0/modeling_pi0.py1010 # Check if dataset_stats were provided in kwargs
LOWsrc/lerobot/policies/pi0/modeling_pi0.py1105 # Check if the model actually has adaRMS enabled for the expert
LOWsrc/lerobot/policies/pi0/modeling_pi0.py1114 # Check if the model actually has adaRMS enabled for the expert
LOWsrc/lerobot/policies/pi0/modeling_pi0.py1205 is_channels_first = img.shape[1] == 3 # Check if channels are in dimension 1
LOWsrc/lerobot/policies/groot/groot_n1.py116 # Check if any parameters are still trainable. If not, print a warning.
LOWsrc/lerobot/policies/groot/modeling_groot.py152 # Check if this is a fine-tuned LeRobot checkpoint (has model.safetensors)
LOW…olicies/groot/action_head/flow_matching_action_head.py228 # Check if any parameters are still trainable. If not, print a warning.
LOWsrc/lerobot/policies/pi05/modeling_pi05.py180 # Check if input is in channels-last format [*b, h, w, c] or channels-first [*b, c, h, w]
LOWsrc/lerobot/policies/pi05/modeling_pi05.py500 # Check if gradient checkpointing is enabled for any of the models
LOWsrc/lerobot/policies/pi05/modeling_pi05.py983 # Check if dataset_stats were provided in kwargs
LOWsrc/lerobot/policies/pi05/modeling_pi05.py1078 # Check if the model actually has adaRMS enabled for the expert
LOWsrc/lerobot/policies/pi05/modeling_pi05.py1087 # Check if the model actually has adaRMS enabled for the expert
LOWsrc/lerobot/policies/pi05/modeling_pi05.py1183 is_channels_first = img.shape[1] == 3 # Check if channels are in dimension 1
LOWsrc/lerobot/policies/pi0_fast/modeling_pi0_fast.py99 # Check if input is in channels-last format [*b, h, w, c] or channels-first [*b, c, h, w]
LOWsrc/lerobot/policies/pi0_fast/modeling_pi0_fast.py906 # Check if dataset_stats were provided in kwargs
LOWsrc/lerobot/policies/pi0_fast/modeling_pi0_fast.py1071 is_channels_first = img.shape[1] == 3 # Check if channels are in dimension 1
LOWsrc/lerobot/policies/rtc/debug_tracker.py167 # Check if step with this time already exists
LOWsrc/lerobot/policies/wall_x/utils.py263 # Set labels to None if all are invalid to skip cross entropy loss
LOW…c/lerobot/policies/wall_x/qwen_model/qwen2_5_vl_moe.py2666 # Check if we can ignore the causal mask and rely on SDPA's internal handling
LOWsrc/lerobot/common/control_utils.py195 # Check if dataset_name starts with "eval_" but policy is missing
LOWsrc/lerobot/common/control_utils.py201 # Check if dataset_name does not start with "eval_" but policy is provided
LOWsrc/lerobot/common/wandb_utils.py136 # Check if this is a PEFT model (has adapter files instead of model.safetensors)
LOWsrc/lerobot/transforms/transforms.py180 # Set this to True to apply them in a random order.
LOWsrc/lerobot/scripts/convert_dataset_v21_to_v30.py228 # Check if we need to start a new file BEFORE creating metadata
LOWsrc/lerobot/scripts/convert_dataset_v21_to_v30.py327 # Check if adding this episode would exceed the limit
LOWsrc/lerobot/robots/hope_jr/config_hope_jr.py47 # Set this to a positive scalar to have the same value for all motors, or a dictionary that maps motor
LOWsrc/lerobot/robots/reachy2/configuration_reachy2.py27 # Set this to a positive scalar to have the same value for all motors.
LOWsrc/lerobot/robots/lekiwi/config_lekiwi.py42 # Set this to a positive scalar to have the same value for all motors, or a dictionary that maps motor
LOWsrc/lerobot/robots/lekiwi/lekiwi.py190 # Set P_Coefficient to lower value to avoid shakiness (Default is 32)
LOW…c/lerobot/robots/koch_follower/config_koch_follower.py31 # Set this to a positive scalar to have the same value for all motors, or a dictionary that maps motor
LOWsrc/lerobot/robots/omx_follower/config_omx_follower.py31 # Set this to a positive scalar to have the same value for all motors, or a dictionary that maps motor
5 more matches not shown…
Verbosity Indicators23 hits · 39 pts
SeverityFileLineSnippet
LOWtests/processor/test_normalize_processor.py2005 # Step 1: DeviceProcessor converts to bfloat16 + moves to CUDA
LOWtests/processor/test_normalize_processor.py2011 # Step 2: NormalizerProcessor receives bfloat16 input and adapts
LOWtests/datasets/test_aggregate.py617 # Step 1: Create datasets A and B
LOWtests/datasets/test_aggregate.py631 # Step 2: Merge A+B into AB with small file size to force multiple files
LOWtests/datasets/test_aggregate.py652 # Step 3: Create dataset C
LOWtests/datasets/test_aggregate.py660 # Step 4: Merge AB+C into final - THIS IS WHERE THE BUG OCCURRED
LOWtests/datasets/test_aggregate.py676 # Step 5: Verify all data files referenced in metadata actually exist
LOWtests/datasets/test_aggregate.py684 # Step 6: Verify we can iterate through the entire dataset without FileNotFoundError
LOWtests/rl/test_sac_algorithm.py245 # Step 0: should update actor
LOWtests/rl/test_sac_algorithm.py249 # Step 1: should NOT update actor
LOWexamples/rtc/eval_dataset.py395 # Step 1: Move policy to CPU to free GPU/MPS memory
LOWexamples/rtc/eval_dataset.py398 # Step 2: Delete the policy object
LOWexamples/rtc/eval_dataset.py401 # Step 3: Force garbage collection to reclaim memory immediately
LOWexamples/rtc/eval_dataset.py404 # Step 4: Clear device-specific caches
LOWexamples/rtc/eval_dataset.py444 # Step 1: Generate previous chunk using policy_prev_chunk
LOWexamples/rtc/eval_dataset.py467 # Step 2: Generate actions WITHOUT RTC using policy_no_rtc
LOWexamples/rtc/eval_dataset.py500 # Step 3: Generate actions WITH RTC using policy_rtc
LOWsrc/lerobot/motors/damiao/damiao.py512 # Step 1: Send all MIT control commands
LOWsrc/lerobot/motors/damiao/damiao.py524 # Step 2: Collect responses and update state cache
LOWsrc/lerobot/motors/damiao/damiao.py716 # Step 1: Send all MIT control commands
LOWsrc/lerobot/motors/damiao/damiao.py737 # Step 2: Collect responses and update state cache
LOW…lerobot/teleoperators/openarm_leader/openarm_leader.py144 # Step 1: Set zero position
LOWsrc/lerobot/robots/openarm_follower/openarm_follower.py184 # Step 1: Set zero position
AI Slop Vocabulary13 hits · 26 pts
SeverityFileLineSnippet
MEDIUMtests/processor/test_batch_processor.py801 """Test task processing with comprehensive string cases and edge cases."""
MEDIUMtests/processor/test_pipeline.py1486# More comprehensive override tests
LOWexamples/training/train_policy.py51 # we'll just use the defaults and so no arguments other than input/output features need to be passed.
MEDIUMsrc/lerobot/async_inference/robot_client.py440 # Calculate comprehensive FPS metrics
MEDIUMsrc/lerobot/rewards/sarm/compute_rabc_weights.py449 """Linearly interpolate values to fill in gaps (robust to NaNs / edge cases)."""
MEDIUMsrc/lerobot/datasets/compute_stats.py438 """Compute comprehensive statistics for array features along specified axes.
MEDIUMsrc/lerobot/datasets/compute_stats.py489 """Compute comprehensive statistics for all features in an episode.
MEDIUMsrc/lerobot/cameras/opencv/camera_opencv.py242 # Use math.isclose for robust float comparison
MEDIUMsrc/lerobot/policies/tdmpc/modeling_tdmpc.py369 # learned state-action value function in conjunction with the learned policy: Q(z, π(z)), FOWM
MEDIUMsrc/lerobot/scripts/lerobot_eval.py731 # To be robust, accept scalars or lists.
MEDIUMsrc/lerobot/scripts/lerobot_eval.py801 # compute aggregated metrics helper (robust to lists/scalars)
LOWsrc/lerobot/envs/utils.py133 # TODO(jadechoghari, imstevenpmwork): remove this hardcoding of keys and just use the nested keys as is
LOWsrc/lerobot/rl/crop_dataset_roi.py201 # (Here we simply set the shape to be the final resize_size.)
Slop Phrases2 hits · 4 pts
SeverityFileLineSnippet
MEDIUM…olicies/gaussian_actor/configuration_gaussian_actor.py160 # Configuration for concurrency settings (you can use threads or processes for the actor and learner)
LOWsrc/lerobot/scripts/lerobot_eval.py373 # (batch-element-wise). Note the `done_indices + 1` to make sure to keep the data from the done step.