mirror of
https://github.com/huggingface/lerobot.git
synced 2026-07-23 17:56:07 +00:00
Fix SmolVLA init_rtc_processor to use getattr instead of direct model access
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -263,8 +263,9 @@ class SmolVLAPolicy(PreTrainedPolicy):
|
|||||||
# In case of calling init_rtc_processor after the model is created
|
# In case of calling init_rtc_processor after the model is created
|
||||||
# We need to set the rtc_processor to the model
|
# We need to set the rtc_processor to the model
|
||||||
# During the normal initialization process the model is not created yet
|
# During the normal initialization process the model is not created yet
|
||||||
if self.model is not None:
|
model_value = getattr(self, "model", None)
|
||||||
self.model.rtc_processor = self.rtc_processor
|
if model_value is not None:
|
||||||
|
model_value.rtc_processor = self.rtc_processor
|
||||||
|
|
||||||
def get_optim_params(self) -> dict:
|
def get_optim_params(self) -> dict:
|
||||||
return self.parameters()
|
return self.parameters()
|
||||||
|
|||||||
Reference in New Issue
Block a user