mirror of
https://github.com/huggingface/lerobot.git
synced 2026-05-22 20:19:43 +00:00
refactor(factory): streamline processor loading by removing unused comments
- Removed commented-out code related to loading pretrained processors in the make_processor function. - This change enhances code clarity and maintains focus on the current implementation.
This commit is contained in:
@@ -140,8 +140,6 @@ def make_processor(
|
|||||||
NotImplementedError: If the policy type doesn't have a processor implemented.
|
NotImplementedError: If the policy type doesn't have a processor implemented.
|
||||||
"""
|
"""
|
||||||
if pretrained_path:
|
if pretrained_path:
|
||||||
# Load a pretrained processor
|
|
||||||
# TODO(azouitine): Handle this case.
|
|
||||||
return (
|
return (
|
||||||
RobotProcessor.from_pretrained(
|
RobotProcessor.from_pretrained(
|
||||||
pretrained_model_name_or_path=pretrained_path,
|
pretrained_model_name_or_path=pretrained_path,
|
||||||
|
|||||||
Reference in New Issue
Block a user