MCPcopy Create free account

hub / github.com/Ke-Wang1017/openpi_subtask / functions

Functions901 in github.com/Ke-Wang1017/openpi_subtask

Methodget_observation
(self)
examples/aloha_real/env.py:35
Methodget_output_embeddings
(self)
src/openpi/models_pytorch/transformers_replace/models/gemma/modeling_gemma.py:582
Methodget_output_embeddings
(self)
src/openpi/models_pytorch/transformers_replace/models/paligemma/modeling_paligemma.py:401
Functionget_roboarena_configs
()
src/openpi/training/misc/roboarena_config.py:15
Methodget_text_features
r""" Returns: text_features (`torch.FloatTensor` of shape `(batch_size, output_dim`): The text embeddings obtained by
src/openpi/models_pytorch/transformers_replace/models/siglip/modeling_siglip.py:918
Methodgradient_checkpointing_disable
Disable gradient checkpointing.
src/openpi/models_pytorch/pi0_pytorch.py:135
Methodhandle_client
(self, websocket: WebSocketServerProtocol, path: str | None = None)
scripts/async_pi05/async_pi05_websocket_server.py:216
Methodhandle_client
Handle client connection
scripts/async_pi05/sync_pi05_websocket_server.py:222
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
Methodimage_embed_func
(img)
src/openpi/models_pytorch/pi0_pytorch.py:199
Methodinfer
(self, obs: dict)
src/openpi/policies/policy.py:174
Methodinfer_rtc
( self, obs: dict, prefix_actions: jax.Array, inference_delay: int, pr
src/openpi/policies/policy.py:124
Methodinfer_subtask_then_actions
Run a full pipeline: subtask generation followed by action prediction.
scripts/async_pi05/async_pi05_inference.py:347
Functioninit
(rng: at.KeyArrayLike, partial_params: at.Params | None = None)
scripts/train.py:90
Methodinit
Convenience method for initializing all parameters, necessary due to the quirks of linen.
src/openpi/models/gemma_05.py:449
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:21
Methodinputs_spec
(self, *, batch_size: int = 1)
src/openpi/models/pi0_fast.py:101
Methodinputs_spec
(self, *, batch_size: int = 1)
src/openpi/models/pi05_config.py:68
Methodis_episode_complete
(self)
examples/aloha_sim/env.py:30
Methodis_episode_complete
(self)
examples/aloha_real/env.py:31
Methodis_gradient_checkpointing_enabled
Check if gradient checkpointing is enabled.
src/openpi/models_pytorch/pi0_pytorch.py:144
Methodlang_embed_func
(lang_tokens)
src/openpi/models_pytorch/pi0_pytorch.py:213
Methodlisten_for_refresh_messages
Listen for periodic refresh messages from internal queue.
scripts/async_pi05/async_pi05_client.py:220
Functionload
Load the normalization stats from a directory.
src/openpi/shared/normalize.py:141
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:65
Functionload_norm_stats
(assets_dir: epath.Path | str, asset_id: str)
src/openpi/training/checkpoints.py:111
Methodloss
(self, x: jnp.ndarray)
src/openpi/models/utils/fsq_tokenizer.py:202
Functionloss_fn
(model)
src/openpi/models/pi05_test.py:30
Functionloss_fn
( model: _model.BaseModel, rng: at.KeyArrayLike, observation: _model.Observation, actions: _model.Acti
scripts/train.py:147
Functionmain
(config_name: str, max_frames: int | None = None)
scripts/compute_norm_stats.py:89
Functionmain
Load JAX model and optionally convert to PyTorch. Args: checkpoint_dir: Path to the JAX checkpoint directory output_path: Path to
examples/convert_jax_model_to_pytorch.py:558
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
Functionmain
(data_dir: str, *, push_to_hub: bool = False)
examples/droid/convert_droid_data_to_lerobot.py:37
Functionmake_aloha_example
Creates a random input example for the Aloha policy.
src/openpi/policies/aloha_policy.py:10
Functionmake_arx_example
Creates a random input example for the ARX policy.
src/openpi/policies/arx_policy.py:11
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:489
Functionmake_droid_example
Creates a random input example for the Droid policy.
src/openpi/policies/droid_policy.py:10
Functionmake_flexiv_lerobot_example
生成符合当前LeRobot数据集格式的示例数据,匹配转换代码输出
src/openpi/policies/flexiv_new_policy.py:10
Functionmake_flexiv_subtask_lerobot_example
生成符合 Subtask LeRobot 数据集格式的示例数据
src/openpi/policies/flexiv_subtask_policy.py:10
Methodmake_from_spec
(spec: jax.ShapeDtypeStruct)
src/openpi/training/data_loader.py:107
Functionmake_libero_example
Creates a random input example for the Libero policy.
src/openpi/policies/libero_policy.py:10
Functionmake_libero_subtask_lerobot_example
generate example data for Libero Subtask dataset
src/openpi/policies/libero_subtask_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:175
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:31
Methodmlp_func
(action_time_emb)
src/openpi/models_pytorch/pi0_pytorch.py:280
Methodmodel_type
(self)
src/openpi/models/pi0_fast.py:93
Methodmodel_type
(self)
src/openpi/models/pi0_config.py:43
Methodmodel_type
(self)
src/openpi/models/pi05_config.py:58
Methodmodel_type
The model type.
src/openpi/models/model.py:236
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
Functionmy_observation_callback
自定义观察回调函数
scripts/async_pi05/example_lerobot_usage.py:25
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
Functionon_observation
(data)
scripts/async_pi05/lerobot_inference_observer.py:376
Functionon_refresh
(data)
scripts/async_pi05/sync_pi05_client.py:280
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
Methodplace_values
(self)
src/openpi/models/utils/fsq_tokenizer.py:37
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:228
Methodprepare_inputs_for_generation
( self, input_ids, past_key_values=None, inputs_embeds=None, cache_pos
src/openpi/models_pytorch/transformers_replace/models/paligemma/modeling_paligemma.py:519
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:152
Functionpreprocess_observation_pytorch
Torch.compile-compatible version of preprocess_observation_pytorch with simplified type annotations. This function avoids complex type annotation
src/openpi/models_pytorch/preprocessing_pytorch.py:20
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
Methodremove_passes_filter
(frame)
src/openpi/training/droid_rlds_dataset.py:187
Methodremove_refresh_callback
(self, callback: Callable[[dict], Awaitable[None] | None])
scripts/async_pi05/async_pi05_client.py:82
Methodreset
(self)
packages/openpi-client/src/openpi_client/action_chunk_broker.py:47
Methodreset
(self)
packages/openpi-client/src/openpi_client/websocket_client_policy.py:54
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:13
Functionresize_with_pad_torch
PyTorch version of resize_with_pad. Resizes an image to a target height and width without distortion by padding with black. If the image is float3
src/openpi/shared/image_tools.py:55
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:296
Functionrestore_state
( checkpoint_manager: ocp.CheckpointManager, state: training_utils.TrainState, data_loader: _data_
src/openpi/training/checkpoints.py:90
Methodrestructure
Reformat observation and action keys, sample language instruction.
src/openpi/training/droid_rlds_dataset.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
Do a full inference forward and compute the action (batch_size x num_steps x num_motors)
src/openpi/models_pytorch/pi0_pytorch.py:376
Methodsample_actions
( self, rng: at.KeyArrayLike, observation: _model.Observation, *, max_
src/openpi/models/pi0_fast.py:236
Methodsample_actions
( self, rng: at.KeyArrayLike, observation: _model.Observation, *, num_
src/openpi/models/pi05.py:442
← previousnext →701–800 of 901, ranked by callers