MCPcopy Create free account

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

Functions694 in github.com/Physical-Intelligence/openpi

↓ 2 callersMethodtokenize
(self, prompt: str, state: np.ndarray | None = None)
src/openpi/models/tokenizer.py:22
↓ 2 callersMethodtokenize
( self, prompt: str, state: np.ndarray, actions: np.ndarray | None )
src/openpi/models/tokenizer.py:300
↓ 2 callersFunctionunflatten_dict
Unflatten a flattened dictionary. Assumes that '/' was used as a separator.
src/openpi/transforms.py:345
↓ 2 callersFunctionvariance_scaling_
(tensor, scale=1.0, mode="fan_in", distribution="normal")
src/openpi/models_pytorch/transformers_replace/models/siglip/modeling_siglip.py:103
↓ 1 callersMethod_act_tokens_to_paligemma_tokens
(self, tokens: np.ndarray | list[int])
src/openpi/models/tokenizer.py:240
↓ 1 callersMethod_act_tokens_to_paligemma_tokens
(self, tokens: np.ndarray | list[int])
src/openpi/models/tokenizer.py:368
↓ 1 callersMethod_adjust_histograms
Adjust histograms when min or max changes.
src/openpi/shared/normalize.py:88
↓ 1 callersMethod_compute_quantiles
Compute quantiles based on histograms.
src/openpi/shared/normalize.py:106
↓ 1 callersFunction_decode_aloha
(data: dict, *, adapt_to_pi: bool = False)
src/openpi/policies/aloha_policy.py:159
↓ 1 callersFunction_decode_state
(state: np.ndarray, *, adapt_to_pi: bool = False)
src/openpi/policies/aloha_policy.py:181
↓ 1 callersFunction_download_gsutil
Download a file or directory from GCS using gsutil if available, otherwise fall back to gcsfs.
src/openpi/shared/download.py:108
↓ 1 callersFunction_encode_actions
(actions: np.ndarray, *, adapt_to_pi: bool = False)
src/openpi/policies/aloha_policy.py:190
↓ 1 callersFunction_encode_actions_inv
(actions: np.ndarray, *, adapt_to_pi: bool = False)
src/openpi/policies/aloha_policy.py:198
↓ 1 callersFunction_extract_observation
(args: Args, obs_dict, *, save_to_disk=False)
examples/droid/main.py:198
↓ 1 callersMethod_get_bins_custom
(target_codebook_size: int)
src/openpi/models/utils/fsq_tokenizer.py:62
↓ 1 callersMethod_get_bins_lfq
Get bins per dimension according to the Lookup-Free Quantization paper (2 bins per dimension)
src/openpi/models/utils/fsq_tokenizer.py:76
↓ 1 callersFunction_get_libero_env
Initializes and returns the LIBERO environment, along with the task description.
examples/libero/main.py:189
↓ 1 callersFunction_gripper_from_angular
(value)
src/openpi/policies/aloha_policy.py:140
↓ 1 callersFunction_gripper_from_angular_inv
(value)
src/openpi/policies/aloha_policy.py:153
↓ 1 callersFunction_gripper_to_angular
(value)
src/openpi/policies/aloha_policy.py:117
↓ 1 callersMethod_init_cache
Initialize KV cache
src/openpi/models/gemma_fast.py:165
↓ 1 callersMethod_load_norm_stats
(self, assets_dir: epath.Path, asset_id: str | None)
src/openpi/training/config.py:190
↓ 1 callersFunction_load_weights_and_validate
Loads and validates the weights. Returns a loaded subset of the weights.
scripts/train.py:73
↓ 1 callersMethod_make_lora_eqns
(self, eqn: str)
src/openpi/models/lora.py:67
↓ 1 callersFunction_merge_params
(train_state: training_utils.TrainState, params: dict[str, at.Params])
src/openpi/training/checkpoints.py:155
↓ 1 callersMethod_norm
(self, x)
src/openpi/models_pytorch/transformers_replace/models/gemma/modeling_gemma.py:66
↓ 1 callersFunction_quat2axisangle
Copied from robosuite: https://github.com/ARISE-Initiative/robosuite/blob/eafb81f54ffc104f905ee48a16bb15f059176ad3/robosuite/utils/transform_util
examples/libero/main.py:199
↓ 1 callersMethod_reset_gripper
Set to position mode and do position resets: first close then open. Then change back to PWM mode NOTE: This diverges from the original Aloha
examples/aloha_real/real_env.py:114
↓ 1 callersMethod_reset_joints
(self)
examples/aloha_real/real_env.py:109
↓ 1 callersFunction_resize_with_pad_pil
Replicates tf.image.resize_with_pad for one image using PIL. Resizes an image to a target height and width without distortion by padding with zero
packages/openpi-client/src/openpi_client/image_tools.py:38
↓ 1 callersMethod_run_episode
Runs a single episode.
packages/openpi-client/src/openpi_client/runtime/runtime.py:50
↓ 1 callersFunction_set_file_permission
Set all files to be read & writable, if it is a script, keep it as a script.
src/openpi/shared/download.py:169
↓ 1 callersFunction_setup_folder_permission_between_cache_dir_and_path
(path: pathlib.Path)
src/openpi/shared/download.py:161
↓ 1 callersFunction_should_invalidate_cache
Invalidate the cache if it is expired. Return True if the cache was invalidated.
src/openpi/shared/download.py:205
↓ 1 callersMethod_step
A single step of the runtime loop.
packages/openpi-client/src/openpi_client/runtime/runtime.py:80
↓ 1 callersFunction_trunc_normal_
(tensor, mean, std, a, b)
src/openpi/models_pytorch/transformers_replace/models/siglip/modeling_siglip.py:41
↓ 1 callersMethod_update_cache
Update KV cache with new values
src/openpi/models/gemma_fast.py:175
↓ 1 callersMethod_update_histograms
Update histograms with new vectors.
src/openpi/shared/normalize.py:100
↓ 1 callersMethod_wait_for_server
(self)
packages/openpi-client/src/openpi_client/websocket_client_policy.py:32
↓ 1 callersMethodapply_action
Take an action in the environment.
packages/openpi-client/src/openpi_client/runtime/environment.py:31
↓ 1 callersFunctionapply_rotary_pos_emb
Applies Rotary Position Embedding to the query and key tensors. Args: q (`torch.Tensor`): The query tensor. k (`torch.Tensor`): T
src/openpi/models_pytorch/transformers_replace/models/gemma/modeling_gemma.py:170
↓ 1 callersFunctionbuild_datasets
(config: _config.TrainConfig)
scripts/train_pytorch.py:125
↓ 1 callersFunctioncleanup_ddp
()
scripts/train_pytorch.py:112
↓ 1 callersMethodcond
(carry)
src/openpi/models/pi0.py:273
↓ 1 callersMethodcond
(carry)
src/openpi/models/pi0_fast.py:305
↓ 1 callersFunctionconvert_image
(img)
src/openpi/policies/aloha_policy.py:165
↓ 1 callersFunctionconvert_pi0_checkpoint
Convert PI0 JAX checkpoint to PyTorch format. Args: checkpoint_dir: Path to the JAX checkpoint precision: Model precision (f
examples/convert_jax_model_to_pytorch.py:422
↓ 1 callersFunctioncreate_default_policy
Create a default policy for the given environment.
scripts/serve_policy.py:79
↓ 1 callersFunctioncreate_empty_dataset
( repo_id: str, robot_type: str, mode: Literal["video", "image"] = "video", *, has_velocit
examples/aloha_real/convert_aloha_data_to_lerobot.py:34
↓ 1 callersFunctioncreate_policy
Create a policy from the given arguments.
scripts/serve_policy.py:88
↓ 1 callersFunctioncreate_rlds_data_loader
Create an RLDS data loader for training. Note: This data loader requires some extra dependencies -- see examples/droid/README_train.md Args:
src/openpi/training/data_loader.py:340
↓ 1 callersFunctioncreate_rlds_dataloader
( data_config: _config.DataConfig, action_horizon: int, batch_size: int, max_frames: int | Non
scripts/compute_norm_stats.py:60
↓ 1 callersFunctioncreate_rlds_dataset
( data_config: _config.DataConfig, action_horizon: int, batch_size: int, *, shuffle: bool
src/openpi/training/data_loader.py:154
↓ 1 callersFunctioncreate_sinusoidal_pos_embedding
Computes sine-cosine positional embedding vectors for scalar positions.
src/openpi/models_pytorch/pi0_pytorch.py:25
↓ 1 callersFunctioncreate_torch_data_loader
Create a data loader for training. Args: data_config: The data configuration. action_horizon: The action horizon. batch_s
src/openpi/training/data_loader.py:271
↓ 1 callersFunctioncreate_torch_dataloader
( data_config: _config.DataConfig, action_horizon: int, batch_size: int, model_config: _model.
scripts/compute_norm_stats.py:24
↓ 1 callersFunctioncreate_torch_dataset
Create a dataset for training.
src/openpi/training/data_loader.py:130
↓ 1 callersFunctiondecode_variant
Converts a string like "B" or "B/32" into a params dict.
src/openpi/models/siglip.py:298
↓ 1 callersFunctiondefault_flax_embed_init
(tensor)
src/openpi/models_pytorch/transformers_replace/models/siglip/modeling_siglip.py:132
↓ 1 callersMethoddenoise_step
Apply one denoising step of the noise `x_t` at a given timestep.
src/openpi/models_pytorch/pi0_pytorch.py:422
↓ 1 callersFunctiondeserialize_json
Deserialize the running statistics from a JSON string.
src/openpi/shared/normalize.py:129
↓ 1 callersMethodembed
(self, tokens: at.Int[at.Array, "b t"])
src/openpi/models/gemma.py:385
↓ 1 callersMethodembed_image
(self, image: torch.Tensor)
src/openpi/models_pytorch/gemma_pytorch.py:84
↓ 1 callersMethodembed_language_tokens
(self, tokens: torch.Tensor)
src/openpi/models_pytorch/gemma_pytorch.py:87
↓ 1 callersMethodencode
(self, x)
src/openpi/models/gemma_fast.py:115
↓ 1 callersMethodextract_actions
(self, tokens: np.ndarray, action_horizon: int, action_dim: int)
src/openpi/models/tokenizer.py:119
↓ 1 callersMethodextract_actions
(self, tokens: np.ndarray, action_horizon: int, action_dim: int)
src/openpi/models/tokenizer.py:345
↓ 1 callersMethodget_action
Query the agent for the next action.
packages/openpi-client/src/openpi_client/runtime/agent.py:12
↓ 1 callersFunctionget_camera_type
(cam_id)
examples/droid/convert_droid_data_to_lerobot.py:180
↓ 1 callersMethodget_decoder
(self)
src/openpi/models_pytorch/transformers_replace/models/paligemma/modeling_paligemma.py:161
↓ 1 callersMethodget_effort
(self)
examples/aloha_real/real_env.py:88
↓ 1 callersFunctionget_hdf5_length
(hdf5_file, keys_to_ignore=[])
examples/droid/convert_droid_data_to_lerobot.py:329
↓ 1 callersMethodget_image_features
r""" Returns: image_features (`torch.FloatTensor` of shape `(batch_size, output_dim`): The image embeddings obtained by
src/openpi/models_pytorch/transformers_replace/models/siglip/modeling_siglip.py:964
↓ 1 callersMethodget_images
(self)
examples/aloha_real/real_env.py:95
↓ 1 callersFunctionget_latest_checkpoint_step
Get the latest checkpoint step number from a checkpoint directory.
scripts/train_pytorch.py:274
↓ 1 callersMethodget_observation
Query the environment for the current state.
packages/openpi-client/src/openpi_client/runtime/environment.py:27
↓ 1 callersFunctionget_posemb
(self, typ, seqshape, width, name, dtype=jnp.float32)
src/openpi/models/siglip.py:40
↓ 1 callersMethodget_qpos
(self)
examples/aloha_real/real_env.py:66
↓ 1 callersMethodget_qvel
(self)
examples/aloha_real/real_env.py:79
↓ 1 callersFunctionget_safe_dtype
Get a safe dtype for the given device type.
src/openpi/models_pytorch/pi0_pytorch.py:14
↓ 1 callersMethodget_stats
Get statistics for the given key.
examples/simple_client/main.py:56
↓ 1 callersMethodgradient_checkpointing_enable
Enable gradient checkpointing for memory optimization.
src/openpi/models_pytorch/pi0_pytorch.py:127
↓ 1 callersFunctionhas_effort
(hdf5_files: list[Path])
examples/aloha_real/convert_aloha_data_to_lerobot.py:139
↓ 1 callersFunctionhas_velocity
(hdf5_files: list[Path])
examples/aloha_real/convert_aloha_data_to_lerobot.py:134
↓ 1 callersMethodinfer
(self, obs: Dict)
packages/openpi-client/src/openpi_client/action_chunk_broker.py:27
↓ 1 callersMethodinfer
Infer actions from observations.
packages/openpi-client/src/openpi_client/base_policy.py:7
↓ 1 callersFunctioninit_logging
Custom logging format for better readability.
scripts/train.py:31
↓ 1 callersFunctioninit_logging
()
scripts/train_pytorch.py:50
↓ 1 callersFunctioninit_train_state
( config: _config.TrainConfig, init_rng: at.KeyArrayLike, mesh: jax.sharding.Mesh, *, resume: bool )
scripts/train.py:85
↓ 1 callersFunctioninit_wandb
(config: _config.TrainConfig, *, resuming: bool, log_code: bool = False, enabled: bool = True)
scripts/train.py:50
↓ 1 callersFunctioninit_wandb
Initialize wandb logging.
scripts/train_pytorch.py:72
↓ 1 callersMethodinputs_spec
(self, *, batch_size: int = 1)
src/openpi/models/pi0_config.py:64
↓ 1 callersMethodinterpolate_pos_encoding
This method allows to interpolate the pre-trained position encodings, to be able to use the model on higher resolution images. This m
src/openpi/models_pytorch/transformers_replace/models/siglip/modeling_siglip.py:233
↓ 1 callersMethodis_episode_complete
Allow the environment to signal that the episode is complete. This will be called after each step. It should return `True` if the episode is
packages/openpi-client/src/openpi_client/runtime/environment.py:19
↓ 1 callersMethodlanguage_model
(self)
src/openpi/models_pytorch/transformers_replace/models/paligemma/modeling_paligemma.py:418
↓ 1 callersFunctionlecun_normal_
(tensor)
src/openpi/models_pytorch/transformers_replace/models/siglip/modeling_siglip.py:128
↓ 1 callersFunctionleft_to_right_align
Converts input from left-align to right-aligned.
src/openpi/models/pi0_fast.py:52
↓ 1 callersMethodlength
(self)
examples/droid/convert_droid_data_to_lerobot.py:378
↓ 1 callersFunctionlinear_to_radian
(linear_position, arm_length, horn_radius)
src/openpi/policies/aloha_policy.py:127
↓ 1 callersFunctionload_checkpoint
Load the latest checkpoint and return the global step.
scripts/train_pytorch.py:197
← previousnext →101–200 of 694, ranked by callers