MCPcopy Create free account

hub / github.com/Physical-Intelligence/openpi / functions

Functions694 in github.com/Physical-Intelligence/openpi

Functionget_config
Returns config for specified gemma variant.
src/openpi/models/gemma_fast.py:35
Methodget_decoder
(self)
src/openpi/models_pytorch/transformers_replace/models/gemma/modeling_gemma.py:591
Methodget_decoder
(self)
src/openpi/models_pytorch/transformers_replace/models/paligemma/modeling_paligemma.py:410
Methodget_frame_count
(self)
examples/droid/convert_droid_data_to_lerobot.py:219
Methodget_frame_resolution
(self)
examples/droid/convert_droid_data_to_lerobot.py:214
Methodget_freeze_filter
Returns the freeze filter based on the model config.
src/openpi/models/pi0_fast.py:127
Methodget_image_features
(self, pixel_values)
src/openpi/models_pytorch/transformers_replace/models/paligemma/modeling_paligemma.py:413
Methodget_images
(self)
examples/aloha_real/robot_utils.py:88
Methodget_input_embeddings
(self)
src/openpi/models_pytorch/transformers_replace/models/gemma/modeling_gemma.py:438
Methodget_input_embeddings
(self)
src/openpi/models_pytorch/transformers_replace/models/gemma/modeling_gemma.py:576
Methodget_input_embeddings
(self)
src/openpi/models_pytorch/transformers_replace/models/gemma/modeling_gemma.py:699
Methodget_input_embeddings
(self)
src/openpi/models_pytorch/transformers_replace/models/gemma/modeling_gemma.py:798
Methodget_input_embeddings
(self)
src/openpi/models_pytorch/transformers_replace/models/paligemma/modeling_paligemma.py:395
Methodget_input_embeddings
(self)
src/openpi/models_pytorch/transformers_replace/models/siglip/modeling_siglip.py:706
Methodget_input_embeddings
(self)
src/openpi/models_pytorch/transformers_replace/models/siglip/modeling_siglip.py:840
Functionget_model_parameters
Get parameters from model, handling DDP wrapper.
scripts/train_pytorch.py:140
Functionget_model_state_dict
Get state dict from model, handling DDP wrapper.
scripts/train_pytorch.py:131
Methodget_observation
(self)
examples/aloha_sim/env.py:34
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_polaris_configs
()
src/openpi/training/misc/polaris_config.py:18
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:136
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:200
Methodinfer
(self, obs: dict)
src/openpi/policies/policy.py:125
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_fast.py:420
Functioninitialize_checkpoint_dir
( checkpoint_dir: epath.Path | str, *, keep_period: int | None, overwrite: bool, resume: bool )
src/openpi/training/checkpoints.py:20
Methodinputs_spec
(self, *, batch_size: int = 1)
src/openpi/models/pi0_fast.py:101
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:145
Methodlang_embed_func
(lang_tokens)
src/openpi/models_pytorch/pi0_pytorch.py:214
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:110
Methodloss
(self, x: jnp.ndarray)
src/openpi/models/utils/fsq_tokenizer.py:202
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_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:433
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:107
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: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:32
Methodmlp_func
(action_time_emb)
src/openpi/models_pytorch/pi0_pytorch.py:281
Methodmodel_type
(self)
src/openpi/models/pi0_fast.py:93
Methodmodel_type
(self)
src/openpi/models/pi0_config.py:52
Methodmodel_type
The model type.
src/openpi/models/model.py:226
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
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
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:229
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
Methodprepare_single_dataset
(dataset_cfg: RLDSDataset)
src/openpi/training/droid_rlds_dataset.py:64
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:144
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:206
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:57
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:286
Functionrestore_state
( checkpoint_manager: ocp.CheckpointManager, state: training_utils.TrainState, data_loader: _data_
src/openpi/training/checkpoints.py:89
Methodrestructure
Reformat observation and action keys, sample language instruction.
src/openpi/training/droid_rlds_dataset.py:115
Methodrun_in_new_thread
Runs the runtime loop in a new thread.
packages/openpi-client/src/openpi_client/runtime/runtime.py:40
← previousnext →501–600 of 694, ranked by callers