This commit is contained in:
Jade Choghari
2025-11-21 10:44:19 +01:00
parent 9d13b6ceea
commit 0ccc60f20b
3 changed files with 5 additions and 3 deletions
+1 -1
View File
@@ -1,2 +1,2 @@
# add domainid
from lerobot.policies.xvla.processor_xvla import XVLAAddDomainIdProcessorStep
from lerobot.policies.xvla.processor_xvla import XVLAAddDomainIdProcessorStep
+3 -1
View File
@@ -467,7 +467,9 @@ def make_xvla_libero_pre_post_processors() -> tuple[
"""
pre_processor_steps: list[ProcessorStep] = []
post_processor_steps: list[ProcessorStep] = []
pre_processor_steps.extend([LiberoProcessorStep(), XVLAImageNetNormalizeProcessorStep(), XVLAAddDomainIdProcessorStep()])
pre_processor_steps.extend(
[LiberoProcessorStep(), XVLAImageNetNormalizeProcessorStep(), XVLAAddDomainIdProcessorStep()]
)
post_processor_steps.extend([XVLARotation6DToAxisAngleProcessorStep()])
return (
PolicyProcessorPipeline[dict[str, Any], dict[str, Any]](
+1 -1
View File
@@ -557,4 +557,4 @@ def hotswap_stats(
step.stats = stats
# Re-initialize tensor_stats on the correct device.
step._tensor_stats = to_tensor(stats, device=step.device, dtype=step.dtype) # type: ignore[assignment]
return rp
return rp