MCPcopy Create free account

hub / github.com/ZZongzheng0918/TA-VLA / functions

Functions459 in github.com/ZZongzheng0918/TA-VLA

Functioncreate_data_loader
Create a data loader for training. Args: config: The training configuration. sharding: The sharding to use for the data loader. I
src/openpi/training/data_loader.py:155
Functioncreate_dataset
(config: _config.TrainConfig)
scripts/compute_norm_stats.py:23
Functioncreate_optimizer
( optimizer: OptimizerConfig, lr_schedule: LRScheduleConfig, weight_decay_mask: at.PyTree | None = None )
src/openpi/training/optimizer.py:104
Functioncreate_trained_policy
Create a policy from a trained checkpoint. Args: train_config: The training config to use to create the model. checkpoint_dir: Th
src/openpi/policies/policy_config.py:30
Methoddata_config
(self)
src/openpi/training/data_loader.py:198
Functiondisable_typechecking
()
src/openpi/shared/array_typing.py:55
Methoddt_helper
(l)
examples/aloha_real/robot_utils.py:101
Methoddt_helper
(l)
examples/aloha_real/robot_utils.py:160
Functioneval_libero
(args: Args)
examples/libero/main.py:48
Methodformat
(self, record)
scripts/train.py:35
Functionfsdp_sharding
Apply FSDP sharding to a pytree of arrays based on the mesh shape. Args: pytree: A pytree to be apply sharding specified by the mesh, not
src/openpi/training/sharding.py:48
Functionfun
(state: nnx.State, *args: P.args, **kwargs: P.kwargs)
src/openpi/shared/nnx_utils.py:33
Functionget_action
(master_bot_left, master_bot_right)
examples/aloha_real/real_env.py:158
Methodget_action
(self, observation: dict)
packages/openpi-client/src/openpi_client/runtime/agents/policy_agent.py:14
Functionget_cameras
(hdf5_files: list[Path])
examples/aloha_real/convert_aloha_data_to_lerobot.py:128
Functionget_config
Get a config by name.
src/openpi/training/config.py:920
Functionget_config
Returns config for specified gemma variant.
src/openpi/models/gemma.py:58
Functionget_config
Returns config for specified gemma variant.
src/openpi/models/gemma_fast.py:35
Methodget_freeze_filter
Returns the freeze filter based on the model config.
src/openpi/models/pi0_fast.py:121
Methodget_images
(self)
examples/aloha_real/robot_utils.py:88
Methodget_observation
(self)
examples/aloha_sim/env.py:34
Methodget_observation
(self)
examples/aloha_real/env.py:35
Functionhandler
(signum, frame)
examples/droid/main.py:60
Methodimage_cb_cam_high
(self, data)
examples/aloha_real/robot_utils.py:72
Methodimage_cb_cam_left_wrist
(self, data)
examples/aloha_real/robot_utils.py:80
Methodimage_cb_cam_low
(self, data)
examples/aloha_real/robot_utils.py:76
Methodimage_cb_cam_right_wrist
(self, data)
examples/aloha_real/robot_utils.py:84
Methodinfer
(self, obs: dict)
src/openpi/policies/policy.py:75
Functioninit
(rng: at.KeyArrayLike, partial_params: at.Params | None = None)
scripts/train.py:89
Methodinit
Convenience method for initializing all parameters, necessary due to the quirks of linen.
src/openpi/models/gemma_fast.py:420
Functioninitialize_checkpoint_dir
( checkpoint_dir: epath.Path | str, *, keep_period: int | None, overwrite: bool, resume: bool )
src/openpi/training/checkpoints.py:16
Methodinputs_spec
(self, *, batch_size: int = 1)
src/openpi/models/pi0_fast.py:95
Methodis_episode_complete
(self)
examples/aloha_sim/env.py:30
Methodis_episode_complete
(self)
examples/aloha_real/env.py:31
Functionload
Load the normalization stats from a directory.
src/openpi/shared/normalize.py:142
Methodload
(self, params: at.Params)
src/openpi/training/weight_loaders.py:33
Methodload
(self, params: at.Params)
src/openpi/training/weight_loaders.py:50
Methodload
(self, params: at.Params)
src/openpi/training/weight_loaders.py:66
Functionload_norm_stats
(norm_stats_dir: epath.Path | str)
src/openpi/training/checkpoints.py:117
Functionloss_fn
( model: _model.BaseModel, rng: at.KeyArrayLike, observation: _model.Observation, actions: _model.Acti
scripts/train.py:146
Functionmain
(config_name: str, max_frames: int | None = None)
scripts/compute_norm_stats.py:40
Functionmain
(args: Args)
examples/aloha_sim/main.py:29
Functionmain
(data_dir: str, *, push_to_hub: bool = False)
examples/libero/convert_libero_data_to_lerobot.py:37
Functionmain
(args: Args)
examples/aloha_real/main.py:24
Functionmake_aloha_example
Creates a random input example for the Aloha policy.
src/openpi/policies/aloha_policy.py:10
Functionmake_bool_mask
Make a boolean mask for the given dimensions. Example: make_bool_mask(2, -2, 2) == (True, True, False, False, True, True) make_bo
src/openpi/transforms.py:406
Functionmake_droid_example
Creates a random input example for the Droid policy.
src/openpi/policies/droid_policy.py:10
Methodmake_from_spec
(spec: jax.ShapeDtypeStruct)
src/openpi/training/data_loader.py:66
Functionmake_libero_example
Creates a random input example for the Libero policy.
src/openpi/policies/libero_policy.py:10
Functionmake_mesh
(num_fsdp_devices: int)
src/openpi/training/sharding.py:17
Functionmake_real_env
(init_node, *, reset_position: Optional[List[float]] = None, setup_robots: bool = True)
examples/aloha_real/real_env.py:170
Functionmaybe_download
Download a file or directory from a remote filesystem to the local cache, and return the local path. If the local file already exists, it will be
src/openpi/shared/download.py:40
Methodmodel_type
(self)
src/openpi/models/pi0.py:84
Methodmodel_type
(self)
src/openpi/models/pi0_fast.py:87
Methodmodel_type
The model type.
src/openpi/models/model.py:239
Functionmodule_jit
A higher-order function to JIT-compile `nnx.Module` methods, freezing the module's state in the process. Why not `nnx.jit`? For some reason, naiv
src/openpi/shared/nnx_utils.py:15
Methodnum_frames
(self)
src/openpi/training/data_loader.py:54
Methodon_episode_end
(self)
examples/aloha_sim/saver.py:30
Methodon_episode_end
(self)
examples/aloha_real/video_display.py:34
Methodon_episode_start
(self)
examples/aloha_sim/saver.py:20
Methodon_episode_start
(self)
examples/aloha_real/video_display.py:15
Methodon_step
(self, observation: dict, action: dict)
examples/aloha_sim/saver.py:24
Methodon_step
(self, observation: dict, action: dict)
examples/aloha_real/video_display.py:21
Functionpack_array
(obj)
packages/openpi-client/src/openpi_client/msgpack_numpy.py:21
Functionpad_to_dim
Pad an array to the target dimension with zeros along the specified axis.
src/openpi/transforms.py:396
Functionport_aloha
( raw_dir: Path, repo_id: str, raw_repo_id: str | None = None, task: str = "DEBUG", *,
examples/aloha_real/convert_aloha_data_to_lerobot.py:229
Functionport_aloha
( raw_dir: Path, repo_id: str, raw_repo_id: str | None = None, task: str = "DEBUG", *,
examples/aloha_real/convert_self_data_to_lerobot.py:241
Functionpreprocess_observation
Preprocess the observations by performing image augmentations (if train=True), resizing (if necessary), and filling in a default image mask (if ne
src/openpi/models/model.py:143
Methodprint_diagnostics
(self)
examples/aloha_real/robot_utils.py:100
Methodprint_diagnostics
(self)
examples/aloha_real/robot_utils.py:159
Methodpuppet_arm_commands_cb
(self, data)
examples/aloha_real/robot_utils.py:149
Methodpuppet_gripper_commands_cb
(self, data)
examples/aloha_real/robot_utils.py:154
Methodpuppet_state_cb
(self, data)
examples/aloha_real/robot_utils.py:141
Functionpytest_configure
(config: pytest.Config)
src/openpi/conftest.py:16
Methodreset
(self)
packages/openpi-client/src/openpi_client/action_chunk_broker.py:42
Methodreset
(self)
packages/openpi-client/src/openpi_client/websocket_client_policy.py:48
Methodreset
Reset the policy to its initial state.
packages/openpi-client/src/openpi_client/base_policy.py:10
Methodreset
Reset the environment to its initial state. This will be called once before starting each episode.
packages/openpi-client/src/openpi_client/runtime/environment.py:12
Methodreset
(self)
packages/openpi-client/src/openpi_client/runtime/agents/policy_agent.py:17
Methodreset
(self)
examples/aloha_sim/env.py:23
Methodreset
(self)
examples/aloha_real/env.py:27
Functionresize_with_pad
Replicates tf.image.resize_with_pad for multiple images using PIL. Resizes a batch of images to a target height. Args: images: A batch of
packages/openpi-client/src/openpi_client/image_tools.py:15
Functionresize_with_pad
Replicates tf.image.resize_with_pad. Resizes an image to a target height and width without distortion by padding with black. If the image is float
src/openpi/shared/image_tools.py:11
Functionrestore_params
Restores unstructured params PyTree from a checkpoint. This works with checkpoints saved with `save_state` during openpi training (see `training/
src/openpi/models/model.py:293
Functionrestore_state
( checkpoint_manager: ocp.CheckpointManager, state: training_utils.TrainState, data_loader: _data_
src/openpi/training/checkpoints.py:96
Methodrun_in_new_thread
Runs the runtime loop in a new thread.
packages/openpi-client/src/openpi_client/runtime/runtime.py:40
Methodsample_actions
( self, rng: at.KeyArrayLike, observation: _model.Observation, *, max_
src/openpi/models/pi0_fast.py:230
Methodsample_actions
(self, rng: at.KeyArrayLike, observation: Observation)
src/openpi/models/model.py:290
Functionsave
Save the normalization stats to a directory.
src/openpi/shared/normalize.py:135
Functionsave_assets
(directory: epath.Path)
src/openpi/training/checkpoints.py:67
Functionsave_state
( checkpoint_manager: ocp.CheckpointManager, state: training_utils.TrainState, data_loader: _data_
src/openpi/training/checkpoints.py:61
Methodscaling_value
(self)
src/openpi/models/lora.py:29
Functionset_low_pid_gains
(bot)
examples/aloha_real/robot_utils.py:232
Functionset_mesh
Plumbing the mesh deep into the module tree is extremeley cumbersome; until the JAX team lands a better API, a custom context manager like this on
src/openpi/training/sharding.py:27
Functionset_openpi_data_home
(tmp_path_factory)
src/openpi/shared/download_test.py:9
Functionset_standard_pid_gains
(bot)
examples/aloha_real/robot_utils.py:227
Methodsetup
(self)
src/openpi/models/gemma.py:133
Methodsetup
(self)
src/openpi/models/gemma.py:338
Methodsetup
(self)
src/openpi/models/gemma_fast.py:108
Methodsetup
(self)
src/openpi/models/gemma_fast.py:137
← previousnext →301–400 of 459, ranked by callers