diff --git a/src/lerobot/policies/rtc/configuration_rtc.py b/src/lerobot/policies/rtc/configuration_rtc.py index c70fe3de0..3d71edf26 100644 --- a/src/lerobot/policies/rtc/configuration_rtc.py +++ b/src/lerobot/policies/rtc/configuration_rtc.py @@ -35,7 +35,7 @@ class RTCConfig: """ # Infrastructure - enabled: bool = False + enabled: bool = True # Core RTC settings # Todo change to exp diff --git a/src/lerobot/rollout/inference/factory.py b/src/lerobot/rollout/inference/factory.py index 66aa411fa..761310128 100644 --- a/src/lerobot/rollout/inference/factory.py +++ b/src/lerobot/rollout/inference/factory.py @@ -68,10 +68,10 @@ class SyncInferenceConfig(InferenceEngineConfig): class RTCInferenceConfig(InferenceEngineConfig): """Real-Time Chunking: async policy inference in a background thread.""" - # Selecting ``--inference.type=rtc`` means the user wants RTC, so - # ``enabled`` defaults to True here (unlike the policy-side RTCConfig - # which defaults to False for the ``rtc_config: RTCConfig | None`` path). - rtc: RTCConfig = field(default_factory=lambda: RTCConfig(enabled=True)) + # ``RTCConfig`` is a small dataclass with default-only fields, so eagerly + # constructing one here costs nothing and keeps draccus' CLI surface flat + # (``--inference.rtc.execution_horizon=...`` etc.). No need to lazy-init. + rtc: RTCConfig = field(default_factory=RTCConfig) queue_threshold: int = 30