MCPcopy Create free account

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

Functions901 in github.com/Ke-Wang1017/openpi_subtask

↓ 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:147
↓ 1 callersFunction_setup_folder_permission_between_cache_dir_and_path
(path: pathlib.Path)
src/openpi/shared/download.py:139
↓ 1 callersFunction_should_invalidate_cache
Invalidate the cache if it is expired. Return True if the cache was invalidated.
src/openpi/shared/download.py:183
↓ 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 key-value pairs (single token). Args: k: New key tensor of shape (batch, num_heads, 1, head_dim)
src/openpi/models_pytorch/gemma_pytorch.py:152
↓ 1 callersMethod_update_cache
Update KV cache with new values
src/openpi/models/gemma_05.py:173
↓ 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:29
↓ 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 callersMethodbatch_infer
Batch inference requests
scripts/async_pi05/sync_pi05_client.py:130
↓ 1 callersFunctionbuild_datasets
(config: _config.TrainConfig)
scripts/train_pytorch.py:125
↓ 1 callersFunctioncleanup_ddp
()
scripts/train_pytorch.py:112
↓ 1 callersMethodclose
Close the websocket connection.
examples/libero/main_subtask_async.py:164
↓ 1 callersMethodclose
(self)
examples/droid/convert_droid_data_to_lerobot.py:400
↓ 1 callersMethodcond
(carry)
src/openpi/models/pi0.py:273
↓ 1 callersMethodcond
(carry)
src/openpi/models/pi0_fast.py:305
↓ 1 callersMethodcond
(carry)
src/openpi/models/pi05.py:422
↓ 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:80
↓ 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:35
↓ 1 callersMethodcreate_fake_lerobot_data
创建模拟的 LeRobot 数据
scripts/async_pi05/lerobot_inference_observer.py:85
↓ 1 callersFunctioncreate_policy
Create a policy from the given arguments.
scripts/serve_policy.py:89
↓ 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:344
↓ 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:158
↓ 1 callersFunctioncreate_sinusoidal_pos_embedding
Computes sine-cosine positional embedding vectors for scalar positions.
src/openpi/models_pytorch/pi0_pytorch.py:25
↓ 1 callersFunctioncreate_test_images
创建测试用的图像文件
scripts/async_pi05/create_test_images.py:12
↓ 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:275
↓ 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 callersMethoddecode
(self, x)
src/openpi/models/gemma_05.py:153
↓ 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:421
↓ 1 callersFunctiondeserialize_json
Deserialize the running statistics from a JSON string.
src/openpi/shared/normalize.py:129
↓ 1 callersMethoddrain_refresh_messages
Drain queued periodic subtask refresh messages.
examples/libero/main_subtask_async.py:117
↓ 1 callersMethodembed
(self, tokens: at.Int[at.Array, "b t"])
src/openpi/models/gemma.py:385
↓ 1 callersMethodembed
(self, tokens: at.Int[at.Array, "b t"])
src/openpi/models/gemma_05.py:417
↓ 1 callersMethodembed_image
(self, image: torch.Tensor)
src/openpi/models_pytorch/gemma_pytorch.py:89
↓ 1 callersMethodembed_language_tokens
(self, tokens: torch.Tensor)
src/openpi/models_pytorch/gemma_pytorch.py:92
↓ 1 callersMethodencode
(self, x)
src/openpi/models/gemma_05.py:148
↓ 1 callersMethodencode
(self, x)
src/openpi/models/gemma_fast.py:115
↓ 1 callersFunctioneval_libero
(args: Args)
examples/libero/main_subtask.py:128
↓ 1 callersFunctioneval_libero
(args: Args)
examples/libero/main_subtask_async.py:210
↓ 1 callersFunctioneval_libero
(args: Args)
examples/libero/main.py:52
↓ 1 callersFunctionexample_usage
使用示例
scripts/async_pi05/example_lerobot_usage.py:18
↓ 1 callersMethodextract_actions
(self, tokens: np.ndarray, action_horizon: int, action_dim: int)
src/openpi/models/tokenizer.py:410
↓ 1 callersMethodextract_actions
(self, tokens: np.ndarray, action_horizon: int, action_dim: int)
src/openpi/models/tokenizer.py:636
↓ 1 callersMethodgenerate_actions
Generate action trajectory from observation.
scripts/async_pi05/async_pi05_inference.py:246
↓ 1 callersMethodgenerate_subtask
( self, observation: Observation, rng: jax.Array, max_decoding_steps: int, temperature: float )
scripts/sync_pi05_websocket_server.py:179
↓ 1 callersMethodgenerate_subtask
Generate low-level subtask text from observation.
scripts/async_pi05/async_pi05_inference.py:218
↓ 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 callersFunctionget_config
Returns config for specified gemma variant.
src/openpi/models/gemma.py:58
↓ 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:126
↓ 1 callersFunctionhas_effort
(hdf5_files: list[Path])
examples/aloha_real/convert_aloha_data_to_lerobot.py:140
↓ 1 callersFunctionhas_velocity
(hdf5_files: list[Path])
examples/aloha_real/convert_aloha_data_to_lerobot.py:135
↓ 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 callersMethodinfer
( self, images: dict[str, np.ndarray], high_level_prompt: str, low_level_promp
scripts/sync_pi05_websocket_server.py:195
↓ 1 callersMethodinfer
Asynchronous inference function, supports subtask generation and periodic refresh Args: images: Image dictionary, keys a
scripts/async_pi05/sync_pi05_inference.py:232
↓ 1 callersMethodinfer
Send inference request and receive subtask + actions. Args: images: Dictionary of image arrays high_level_pro
examples/libero/main_subtask.py:51
↓ 1 callersMethodinfer
Send inference request and receive subtask + actions. Args: images: Dictionary of image arrays high_level_pro
examples/libero/main_subtask_async.py:64
↓ 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:55
↓ 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 callersFunctionleft_to_right_align
Converts input from left-align to right-aligned.
src/openpi/models/pi05.py:50
↓ 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 callersMethodlisten_for_refresh_messages
Listen for periodic refresh messages
scripts/async_pi05/sync_pi05_client.py:150
↓ 1 callersFunctionload_checkpoint
Load the latest checkpoint and return the global step.
scripts/train_pytorch.py:197
↓ 1 callersFunctionload_hdf5_to_dict
(hdf5_file, index, keys_to_ignore=[])
examples/droid/convert_droid_data_to_lerobot.py:351
↓ 1 callersMethodload_image
Load image
scripts/async_pi05/sync_pi05_client.py:41
↓ 1 callersMethodload_image
Load image from path with random fallback.
scripts/async_pi05/async_pi05_client.py:67
↓ 1 callersMethodload_image_with_fallback
Load image, supports fallback to random image
scripts/async_pi05/sync_pi05_inference.py:111
↓ 1 callersMethodload_image_with_fallback
Load image, fallback to random image when loading fails.
scripts/async_pi05/async_pi05_inference.py:119
↓ 1 callersFunctionload_jax_model_and_print_keys
Load JAX model from checkpoint and print all parameter keys. Args: checkpoint_dir: Path to the checkpoint directory
examples/convert_jax_model_to_pytorch.py:408
← previousnext →201–300 of 901, ranked by callers