MCPcopy Create free account

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

Functions694 in github.com/Physical-Intelligence/openpi

Method_init_weights
(self, module)
src/openpi/models_pytorch/transformers_replace/models/paligemma/modeling_paligemma.py:117
Method_init_weights
Initialize the weights
src/openpi/models_pytorch/transformers_replace/models/siglip/modeling_siglip.py:501
Method_normalize
(self, x, stats: NormStats)
src/openpi/transforms.py:137
Method_normalize_quantile
(self, x, stats: NormStats)
src/openpi/transforms.py:141
Method_prepare_4d_causal_attention_mask_with_cache_position
Creates a causal 4D mask of shape `(batch_size, 1, query_length, key_value_length)` from a 2D mask of shape `(batch_size, key_value_l
src/openpi/models_pytorch/transformers_replace/models/paligemma/modeling_paligemma.py:567
Function_random_observation_aloha
()
examples/simple_client/main.py:153
Function_random_observation_droid
()
examples/simple_client/main.py:166
Function_random_observation_libero
()
examples/simple_client/main.py:176
Function_shard_arr
(kp, array: jax.ShapeDtypeStruct)
src/openpi/training/sharding.py:70
Method_unnormalize
(self, x, stats: NormStats)
src/openpi/transforms.py:170
Method_unnormalize_quantile
(self, x, stats: NormStats)
src/openpi/transforms.py:175
Function_worker_init_fn
Tell JAX inside the worker process not to preallocate the GPU memory.
src/openpi/training/data_loader.py:478
Methodaction_out_proj_func
(suffix_out)
src/openpi/models_pytorch/pi0_pytorch.py:369
Methodaction_proj_func
(noisy_actions)
src/openpi/models_pytorch/pi0_pytorch.py:271
Functionactivation_sharding_constraint
(pytree)
src/openpi/training/sharding.py:40
Methodapply_action
(self, action: dict)
examples/aloha_sim/env.py:41
Methodapply_action
(self, action: dict)
examples/aloha_real/env.py:56
Functionarray_tree_to_info
Converts a PyTree of arrays into a human-readable string for logging.
src/openpi/training/utils.py:36
Methodassets_dirs
Get the assets directory for this config.
src/openpi/training/config.py:538
Methodasync_save
(self, directory: epath.Path, args: CallbackSave)
src/openpi/training/checkpoints.py:128
Methodbins_per_dim
(self)
src/openpi/models/utils/fsq_tokenizer.py:23
Functioncheck
(kp, x, y)
src/openpi/shared/array_typing.py:82
Functioncheck_pytree_equality
Checks that two PyTrees have the same structure and optionally checks shapes and dtypes. Creates a much nicer error message than if `jax.tree.map`
src/openpi/shared/array_typing.py:64
Functioncheck_whether_transformers_replace_is_installed_correctly
()
src/openpi/models_pytorch/transformers_replace/models/siglip/check.py:3
Methodcheckpoint_dir
Get the checkpoint directory for this config.
src/openpi/training/config.py:543
Methodchunk_actions
Splits episode into action chunks.
src/openpi/training/droid_rlds_dataset.py:173
Functioncli
()
src/openpi/training/config.py:978
Functioncompose
Compose a sequence of transforms into a single transform.
src/openpi/transforms.py:74
Methodcompute_final_norms
(inputs_embeds, adarms_cond)
src/openpi/models_pytorch/gemma_pytorch.py:261
Methodcompute_layer_complete
(layer_idx, inputs_embeds, attention_mask, position_ids, adarms_cond)
src/openpi/models_pytorch/gemma_pytorch.py:157
Methodcompute_loss
( self, rng: at.KeyArrayLike, observation: _model.Observation, actions: _model.Actions, *, train: bool
src/openpi/models/pi0_fast.py:198
Methodcompute_loss
( self, rng: at.KeyArrayLike, observation: Observation, actions: Actions,
src/openpi/models/model.py:273
Functionconvert_to_uint8
Converts an image to uint8 if it is a float image. This is important for reducing the size of the image when sending it over the network.
packages/openpi-client/src/openpi_client/image_tools.py:5
Methodcreate
Create a data config.
src/openpi/training/config.py:176
Methodcreate
(self, assets_dirs: pathlib.Path, model_config: _model.BaseModelConfig)
src/openpi/training/config.py:208
Methodcreate
(self, assets_dirs: pathlib.Path, model_config: _model.BaseModelConfig)
src/openpi/training/config.py:220
Methodcreate
(self, assets_dirs: pathlib.Path, model_config: _model.BaseModelConfig)
src/openpi/training/config.py:258
Methodcreate
(self, assets_dirs: pathlib.Path, model_config: _model.BaseModelConfig)
src/openpi/training/config.py:292
Methodcreate
(self, assets_dirs: pathlib.Path, model_config: _model.BaseModelConfig)
src/openpi/training/config.py:382
Methodcreate
(self, assets_dirs: pathlib.Path, model_config: _model.BaseModelConfig)
src/openpi/training/config.py:434
Methodcreate
(self)
src/openpi/training/optimizer.py:12
Methodcreate
(self)
src/openpi/training/optimizer.py:24
Methodcreate
(self)
src/openpi/training/optimizer.py:42
Methodcreate
( self, lr: optax.ScalarOrSchedule, weight_decay_mask: at.PyTree | None = None, )
src/openpi/training/optimizer.py:58
Methodcreate
( self, lr: optax.ScalarOrSchedule, weight_decay_mask: at.PyTree | None = None, )
src/openpi/training/optimizer.py:76
Methodcreate
Create a new model, initializing parameters.
src/openpi/models/model.py:230
Functioncreate_data_loader
Create a data loader for training. Args: config: The training configuration. sharding: The sharding to use for the data loader (J
src/openpi/training/data_loader.py:223
Functioncreate_optimizer
( optimizer: OptimizerConfig, lr_schedule: LRScheduleConfig, weight_decay_mask: at.PyTree | None = None )
src/openpi/training/optimizer.py:105
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:16
Methoddata_config
(self)
src/openpi/training/data_loader.py:535
Methoddecode
(self, tokens: jnp.ndarray)
src/openpi/models/utils/fsq_tokenizer.py:198
Methoddecode_images
(traj)
src/openpi/training/droid_rlds_dataset.py:213
Methoddetokenize
(self, tokens: jnp.ndarray, *, obs: jnp.ndarray | None = None)
src/openpi/models/utils/fsq_tokenizer.py:441
Methoddisable_camera
(self)
examples/droid/convert_droid_data_to_lerobot.py:269
Functiondisable_typechecking
()
src/openpi/shared/array_typing.py:57
Methoddt_helper
(l)
examples/aloha_real/robot_utils.py:101
Methoddt_helper
(l)
examples/aloha_real/robot_utils.py:160
Functioneager_attention_forward
( module: nn.Module, query: torch.Tensor, key: torch.Tensor, value: torch.Tensor, attentio
src/openpi/models_pytorch/transformers_replace/models/gemma/modeling_gemma.py:230
Functioneager_attention_forward
( module: nn.Module, query: torch.Tensor, key: torch.Tensor, value: torch.Tensor, attentio
src/openpi/models_pytorch/transformers_replace/models/siglip/modeling_siglip.py:325
Methodencode
(self, z: jnp.ndarray)
src/openpi/models/utils/fsq_tokenizer.py:192
Functioneval_libero
(args: Args)
examples/libero/main.py:48
Methodextra_repr
(self)
src/openpi/models_pytorch/transformers_replace/models/gemma/modeling_gemma.py:106
Methodextract_actions
(self, tokens: np.ndarray, action_horizon: int, action_dim: int)
src/openpi/models/tokenizer.py:222
Methodfilter_from_dict
(frame)
src/openpi/training/droid_rlds_dataset.py:200
Methodformat
(self, record)
scripts/train.py:36
Methodformat
(self, record)
scripts/train_pytorch.py:54
Methodforward
( self, attention_mask: torch.Tensor | None = None, position_ids: torch.LongTensor | N
src/openpi/models_pytorch/gemma_pytorch.py:90
Methodforward
(self, x, cond=None)
src/openpi/models_pytorch/transformers_replace/models/gemma/modeling_gemma.py:73
Methodforward
(self, x)
src/openpi/models_pytorch/transformers_replace/models/gemma/modeling_gemma.py:124
Methodforward
(self, x, position_ids)
src/openpi/models_pytorch/transformers_replace/models/gemma/modeling_gemma.py:149
Methodforward
( self, hidden_states: torch.Tensor, position_embeddings: tuple[torch.Tensor, torch.Te
src/openpi/models_pytorch/transformers_replace/models/gemma/modeling_gemma.py:282
Methodforward
( self, hidden_states: torch.Tensor, attention_mask: Optional[torch.Tensor] = None,
src/openpi/models_pytorch/transformers_replace/models/gemma/modeling_gemma.py:344
Methodforward
adarms_cond (`torch.Tensor` of shape `(batch_size, cond_dim)`, *optional*): Condition for ADARMS.
src/openpi/models_pytorch/transformers_replace/models/gemma/modeling_gemma.py:446
Methodforward
r""" labels (`torch.LongTensor` of shape `(batch_size, sequence_length)`, *optional*): Labels for computing the masked language mo
src/openpi/models_pytorch/transformers_replace/models/gemma/modeling_gemma.py:596
Methodforward
r""" labels (`torch.LongTensor` of shape `(batch_size,)`, *optional*): Labels for computing the sequence classification/regression
src/openpi/models_pytorch/transformers_replace/models/gemma/modeling_gemma.py:707
Methodforward
r""" labels (`torch.LongTensor` of shape `(batch_size,)`, *optional*): Labels for computing the sequence classification/regression
src/openpi/models_pytorch/transformers_replace/models/gemma/modeling_gemma.py:806
Methodforward
(self, image_features)
src/openpi/models_pytorch/transformers_replace/models/paligemma/modeling_paligemma.py:96
Methodforward
r""" labels (`torch.LongTensor` of shape `(batch_size, sequence_length)`, *optional*): Labels for computing the masked language mo
src/openpi/models_pytorch/transformers_replace/models/paligemma/modeling_paligemma.py:249
Methodforward
r""" labels (`torch.LongTensor` of shape `(batch_size, sequence_length)`, *optional*): Labels for computing the masked language mo
src/openpi/models_pytorch/transformers_replace/models/paligemma/modeling_paligemma.py:431
Methodforward
(self, pixel_values: torch.FloatTensor, interpolate_pos_encoding=False)
src/openpi/models_pytorch/transformers_replace/models/siglip/modeling_siglip.py:271
Methodforward
( self, input_ids: Optional[torch.LongTensor] = None, position_ids: Optional[torch.Lon
src/openpi/models_pytorch/transformers_replace/models/siglip/modeling_siglip.py:298
Methodforward
Input shape: Batch x Time x Channel
src/openpi/models_pytorch/transformers_replace/models/siglip/modeling_siglip.py:371
Methodforward
(self, hidden_states: torch.Tensor)
src/openpi/models_pytorch/transformers_replace/models/siglip/modeling_siglip.py:428
Methodforward
Args: hidden_states (`torch.FloatTensor`): Input to the layer of shape `(batch, seq_len, embed_dim)`.
src/openpi/models_pytorch/transformers_replace/models/siglip/modeling_siglip.py:444
Methodforward
r""" Args: inputs_embeds (`torch.FloatTensor` of shape `(batch_size, sequence_length, hidden_size)`): Optionally,
src/openpi/models_pytorch/transformers_replace/models/siglip/modeling_siglip.py:566
Methodforward
( self, input_ids: Optional[torch.Tensor] = None, attention_mask: Optional[torch.Tenso
src/openpi/models_pytorch/transformers_replace/models/siglip/modeling_siglip.py:643
Methodforward
r""" Examples: ```python >>> from transformers import AutoTokenizer, SiglipTextModel >>> model = SiglipTextModel.fro
src/openpi/models_pytorch/transformers_replace/models/siglip/modeling_siglip.py:714
Methodforward
( self, pixel_values, output_attentions: Optional[bool] = None, output_hidden_
src/openpi/models_pytorch/transformers_replace/models/siglip/modeling_siglip.py:763
Methodforward
(self, hidden_state)
src/openpi/models_pytorch/transformers_replace/models/siglip/modeling_siglip.py:810
Methodforward
r""" Examples: ```python >>> from PIL import Image >>> import requests >>> from transformers import AutoProce
src/openpi/models_pytorch/transformers_replace/models/siglip/modeling_siglip.py:845
Methodforward
r""" return_loss (`bool`, *optional*): Whether or not to return the contrastive loss. Examples: ```python
src/openpi/models_pytorch/transformers_replace/models/siglip/modeling_siglip.py:1014
Methodforward
r""" labels (`torch.LongTensor` of shape `(batch_size,)`, *optional*): Labels for computing the image classification/regression lo
src/openpi/models_pytorch/transformers_replace/models/siglip/modeling_siglip.py:1140
Methodforward_func
(prefix_embs, suffix_embs, att_2d_masks_4d, position_ids, adarms_cond)
src/openpi/models_pytorch/pi0_pytorch.py:350
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:163
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:982
Functionget_config
Returns config for specified gemma variant.
src/openpi/models/gemma.py:58
← previousnext →401–500 of 694, ranked by callers