mirror of
https://github.com/huggingface/lerobot.git
synced 2026-05-15 16:49:55 +00:00
refactor(processors): unify import statements by consolidating pipeline imports into the main processor module (#1845)
This commit is contained in:
@@ -10,8 +10,7 @@ import torch
|
||||
|
||||
from lerobot.configs.types import FeatureType, PolicyFeature
|
||||
from lerobot.constants import OBS_LANGUAGE
|
||||
from lerobot.processor.pipeline import RobotProcessor, TransitionKey
|
||||
from lerobot.processor.tokenizer_processor import TokenizerProcessor
|
||||
from lerobot.processor import RobotProcessor, TokenizerProcessor, TransitionKey
|
||||
from tests.utils import require_package
|
||||
|
||||
|
||||
@@ -488,7 +487,7 @@ def test_save_and_load_pretrained_with_tokenizer_object():
|
||||
@require_package("transformers")
|
||||
def test_registry_functionality():
|
||||
"""Test that the processor is properly registered."""
|
||||
from lerobot.processor.pipeline import ProcessorStepRegistry
|
||||
from lerobot.processor import ProcessorStepRegistry
|
||||
|
||||
# Check that the processor is registered
|
||||
assert "tokenizer_processor" in ProcessorStepRegistry.list()
|
||||
|
||||
Reference in New Issue
Block a user