dreamscale 0.1.0a331__tar.gz → 0.1.0a332__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/CHANGELOG.md +16 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/PKG-INFO +25 -7
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/README.md +24 -6
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/attended/runner.py +2 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/attended/sync.py +1 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/cli.py +18 -3
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/dreamzero.py +1 -1
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/hardware/franka_runner.py +2 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/hardware/openarm_runner.py +2 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/hardware/ur_runner.py +2 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/hardware/xarm7_runner.py +2 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/hardware/yam_runner.py +2 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/policy/remote.py +2 -1
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/policy/runtime/action_buffer.py +37 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/policy/runtime/action_smoothing.py +25 -3
- dreamscale-0.1.0a332/dreamscale/policy/runtime/crossfade.py +135 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/policy/types.py +19 -1
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/so101_runner.py +2 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/pyproject.toml +1 -1
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/.gitignore +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/LICENSE +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/__init__.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/agents/__init__.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/agents/api.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/agents/attended.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/agents/client.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/agents/display.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/agents/journal.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/agents/runner.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/agents/so101.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/agents/so101_cli.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/agents/yam.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/agents/yam_cli.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/arm.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/arx5.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/assets/__init__.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/assets/camera_reference.jpg +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/assets/camera_reference.svg +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/attended/__init__.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/attended/lifecycle.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/attended/model_check.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/attended/output.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/bench.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/calibrate.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/camera_codec.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/checkpoints_cmd.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/codec_feed.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/config.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/constants.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/control.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/datasets.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/datasets_cmd.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/deploy_bases/__init__.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/deploy_bases/_preset.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/deploy_bases/abc_vla.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/deploy_bases/cosmos3.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/deploy_bases/flexpi.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/deploy_bases/flux3.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/deploy_bases/gr00t_n17.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/deploy_bases/groot_n2.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/deploy_bases/hy_vla.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/deploy_bases/internw0.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/deploy_bases/isaac05.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/deploy_bases/lingbot_vla.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/deploy_bases/long_wam.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/deploy_bases/pi05.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/deploy_bases/praxis1.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/deploy_bases/verne_v05.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/deploy_bases/xr1.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/doctor.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/dreamzero_yam.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/embodiments.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/errors.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/examples/__init__.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/examples/llm_counter.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/examples/xarm7_labels.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/examples/yam_custom.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/examples/yam_trace.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/extras.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/franka.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/guides/yam-async.md +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/guides/yam.md +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/hardware/__init__.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/hardware/camera_sources.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/hardware/cameras.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/hardware/fake.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/hardware/franka_arm.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/hardware/franka_config.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/hardware/franka_doctor.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/hardware/franka_gripper.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/hardware/franka_probe.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/hardware/franka_rig.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/hardware/franka_setup.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/hardware/hy_vla_xarm7.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/hardware/joint_rig.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/hardware/lerobot_so101.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/hardware/openarm_config.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/hardware/openarm_doctor.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/hardware/openarm_home.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/hardware/openarm_rig.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/hardware/openarm_ros.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/hardware/openarm_setup.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/hardware/openarm_stack.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/hardware/ports.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/hardware/protocols.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/hardware/rig.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/hardware/rig_doctor.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/hardware/rig_file.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/hardware/rig_setup.html +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/hardware/rig_setup.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/hardware/robotiq.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/hardware/so101_config.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/hardware/so101_rig.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/hardware/so101_setup.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/hardware/ur_arm.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/hardware/ur_config.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/hardware/ur_doctor.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/hardware/ur_home.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/hardware/ur_rig.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/hardware/ur_robot_api.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/hardware/ur_setup.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/hardware/verne_v05_yam.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/hardware/xarm7_config.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/hardware/xarm7_doctor.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/hardware/xarm7_home.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/hardware/xarm7_kinematics.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/hardware/xarm7_rig.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/hardware/xarm7_setup.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/hardware/xarm_arm.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/hardware/xr1_yam.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/hardware/yam_can.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/hardware/yam_cli_setup.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/hardware/yam_config.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/hardware/yam_doctor.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/hardware/yam_end_effector.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/hardware/yam_hold.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/hardware/yam_home.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/hardware/yam_lifecycle.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/hardware/yam_native.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/hardware/yam_output.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/hardware/yam_rig.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/hardware/yam_setup.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/hardware/yam_sync.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/homing.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/inference.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/integrations/__init__.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/integrations/hud.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/integrations/hud_recorder.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/integrations/hugging_face.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/integrations/inspect_robots.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/integrations/inspect_robots_policy.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/integrations/inspect_robots_recorder.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/integrations/inspect_robots_yam.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/lerobot_dataset.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/libero.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/local_checkpoint.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/model_names.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/models_cmd.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/motion/__init__.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/motion/ensemble.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/motion/limiter.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/motion/safety.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/observation_checks.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/optional.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/policy/__init__.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/policy/abc_vla_deployment.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/policy/calibration_cache.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/policy/cartesian.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/policy/config.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/policy/connection.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/policy/context.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/policy/cosmos3_deployment.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/policy/deployment.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/policy/dreamzero_runtime.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/policy/exported_deployments.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/policy/facade.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/policy/flexpi_deployment.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/policy/flux3_deployment.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/policy/gr00t_n17_deployment.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/policy/groot_n2_deployment.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/policy/hy_vla_deployment.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/policy/internw0_deployment.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/policy/lifecycle.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/policy/lingbot_vla_deployment.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/policy/long_wam_deployment.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/policy/pi05_deployment.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/policy/praxis1_deployment.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/policy/preset_deployment.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/policy/run_loop.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/policy/runtime/__init__.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/policy/runtime/action_space.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/policy/runtime/adaptive_smoothing.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/policy/runtime/calibration.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/policy/runtime/continuation.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/policy/runtime/contract.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/policy/runtime/control.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/policy/runtime/result.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/policy/runtime/rtc.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/policy/runtime/served/__init__.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/policy/runtime/served/droid_robolab.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/policy/runtime/served/flux3_so101.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/policy/runtime/served/groot_libero.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/policy/runtime/served/lerobot.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/policy/runtime/served/pi05_rtc.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/policy/runtime/served/praxis.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/policy/runtime/served/rho.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/policy/runtime/server_report.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/policy/telemetry.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/policy/verne_v05_deployment.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/policy/xr1_deployment.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/quickstart.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/region_choice.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/region_hint.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/region_probe.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/robot.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/sessions.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/sessions_cmd.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/sim/__init__.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/sim/abc.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/sim/abc_catalog.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/sim/abc_process.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/sim/abc_runtime.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/sim/artifacts.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/sim/benchmarks.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/sim/libero_tasks.json +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/sim/metrics.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/sim/molmospaces.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/sim/molmospaces_catalog.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/sim/molmospaces_process.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/sim/molmospaces_runtime.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/sim/native_process.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/sim/native_runtime.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/sim/robocasa365_tasks.json +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/sim/robocasa_process.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/sim/robocasa_runtime.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/sim/roboeval_catalog.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/sim/roboeval_process.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/sim/roboeval_runtime.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/sim/runtime.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/sim/sim_arm.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/sim/stateful.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/sim/task_list.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/sim/timing.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/sim/verne_libero.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/so101.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/so101_kinematics.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/tables.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/terminal.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/trace.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/trace_views.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/train_cmd.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/trainings.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/transport_selection.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/update_check.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/uploads.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/wire.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/dreamscale/yam.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/examples/dreamzero_droid.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/examples/dreamzero_yam.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/examples/franka_inference.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/examples/libero_http.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/examples/libero_rollout.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/examples/so101_flux3.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/examples/so101_isaac.py +0 -0
- {dreamscale-0.1.0a331 → dreamscale-0.1.0a332}/examples/yam_inference.py +0 -0
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.1.0a332 - 2026-11-15
|
|
4
|
+
|
|
5
|
+
- Experimental: `action_smoothing="crossfade"` (`--action-smoothing crossfade` on
|
|
6
|
+
`dreamscale run <robot>`), the test-time smoothing of Flash ALOHA. Over the steps the plan in
|
|
7
|
+
the buffer and a new chunk both cover, the command moves from the old plan to the new chunk
|
|
8
|
+
along a sigmoid, `w = sigmoid((step - window / 2) / sigma)`; after the window the new chunk
|
|
9
|
+
plays as answered. `smoothing_correction_steps` is the window (default 0.4 s of actions: 12
|
|
10
|
+
steps at 30 Hz, never more than the overlap) and the new `smoothing_time_scale` is sigma in
|
|
11
|
+
action steps (default an eighth of the window; `--smoothing-time-scale` on the command line).
|
|
12
|
+
It averages action values, so it takes delta and absolute action spaces alike; it applies to
|
|
13
|
+
async runs with RTC off, and DreamZero's stateful joint control refuses it. `auto` never
|
|
14
|
+
selects it and no default changed. Measured against the stock `output` blend on paired starts
|
|
15
|
+
on dev: better on absolute joint targets replanned every few steps (ABC-VLA on ABC's
|
|
16
|
+
simulator, RTC off: 54 of 60 worlds against 41), worse on LIBERO's relative end-effector
|
|
17
|
+
actions (five models: 88.2% against 90.8%).
|
|
18
|
+
|
|
3
19
|
## 0.1.0a331 - 2026-11-14
|
|
4
20
|
|
|
5
21
|
- `dreamscale train` takes a run's control rate and chunk length: `--input rate=rate.json`
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: dreamscale
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.0a332
|
|
4
4
|
Summary: Cloud robot policy inference — one function call.
|
|
5
5
|
Project-URL: Homepage, https://app.dreamscalelabs.com
|
|
6
6
|
Project-URL: Documentation, https://docs.dreamscalelabs.com
|
|
@@ -88,7 +88,7 @@ Cloud robot policy inference — one function call.
|
|
|
88
88
|
Add Dreamscale to a Python 3.11–3.14 project:
|
|
89
89
|
|
|
90
90
|
```bash
|
|
91
|
-
uv add "dreamscale==0.1.
|
|
91
|
+
uv add "dreamscale==0.1.0a332"
|
|
92
92
|
```
|
|
93
93
|
|
|
94
94
|
Install the CLI as a standalone tool:
|
|
@@ -117,11 +117,11 @@ or 3.13 when a stack needs it.
|
|
|
117
117
|
To add a stack to your own project for use from Python:
|
|
118
118
|
|
|
119
119
|
```bash
|
|
120
|
-
uv add "dreamscale[so101]==0.1.
|
|
121
|
-
uv add "dreamscale[sim]==0.1.
|
|
122
|
-
uv add "dreamscale[dreamzero]==0.1.
|
|
123
|
-
uv add "dreamscale[yam,cameras,realsense]==0.1.
|
|
124
|
-
uv add "dreamscale[hud]==0.1.
|
|
120
|
+
uv add "dreamscale[so101]==0.1.0a332"
|
|
121
|
+
uv add "dreamscale[sim]==0.1.0a332"
|
|
122
|
+
uv add "dreamscale[dreamzero]==0.1.0a332"
|
|
123
|
+
uv add "dreamscale[yam,cameras,realsense]==0.1.0a332"
|
|
124
|
+
uv add "dreamscale[hud]==0.1.0a332"
|
|
125
125
|
```
|
|
126
126
|
|
|
127
127
|
The `dreamzero` extra installs the pinned H.264 codec used automatically by
|
|
@@ -805,6 +805,24 @@ damping for slower intra-chunk arm motion. Their grippers follow incoming target
|
|
|
805
805
|
independently of arm-speed adaptation. See the [YAM async guide](dreamscale/guides/yam-async.md)
|
|
806
806
|
for equations, limits, CLI commands and saved Rerun recordings. `auto` is unchanged.
|
|
807
807
|
|
|
808
|
+
`crossfade` is a third opt-in experimental mode, for any model whose actions can be
|
|
809
|
+
averaged: the test-time smoothing of Flash ALOHA. Over the steps the plan in the buffer
|
|
810
|
+
and a new chunk both cover, the command moves from the old plan to the new chunk along a
|
|
811
|
+
sigmoid, `w = sigmoid((step - window / 2) / sigma)`, and after the window the new chunk
|
|
812
|
+
plays as answered:
|
|
813
|
+
|
|
814
|
+
```python
|
|
815
|
+
strategy = dreamscale.RunStrategy(action_smoothing="crossfade")
|
|
816
|
+
```
|
|
817
|
+
|
|
818
|
+
The window is `smoothing_correction_steps` (default 0.4 s of actions: 12 steps at 30 Hz,
|
|
819
|
+
never more than the overlap) and sigma is `smoothing_time_scale` in action steps (default
|
|
820
|
+
an eighth of the window). On the command line: `--action-smoothing crossfade`. It applies
|
|
821
|
+
to async runs with RTC off, as every mode here does. Measured against `output` on paired
|
|
822
|
+
starts, it did better on absolute joint targets replanned every few steps (ABC-VLA on
|
|
823
|
+
ABC's simulator: 54 of 60 worlds against 41) and worse on LIBERO's relative end-effector
|
|
824
|
+
actions (five models: 88.2% against 90.8%), so `auto` never selects it.
|
|
825
|
+
|
|
808
826
|
Returned actions remain aligned to their original logical timesteps. Expired
|
|
809
827
|
prefix steps are skipped, and a chunk that is entirely stale is discarded; it
|
|
810
828
|
is never shifted forward and replayed. With eager inference, a predicted action
|
|
@@ -12,7 +12,7 @@ Cloud robot policy inference — one function call.
|
|
|
12
12
|
Add Dreamscale to a Python 3.11–3.14 project:
|
|
13
13
|
|
|
14
14
|
```bash
|
|
15
|
-
uv add "dreamscale==0.1.
|
|
15
|
+
uv add "dreamscale==0.1.0a332"
|
|
16
16
|
```
|
|
17
17
|
|
|
18
18
|
Install the CLI as a standalone tool:
|
|
@@ -41,11 +41,11 @@ or 3.13 when a stack needs it.
|
|
|
41
41
|
To add a stack to your own project for use from Python:
|
|
42
42
|
|
|
43
43
|
```bash
|
|
44
|
-
uv add "dreamscale[so101]==0.1.
|
|
45
|
-
uv add "dreamscale[sim]==0.1.
|
|
46
|
-
uv add "dreamscale[dreamzero]==0.1.
|
|
47
|
-
uv add "dreamscale[yam,cameras,realsense]==0.1.
|
|
48
|
-
uv add "dreamscale[hud]==0.1.
|
|
44
|
+
uv add "dreamscale[so101]==0.1.0a332"
|
|
45
|
+
uv add "dreamscale[sim]==0.1.0a332"
|
|
46
|
+
uv add "dreamscale[dreamzero]==0.1.0a332"
|
|
47
|
+
uv add "dreamscale[yam,cameras,realsense]==0.1.0a332"
|
|
48
|
+
uv add "dreamscale[hud]==0.1.0a332"
|
|
49
49
|
```
|
|
50
50
|
|
|
51
51
|
The `dreamzero` extra installs the pinned H.264 codec used automatically by
|
|
@@ -729,6 +729,24 @@ damping for slower intra-chunk arm motion. Their grippers follow incoming target
|
|
|
729
729
|
independently of arm-speed adaptation. See the [YAM async guide](dreamscale/guides/yam-async.md)
|
|
730
730
|
for equations, limits, CLI commands and saved Rerun recordings. `auto` is unchanged.
|
|
731
731
|
|
|
732
|
+
`crossfade` is a third opt-in experimental mode, for any model whose actions can be
|
|
733
|
+
averaged: the test-time smoothing of Flash ALOHA. Over the steps the plan in the buffer
|
|
734
|
+
and a new chunk both cover, the command moves from the old plan to the new chunk along a
|
|
735
|
+
sigmoid, `w = sigmoid((step - window / 2) / sigma)`, and after the window the new chunk
|
|
736
|
+
plays as answered:
|
|
737
|
+
|
|
738
|
+
```python
|
|
739
|
+
strategy = dreamscale.RunStrategy(action_smoothing="crossfade")
|
|
740
|
+
```
|
|
741
|
+
|
|
742
|
+
The window is `smoothing_correction_steps` (default 0.4 s of actions: 12 steps at 30 Hz,
|
|
743
|
+
never more than the overlap) and sigma is `smoothing_time_scale` in action steps (default
|
|
744
|
+
an eighth of the window). On the command line: `--action-smoothing crossfade`. It applies
|
|
745
|
+
to async runs with RTC off, as every mode here does. Measured against `output` on paired
|
|
746
|
+
starts, it did better on absolute joint targets replanned every few steps (ABC-VLA on
|
|
747
|
+
ABC's simulator: 54 of 60 worlds against 41) and worse on LIBERO's relative end-effector
|
|
748
|
+
actions (five models: 88.2% against 90.8%), so `auto` never selects it.
|
|
749
|
+
|
|
732
750
|
Returned actions remain aligned to their original logical timesteps. Expired
|
|
733
751
|
prefix steps are skipped, and a chunk that is entirely stale is discarded; it
|
|
734
752
|
is never shifted forward and replayed. With eager inference, a predicted action
|
|
@@ -134,6 +134,7 @@ def validate_run_options(
|
|
|
134
134
|
model, *, label, mode, region, provider, speed, keep_warm, rtc, context, max_actions,
|
|
135
135
|
trace_dir, trace_images, action_smoothing="auto", smoothing_new_weight=None,
|
|
136
136
|
smoothing_correction_steps=None, smoothing_reference_speed=None,
|
|
137
|
+
smoothing_time_scale=None,
|
|
137
138
|
):
|
|
138
139
|
"""Check every robot-neutral option before any hardware opens; returns the strategy."""
|
|
139
140
|
contract = model_contract(model)
|
|
@@ -144,6 +145,7 @@ def validate_run_options(
|
|
|
144
145
|
smoothing_new_weight=smoothing_new_weight,
|
|
145
146
|
smoothing_correction_steps=smoothing_correction_steps,
|
|
146
147
|
smoothing_reference_speed=smoothing_reference_speed,
|
|
148
|
+
smoothing_time_scale=smoothing_time_scale,
|
|
147
149
|
)
|
|
148
150
|
task_mode(model, mode, strategy)
|
|
149
151
|
if trace_images and trace_dir is None:
|
|
@@ -39,6 +39,7 @@ def validate_mode(mode, strategy):
|
|
|
39
39
|
or strategy.smoothing_new_weight is not None
|
|
40
40
|
or strategy.smoothing_correction_steps is not None
|
|
41
41
|
or strategy.smoothing_reference_speed is not None
|
|
42
|
+
or strategy.smoothing_time_scale is not None
|
|
42
43
|
):
|
|
43
44
|
raise ValueError("Sync executes raw chunks; smoothing options require --mode async.")
|
|
44
45
|
|
|
@@ -194,7 +194,8 @@ def _action_smoothing_option():
|
|
|
194
194
|
return typer.Option(
|
|
195
195
|
"auto",
|
|
196
196
|
"--action-smoothing",
|
|
197
|
-
help="Chunk joining for async with RTC off: auto, continuation, motion or
|
|
197
|
+
help="Chunk joining for async with RTC off: auto, continuation, motion, output or "
|
|
198
|
+
"crossfade (experimental).",
|
|
198
199
|
)
|
|
199
200
|
|
|
200
201
|
|
|
@@ -208,7 +209,19 @@ def _smoothing_correction_steps_option():
|
|
|
208
209
|
"--smoothing-correction-steps",
|
|
209
210
|
min=1,
|
|
210
211
|
hidden=True,
|
|
211
|
-
help="Motion: recurring correction gain. Handover: maximum duration in ticks."
|
|
212
|
+
help="Motion: recurring correction gain. Handover: maximum duration in ticks. "
|
|
213
|
+
"Crossfade: window in action steps.",
|
|
214
|
+
)
|
|
215
|
+
|
|
216
|
+
|
|
217
|
+
def _smoothing_time_scale_option():
|
|
218
|
+
return typer.Option(
|
|
219
|
+
None,
|
|
220
|
+
"--smoothing-time-scale",
|
|
221
|
+
min=0.000001,
|
|
222
|
+
hidden=True,
|
|
223
|
+
help="Experimental crossfade: the sigmoid's time scale in action steps (default: an "
|
|
224
|
+
"eighth of the window).",
|
|
212
225
|
)
|
|
213
226
|
|
|
214
227
|
|
|
@@ -259,7 +272,8 @@ def _max_cost_option():
|
|
|
259
272
|
_POLICY_OPTIONS = (
|
|
260
273
|
"mode", "max_actions", "keep_warm", "region", "provider", "rtc", "checkpoint", "context",
|
|
261
274
|
"action_smoothing", "smoothing_new_weight", "smoothing_correction_steps",
|
|
262
|
-
"smoothing_reference_speed", "
|
|
275
|
+
"smoothing_reference_speed", "smoothing_time_scale", "trace_dir", "trace_images", "hud",
|
|
276
|
+
"hud_job",
|
|
263
277
|
"steady_send", "steady_send_ms", "engine",
|
|
264
278
|
)
|
|
265
279
|
|
|
@@ -2336,6 +2350,7 @@ def _robot_run_command(embodiment):
|
|
|
2336
2350
|
("smoothing_new_weight", float | None, _smoothing_new_weight_option()),
|
|
2337
2351
|
("smoothing_correction_steps", int | None, _smoothing_correction_steps_option()),
|
|
2338
2352
|
("smoothing_reference_speed", float | None, _smoothing_reference_speed_option()),
|
|
2353
|
+
("smoothing_time_scale", float | None, _smoothing_time_scale_option()),
|
|
2339
2354
|
("trace_dir", Annotated[Path | None, _trace_dir_option()], None),
|
|
2340
2355
|
("trace_images", bool, _trace_images_option()),
|
|
2341
2356
|
("hud", bool, _hud_options()[0]),
|
|
@@ -295,7 +295,7 @@ def replace_aligned_chunk(
|
|
|
295
295
|
) -> ChunkReplacement:
|
|
296
296
|
if commit_prefix_steps not in (1, 2):
|
|
297
297
|
raise ValueError("commit_prefix_steps must be 1 or 2")
|
|
298
|
-
if smoothing is not None and smoothing.mode
|
|
298
|
+
if smoothing is not None and smoothing.mode in ("output", "crossfade"):
|
|
299
299
|
raise ValueError("DreamZero aligned replacement requires joint motion smoothing")
|
|
300
300
|
base = int(source_action_step) + 1
|
|
301
301
|
last = base + len(actions) - 1
|
|
@@ -76,6 +76,7 @@ def run_franka(
|
|
|
76
76
|
smoothing_new_weight=None,
|
|
77
77
|
smoothing_correction_steps=None,
|
|
78
78
|
smoothing_reference_speed=None,
|
|
79
|
+
smoothing_time_scale=None,
|
|
79
80
|
trace_dir=None,
|
|
80
81
|
trace_images=False,
|
|
81
82
|
hud=False,
|
|
@@ -101,6 +102,7 @@ def run_franka(
|
|
|
101
102
|
smoothing_new_weight=smoothing_new_weight,
|
|
102
103
|
smoothing_correction_steps=smoothing_correction_steps,
|
|
103
104
|
smoothing_reference_speed=smoothing_reference_speed,
|
|
105
|
+
smoothing_time_scale=smoothing_time_scale,
|
|
104
106
|
)
|
|
105
107
|
resolve_action_smoothing(strategy, contract)
|
|
106
108
|
config = load_config(config_path).validate(complete=True)
|
|
@@ -123,6 +123,7 @@ def run_openarm(
|
|
|
123
123
|
smoothing_new_weight=None,
|
|
124
124
|
smoothing_correction_steps=None,
|
|
125
125
|
smoothing_reference_speed=None,
|
|
126
|
+
smoothing_time_scale=None,
|
|
126
127
|
trace_dir=None,
|
|
127
128
|
trace_images=False,
|
|
128
129
|
hud=False,
|
|
@@ -148,6 +149,7 @@ def run_openarm(
|
|
|
148
149
|
smoothing_new_weight=smoothing_new_weight,
|
|
149
150
|
smoothing_correction_steps=smoothing_correction_steps,
|
|
150
151
|
smoothing_reference_speed=smoothing_reference_speed,
|
|
152
|
+
smoothing_time_scale=smoothing_time_scale,
|
|
151
153
|
)
|
|
152
154
|
resolve_action_smoothing(strategy, contract)
|
|
153
155
|
config = load_config(config_path).validate(complete=True)
|
|
@@ -96,6 +96,7 @@ def run_ur(
|
|
|
96
96
|
smoothing_new_weight=None,
|
|
97
97
|
smoothing_correction_steps=None,
|
|
98
98
|
smoothing_reference_speed=None,
|
|
99
|
+
smoothing_time_scale=None,
|
|
99
100
|
trace_dir=None,
|
|
100
101
|
trace_images=False,
|
|
101
102
|
hud=False,
|
|
@@ -121,6 +122,7 @@ def run_ur(
|
|
|
121
122
|
smoothing_new_weight=smoothing_new_weight,
|
|
122
123
|
smoothing_correction_steps=smoothing_correction_steps,
|
|
123
124
|
smoothing_reference_speed=smoothing_reference_speed,
|
|
125
|
+
smoothing_time_scale=smoothing_time_scale,
|
|
124
126
|
)
|
|
125
127
|
resolve_action_smoothing(strategy, contract)
|
|
126
128
|
config = load_config(config_path).validate(complete=True)
|
|
@@ -149,6 +149,7 @@ def run_xarm7(
|
|
|
149
149
|
smoothing_new_weight=None,
|
|
150
150
|
smoothing_correction_steps=None,
|
|
151
151
|
smoothing_reference_speed=None,
|
|
152
|
+
smoothing_time_scale=None,
|
|
152
153
|
trace_dir=None,
|
|
153
154
|
trace_images=False,
|
|
154
155
|
hud=False,
|
|
@@ -174,6 +175,7 @@ def run_xarm7(
|
|
|
174
175
|
smoothing_new_weight=smoothing_new_weight,
|
|
175
176
|
smoothing_correction_steps=smoothing_correction_steps,
|
|
176
177
|
smoothing_reference_speed=smoothing_reference_speed,
|
|
178
|
+
smoothing_time_scale=smoothing_time_scale,
|
|
177
179
|
)
|
|
178
180
|
resolve_action_smoothing(strategy, contract)
|
|
179
181
|
config = load_config(config_path).validate(complete=True)
|
|
@@ -303,6 +303,7 @@ def run_yam(
|
|
|
303
303
|
smoothing_new_weight=None,
|
|
304
304
|
smoothing_correction_steps=None,
|
|
305
305
|
smoothing_reference_speed=None,
|
|
306
|
+
smoothing_time_scale=None,
|
|
306
307
|
trace_dir=None,
|
|
307
308
|
trace_images=False,
|
|
308
309
|
hud=False,
|
|
@@ -330,6 +331,7 @@ def run_yam(
|
|
|
330
331
|
smoothing_new_weight=smoothing_new_weight,
|
|
331
332
|
smoothing_correction_steps=smoothing_correction_steps,
|
|
332
333
|
smoothing_reference_speed=smoothing_reference_speed,
|
|
334
|
+
smoothing_time_scale=smoothing_time_scale,
|
|
333
335
|
)
|
|
334
336
|
if model not in _END_EFFECTOR_BINDINGS:
|
|
335
337
|
resolve_action_smoothing(strategy, contract)
|
|
@@ -1707,13 +1707,14 @@ def _validate_dreamzero_strategy(
|
|
|
1707
1707
|
sampling = resolve_dreamzero_sampling(model, strategy.dreamzero_sampling)
|
|
1708
1708
|
if contract.joint_groups and sampling != "upstream_eval":
|
|
1709
1709
|
smoothing = resolve_action_smoothing(strategy, contract)
|
|
1710
|
-
if smoothing.mode
|
|
1710
|
+
if smoothing.mode in ("output", "crossfade"):
|
|
1711
1711
|
raise ValueError("stateful joint control requires motion smoothing")
|
|
1712
1712
|
elif (
|
|
1713
1713
|
strategy.action_smoothing != "auto"
|
|
1714
1714
|
or strategy.smoothing_new_weight is not None
|
|
1715
1715
|
or strategy.smoothing_correction_steps is not None
|
|
1716
1716
|
or strategy.smoothing_reference_speed is not None
|
|
1717
|
+
or strategy.smoothing_time_scale is not None
|
|
1717
1718
|
):
|
|
1718
1719
|
raise ValueError(f"{public_model(model)} action smoothing is not supported for {sampling}")
|
|
1719
1720
|
return replace(
|
|
@@ -12,6 +12,7 @@ from dreamscale.policy.runtime.action_smoothing import (
|
|
|
12
12
|
)
|
|
13
13
|
from dreamscale.policy.runtime.adaptive_smoothing import resolve_adaptive_smoothing
|
|
14
14
|
from dreamscale.policy.runtime.continuation import continue_motion
|
|
15
|
+
from dreamscale.policy.runtime.crossfade import resolve_crossfade
|
|
15
16
|
|
|
16
17
|
Action = tuple[float, ...]
|
|
17
18
|
|
|
@@ -247,6 +248,42 @@ class ActionBuffer:
|
|
|
247
248
|
}
|
|
248
249
|
if smoothing.correction_steps is None:
|
|
249
250
|
raise AssertionError("motion smoothing requires correction steps")
|
|
251
|
+
if smoothing.mode == "crossfade":
|
|
252
|
+
crossed = resolve_crossfade(
|
|
253
|
+
next_action_step=self._next_action_step,
|
|
254
|
+
action_steps=action_steps,
|
|
255
|
+
new_actions=actions,
|
|
256
|
+
existing_actions=existing_actions,
|
|
257
|
+
window=smoothing.correction_steps,
|
|
258
|
+
time_scale=smoothing.time_scale,
|
|
259
|
+
normalized_gripper_indices=smoothing.normalized_gripper_indices,
|
|
260
|
+
)
|
|
261
|
+
next_actions = {
|
|
262
|
+
step: item
|
|
263
|
+
for step, item in self._actions.items()
|
|
264
|
+
if self._next_action_step <= step < base
|
|
265
|
+
}
|
|
266
|
+
sources = dict(zip(action_steps, map(_as_action, actions), strict=True))
|
|
267
|
+
next_actions.update({
|
|
268
|
+
step: _BufferedAction(action=action, source_action=sources[step])
|
|
269
|
+
for step, action in crossed.actions.items()
|
|
270
|
+
})
|
|
271
|
+
self._actions = next_actions
|
|
272
|
+
return {
|
|
273
|
+
"requested_mode": smoothing.requested_mode,
|
|
274
|
+
"resolved_mode": smoothing.mode,
|
|
275
|
+
"new_action_weight": None,
|
|
276
|
+
# The window asked for; transition_steps is the window used.
|
|
277
|
+
"correction_steps": smoothing.correction_steps,
|
|
278
|
+
"stale_steps": stale_steps,
|
|
279
|
+
"overlap_steps": crossed.overlap_steps,
|
|
280
|
+
"resolved_steps": len(crossed.actions),
|
|
281
|
+
"rebase_offset_steps": 0,
|
|
282
|
+
"first_executable_source_offset": crossed.first_executable_source_offset,
|
|
283
|
+
"max_abs_position_revision": crossed.max_abs_position_revision,
|
|
284
|
+
"transition_steps": crossed.transition_steps,
|
|
285
|
+
"time_scale": crossed.time_scale,
|
|
286
|
+
}
|
|
250
287
|
inputs = dict(
|
|
251
288
|
next_action_step=self._next_action_step,
|
|
252
289
|
action_steps=action_steps,
|
|
@@ -11,11 +11,16 @@ from dreamscale.policy.types import ActionSmoothingMode, RunStrategy
|
|
|
11
11
|
|
|
12
12
|
Action = tuple[float, ...]
|
|
13
13
|
|
|
14
|
+
# The experimental crossfade's default window, in seconds of actions.
|
|
15
|
+
CROSSFADE_WINDOW_S = 0.4
|
|
16
|
+
|
|
14
17
|
|
|
15
18
|
@dataclass(frozen=True)
|
|
16
19
|
class ResolvedActionSmoothing:
|
|
17
20
|
requested_mode: ActionSmoothingMode
|
|
18
|
-
mode: Literal[
|
|
21
|
+
mode: Literal[
|
|
22
|
+
"output", "motion", "motion_handover", "motion_speed", "continuation", "crossfade"
|
|
23
|
+
]
|
|
19
24
|
new_weight: float
|
|
20
25
|
correction_steps: int | None
|
|
21
26
|
normalized_gripper_indices: tuple[int, ...] = ()
|
|
@@ -23,6 +28,8 @@ class ResolvedActionSmoothing:
|
|
|
23
28
|
reference_speed: float = 1.0
|
|
24
29
|
joint_groups: tuple[tuple[int, ...], ...] = ()
|
|
25
30
|
gripper_indices: tuple[int, ...] = ()
|
|
31
|
+
# crossfade: the sigmoid's time scale in action steps (None: an eighth of the window).
|
|
32
|
+
time_scale: float | None = None
|
|
26
33
|
|
|
27
34
|
|
|
28
35
|
@dataclass(frozen=True)
|
|
@@ -36,6 +43,7 @@ class SmoothingResolution:
|
|
|
36
43
|
effective_new_weight: float | None = None
|
|
37
44
|
correction_gain: float | None = None
|
|
38
45
|
correction_rate_ratio: float | None = None
|
|
46
|
+
time_scale: float | None = None
|
|
39
47
|
|
|
40
48
|
|
|
41
49
|
def resolve_action_smoothing(
|
|
@@ -53,14 +61,17 @@ def resolve_action_smoothing(
|
|
|
53
61
|
mode = (own or "motion") if absolute_action_space else "output"
|
|
54
62
|
else:
|
|
55
63
|
mode = requested_mode
|
|
56
|
-
|
|
64
|
+
# A crossfade averages action values, as output does, so it needs no joint targets.
|
|
65
|
+
if mode not in ("output", "crossfade") and not absolute_action_space:
|
|
57
66
|
raise ValueError(
|
|
58
67
|
"action smoothing mode 'motion' requires "
|
|
59
68
|
"action_space='absolute_joint_position' or 'raw_absolute_joint'; "
|
|
60
69
|
f"resolved action space is {contract.action_space!r}"
|
|
61
70
|
)
|
|
62
71
|
if mode == "output" and strategy.smoothing_correction_steps is not None:
|
|
63
|
-
raise ValueError(
|
|
72
|
+
raise ValueError(
|
|
73
|
+
"smoothing_correction_steps requires action smoothing mode 'motion' or 'crossfade'"
|
|
74
|
+
)
|
|
64
75
|
adaptive = mode in {"motion_handover", "motion_speed"}
|
|
65
76
|
if adaptive and not (
|
|
66
77
|
contract.joint_groups and contract.joint_unit == "rad" and absolute_action_space
|
|
@@ -75,6 +86,12 @@ def resolve_action_smoothing(
|
|
|
75
86
|
or strategy.smoothing_correction_steps is not None
|
|
76
87
|
):
|
|
77
88
|
raise ValueError("continuation takes no smoothing_new_weight or correction steps")
|
|
89
|
+
if mode == "crossfade" and contract.action_space == "model_defined":
|
|
90
|
+
raise ValueError("crossfade averages action values; a model-defined space has none")
|
|
91
|
+
if mode == "crossfade" and strategy.smoothing_new_weight is not None:
|
|
92
|
+
raise ValueError("crossfade takes no smoothing_new_weight: its sigmoid sets the weight")
|
|
93
|
+
if strategy.smoothing_time_scale is not None and mode != "crossfade":
|
|
94
|
+
raise ValueError("smoothing_time_scale requires action smoothing mode 'crossfade'")
|
|
78
95
|
if strategy.smoothing_reference_speed is not None and not adaptive:
|
|
79
96
|
raise ValueError("smoothing_reference_speed requires an adaptive smoothing mode")
|
|
80
97
|
if mode == "motion_handover" and strategy.smoothing_new_weight is not None:
|
|
@@ -87,6 +104,10 @@ def resolve_action_smoothing(
|
|
|
87
104
|
if new_weight is None:
|
|
88
105
|
new_weight = 0.7 if mode == "output" else 0.85
|
|
89
106
|
correction_steps = strategy.smoothing_correction_steps
|
|
107
|
+
if mode == "crossfade" and correction_steps is None:
|
|
108
|
+
# CROSSFADE_WINDOW_S of actions at the run's rate (12 steps at 30 Hz); the merge caps it
|
|
109
|
+
# at the steps both plans cover.
|
|
110
|
+
correction_steps = max(3, round(CROSSFADE_WINDOW_S * contract.action_hz))
|
|
90
111
|
if mode not in ("output", "continuation") and correction_steps is None:
|
|
91
112
|
correction_steps = max(3, (contract.execution_chunk_size + 4) // 5)
|
|
92
113
|
return ResolvedActionSmoothing(
|
|
@@ -99,6 +120,7 @@ def resolve_action_smoothing(
|
|
|
99
120
|
reference_speed=strategy.smoothing_reference_speed or 1.0,
|
|
100
121
|
joint_groups=contract.joint_groups,
|
|
101
122
|
gripper_indices=contract.gripper_indices,
|
|
123
|
+
time_scale=strategy.smoothing_time_scale,
|
|
102
124
|
)
|
|
103
125
|
|
|
104
126
|
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
"""Experimental: test-time smoothing as Flash ALOHA describes it, a sigmoid crossfade of two plans.
|
|
2
|
+
|
|
3
|
+
"Flash ALOHA: Learning Fast and Precise Manipulation" (Yao, Wu, Gao, Finn, Fu; section IV,
|
|
4
|
+
Fig. 5): over the ``H`` steps an earlier chunk ``q1`` and a later chunk ``q2`` both cover, the
|
|
5
|
+
command is
|
|
6
|
+
|
|
7
|
+
a(t') = (1 - w(t')) q1(t') + w(t') q2(t'), w(t') = sigmoid((t' - t0 - H / 2) / sigma)
|
|
8
|
+
|
|
9
|
+
where ``t0`` is the first step of the overlap. Outside it, each chunk plays as predicted. ``H``
|
|
10
|
+
(the window) and ``sigma`` (the time scale, in action steps) set how late and how sharply the
|
|
11
|
+
robot turns to the newer chunk. The paper publishes neither value.
|
|
12
|
+
|
|
13
|
+
How it sits in this runtime:
|
|
14
|
+
|
|
15
|
+
- **The earlier chunk is the plan in the buffer.** Under frequent replanning that plan is itself
|
|
16
|
+
a crossfade of older chunks, and the rows a robot executes are the early rows of each window,
|
|
17
|
+
where the weight is still low: a change of plan takes most of a window to reach the robot.
|
|
18
|
+
- **The window starts at the first step still due** when the chunk is merged. It is at most
|
|
19
|
+
``window`` steps and at most the steps both plans cover. Where the old plan runs further than
|
|
20
|
+
the window, the new chunk plays as answered after it.
|
|
21
|
+
- **The paper's action lookahead** (skip the first n actions of a chunk) is the buffer's own
|
|
22
|
+
alignment: rows whose step has passed are dropped before the crossfade.
|
|
23
|
+
- **With no window given, it is 0.4 s of actions** at the run's rate (12 steps at 30 Hz), the
|
|
24
|
+
setting that did best where this mode helped (below).
|
|
25
|
+
- **With no time scale given, sigma is an eighth of the window used**, so the weight starts at
|
|
26
|
+
about 2% new and a crossfade over a short overlap still completes. A given time scale is used
|
|
27
|
+
as it is.
|
|
28
|
+
|
|
29
|
+
Every command lies between the two plans' targets for its step, so the crossfade never overshoots
|
|
30
|
+
either of them and normalized grippers stay in range. It does not look at the executed commands:
|
|
31
|
+
a chunk that arrives with no plan left to cross from (the first of a run, or after an underrun)
|
|
32
|
+
plays as the model answered.
|
|
33
|
+
|
|
34
|
+
What it measured against the stock ``output`` blend (dev, 2026-11-13, paired starts): better on
|
|
35
|
+
absolute joint targets replanned every few steps (ABC-VLA on ABC's simulator, RTC off: 54 of 60
|
|
36
|
+
worlds against 41 with a 12-step window, 47 with a 4-step one), worse on relative end-effector
|
|
37
|
+
actions replanned once per half chunk (five LIBERO models: 88.2% against 90.8% with a 3-4 step
|
|
38
|
+
window, 83.8% with the whole overlap). It is opt-in for that reason: ``auto`` never picks it.
|
|
39
|
+
"""
|
|
40
|
+
|
|
41
|
+
from __future__ import annotations
|
|
42
|
+
|
|
43
|
+
from collections.abc import Mapping, Sequence
|
|
44
|
+
from math import exp, isfinite
|
|
45
|
+
from numbers import Integral, Real
|
|
46
|
+
|
|
47
|
+
from .action_smoothing import (
|
|
48
|
+
Action,
|
|
49
|
+
SmoothingResolution,
|
|
50
|
+
_max_abs_difference,
|
|
51
|
+
_validated_inputs,
|
|
52
|
+
validate_normalized_grippers,
|
|
53
|
+
)
|
|
54
|
+
|
|
55
|
+
# sigma = window / SIGMA_PER_WINDOW when none is given: sigmoid(-4) = 1.8% new on the first step.
|
|
56
|
+
SIGMA_PER_WINDOW = 8.0
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
def crossfade_weight(position: int, window: int, time_scale: float) -> float:
|
|
60
|
+
"""The newer chunk's weight ``position`` steps into a ``window``-step overlap."""
|
|
61
|
+
x = (position - window / 2.0) / time_scale
|
|
62
|
+
# exp(-x) overflows for a very small time scale; the weight there is 0 or 1.
|
|
63
|
+
if x <= -700.0:
|
|
64
|
+
return 0.0
|
|
65
|
+
return 1.0 / (1.0 + exp(-x))
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
def resolve_crossfade(
|
|
69
|
+
*,
|
|
70
|
+
next_action_step: int,
|
|
71
|
+
action_steps: Sequence[int],
|
|
72
|
+
new_actions: Sequence[Sequence[float]],
|
|
73
|
+
existing_actions: Mapping[int, Sequence[float]],
|
|
74
|
+
window: int,
|
|
75
|
+
time_scale: float | None = None,
|
|
76
|
+
normalized_gripper_indices: tuple[int, ...] = (),
|
|
77
|
+
) -> SmoothingResolution:
|
|
78
|
+
"""The rows of ``new_actions`` from ``next_action_step`` on, crossed over from the plan in
|
|
79
|
+
``existing_actions`` during the first ``window`` steps both cover."""
|
|
80
|
+
if isinstance(window, bool) or not isinstance(window, Integral) or window < 1:
|
|
81
|
+
raise ValueError("crossfade window must be a positive integer")
|
|
82
|
+
if time_scale is not None and (
|
|
83
|
+
isinstance(time_scale, bool)
|
|
84
|
+
or not isinstance(time_scale, Real)
|
|
85
|
+
or not isfinite(time_scale)
|
|
86
|
+
or time_scale <= 0
|
|
87
|
+
):
|
|
88
|
+
raise ValueError("crossfade time scale must be finite and positive")
|
|
89
|
+
steps, newest, existing, _ = _validated_inputs(
|
|
90
|
+
action_steps=action_steps,
|
|
91
|
+
new_actions=new_actions,
|
|
92
|
+
existing_actions=existing_actions,
|
|
93
|
+
executed_history=(),
|
|
94
|
+
)
|
|
95
|
+
for values in (*newest, *existing.values()):
|
|
96
|
+
validate_normalized_grippers(values, normalized_gripper_indices)
|
|
97
|
+
first = int(next_action_step)
|
|
98
|
+
executable = [
|
|
99
|
+
(offset, step, newest[offset]) for offset, step in enumerate(steps) if step >= first
|
|
100
|
+
]
|
|
101
|
+
shared = [step for _, step, _ in executable if step in existing]
|
|
102
|
+
if not shared:
|
|
103
|
+
return SmoothingResolution(
|
|
104
|
+
actions={step: action for _, step, action in executable},
|
|
105
|
+
overlap_steps=0,
|
|
106
|
+
max_abs_position_revision=0.0,
|
|
107
|
+
first_executable_source_offset=executable[0][0] if executable else None,
|
|
108
|
+
transition_steps=0,
|
|
109
|
+
)
|
|
110
|
+
start = shared[0]
|
|
111
|
+
used = min(int(window), shared[-1] - start + 1)
|
|
112
|
+
sigma = float(time_scale) if time_scale is not None else used / SIGMA_PER_WINDOW
|
|
113
|
+
resolved: dict[int, Action] = {}
|
|
114
|
+
revision = 0.0
|
|
115
|
+
for _, step, new_action in executable:
|
|
116
|
+
old_action = existing.get(step)
|
|
117
|
+
if old_action is None or step - start >= used:
|
|
118
|
+
action = new_action
|
|
119
|
+
else:
|
|
120
|
+
weight = crossfade_weight(step - start, used, sigma)
|
|
121
|
+
action = tuple(
|
|
122
|
+
(1.0 - weight) * old + weight * new
|
|
123
|
+
for old, new in zip(old_action, new_action, strict=True)
|
|
124
|
+
)
|
|
125
|
+
if old_action is not None:
|
|
126
|
+
revision = max(revision, _max_abs_difference(old_action, action))
|
|
127
|
+
resolved[step] = action
|
|
128
|
+
return SmoothingResolution(
|
|
129
|
+
actions=resolved,
|
|
130
|
+
overlap_steps=len(shared),
|
|
131
|
+
max_abs_position_revision=revision,
|
|
132
|
+
first_executable_source_offset=executable[0][0],
|
|
133
|
+
transition_steps=used,
|
|
134
|
+
time_scale=sigma,
|
|
135
|
+
)
|
|
@@ -62,7 +62,10 @@ BufferHealth = TypeAliasType(
|
|
|
62
62
|
)
|
|
63
63
|
ActionSmoothingMode = TypeAliasType(
|
|
64
64
|
"ActionSmoothingMode",
|
|
65
|
-
Literal[
|
|
65
|
+
Literal[
|
|
66
|
+
"auto", "output", "motion", "motion_handover", "motion_speed", "continuation",
|
|
67
|
+
"crossfade",
|
|
68
|
+
],
|
|
66
69
|
)
|
|
67
70
|
RunMode = TypeAliasType("RunMode", Literal["async", "sync"])
|
|
68
71
|
SamplingMode = TypeAliasType(
|
|
@@ -171,6 +174,9 @@ class RunStrategy:
|
|
|
171
174
|
smoothing_new_weight: float | None = None
|
|
172
175
|
smoothing_correction_steps: int | None = None
|
|
173
176
|
smoothing_reference_speed: float | None = None
|
|
177
|
+
# Experimental "crossfade" only: the sigmoid's time scale in action steps (its window is
|
|
178
|
+
# smoothing_correction_steps). None: an eighth of the window.
|
|
179
|
+
smoothing_time_scale: float | None = None
|
|
174
180
|
dreamzero_sampling: SamplingMode | None = None
|
|
175
181
|
dreamzero_commit_prefix_steps: Literal[1, 2] = 2
|
|
176
182
|
# "async" asks for the next chunk while rows remain and joins it to the plan; "sync" runs
|
|
@@ -196,6 +202,7 @@ class RunStrategy:
|
|
|
196
202
|
"motion_handover",
|
|
197
203
|
"motion_speed",
|
|
198
204
|
"continuation",
|
|
205
|
+
"crossfade",
|
|
199
206
|
}:
|
|
200
207
|
raise ValueError(
|
|
201
208
|
f"unknown action smoothing mode: {self.action_smoothing!r}"
|
|
@@ -235,6 +242,17 @@ class RunStrategy:
|
|
|
235
242
|
if not isfinite(value) or value <= 0:
|
|
236
243
|
raise ValueError("smoothing_reference_speed must be finite and positive")
|
|
237
244
|
object.__setattr__(self, "smoothing_reference_speed", value)
|
|
245
|
+
if self.smoothing_time_scale is not None:
|
|
246
|
+
value = self.smoothing_time_scale
|
|
247
|
+
if isinstance(value, bool) or not isinstance(value, Real):
|
|
248
|
+
raise ValueError("smoothing_time_scale must be finite and positive")
|
|
249
|
+
try:
|
|
250
|
+
value = float(value)
|
|
251
|
+
except (ValueError, OverflowError) as exc:
|
|
252
|
+
raise ValueError("smoothing_time_scale must be finite and positive") from exc
|
|
253
|
+
if not isfinite(value) or value <= 0:
|
|
254
|
+
raise ValueError("smoothing_time_scale must be finite and positive")
|
|
255
|
+
object.__setattr__(self, "smoothing_time_scale", value)
|
|
238
256
|
|
|
239
257
|
@classmethod
|
|
240
258
|
def realtime(cls) -> RunStrategy:
|
|
@@ -152,6 +152,7 @@ def run_so101(
|
|
|
152
152
|
smoothing_new_weight: float | None = None,
|
|
153
153
|
smoothing_correction_steps: int | None = None,
|
|
154
154
|
smoothing_reference_speed: float | None = None,
|
|
155
|
+
smoothing_time_scale: float | None = None,
|
|
155
156
|
trace_dir=None,
|
|
156
157
|
trace_images: bool = False,
|
|
157
158
|
hud: bool = False,
|
|
@@ -182,6 +183,7 @@ def run_so101(
|
|
|
182
183
|
smoothing_new_weight=smoothing_new_weight,
|
|
183
184
|
smoothing_correction_steps=smoothing_correction_steps,
|
|
184
185
|
smoothing_reference_speed=smoothing_reference_speed,
|
|
186
|
+
smoothing_time_scale=smoothing_time_scale,
|
|
185
187
|
)
|
|
186
188
|
resolve_action_smoothing(strategy, contract)
|
|
187
189
|
from dreamscale.homing import _valid_pose
|