mirror of
https://github.com/huggingface/lerobot.git
synced 2026-05-24 04:59:47 +00:00
Merge branch 'main' into feature/add-multitask-dit
This commit is contained in:
@@ -21,9 +21,10 @@ import os
|
|||||||
import pytest
|
import pytest
|
||||||
import torch
|
import torch
|
||||||
|
|
||||||
# Skip if openpi or transformers is not available
|
# Skip if required dependencies are not available
|
||||||
pytest.importorskip("peft")
|
pytest.importorskip("peft")
|
||||||
pytest.importorskip("transformers==4.49.0")
|
pytest.importorskip("transformers")
|
||||||
|
pytest.importorskip("torchdiffeq")
|
||||||
|
|
||||||
# Skip this entire module in CI
|
# Skip this entire module in CI
|
||||||
pytestmark = pytest.mark.skipif(
|
pytestmark = pytest.mark.skipif(
|
||||||
|
|||||||
+1
-1
@@ -208,7 +208,7 @@ def test_peft_record_loads_policy(policy_type, tmp_path):
|
|||||||
loaded_policy = kwargs["policy"]
|
loaded_policy = kwargs["policy"]
|
||||||
|
|
||||||
with (
|
with (
|
||||||
patch("lerobot.robots.make_robot_from_config", dummy_make_robot_from_config),
|
patch("lerobot.scripts.lerobot_record.make_robot_from_config", dummy_make_robot_from_config),
|
||||||
# disable record loop since we're only interested in successful loading of the policy.
|
# disable record loop since we're only interested in successful loading of the policy.
|
||||||
patch("lerobot.scripts.lerobot_record.record_loop", dummy_record_loop),
|
patch("lerobot.scripts.lerobot_record.record_loop", dummy_record_loop),
|
||||||
# disable speech output
|
# disable speech output
|
||||||
|
|||||||
Reference in New Issue
Block a user