MCPcopy Create free account

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

Functions901 in github.com/Ke-Wang1017/openpi_subtask

↓ 20 callersMethodencode
(self, x)
src/openpi/models/gemma.py:148
↓ 16 callersMethodinit
Convenience method for initializing all parameters, necessary due to the quirks of linen.
src/openpi/models/gemma.py:413
↓ 16 callersMethodupdate
Update the running statistics with a batch of vectors. Args: vectors (np.ndarray): An array where all dimensions except
src/openpi/shared/normalize.py:30
↓ 15 callersMethoddecode
(self, x)
src/openpi/models/gemma.py:153
↓ 13 callersMethodload
Create a model with the given parameters.
src/openpi/models/model.py:243
↓ 13 callersFunctiontransform
(k: str, v: T)
src/openpi/transforms.py:466
↓ 12 callersMethod__init__
(self, config)
src/openpi/models_pytorch/transformers_replace/models/siglip/modeling_siglip.py:421
↓ 12 callersMethodrun
(self)
src/openpi/serving/websocket_policy_server.py:37
↓ 11 callersMethodinfer
Send inference request Args: images: Image path dictionary, keys are image types, values are image file paths
scripts/async_pi05/sync_pi05_client.py:54
↓ 9 callersMethodcreate
( self, lr: optax.ScalarOrSchedule, weight_decay_mask: at.PyTree | None = None, )
src/openpi/training/optimizer.py:96
↓ 9 callersMethodfake_obs
(self, batch_size: int = 1)
src/openpi/models/model.py:263
↓ 9 callersMethodstep
(self, action)
examples/aloha_real/real_env.py:150
↓ 8 callersMethod__init__
(self, config)
src/openpi/models_pytorch/transformers_replace/models/gemma/modeling_gemma.py:114
↓ 8 callersMethod_apply_checkpoint
Helper method to apply gradient checkpointing if enabled.
src/openpi/models_pytorch/pi0_pytorch.py:148
↓ 8 callersFunction_name
(name, i)
src/openpi/models/gemma.py:443
↓ 8 callersFunction_name
(name, i)
src/openpi/models/gemma_05.py:479
↓ 8 callersMethodclose
Close the websocket connection.
examples/libero/main_subtask.py:89
↓ 8 callersMethodsave
(self, directory: epath.Path, args: CallbackSave)
src/openpi/training/checkpoints.py:141
↓ 7 callersMethoddigitize
(self, tokens: jnp.ndarray)
src/openpi/models/utils/fsq_tokenizer.py:120
↓ 7 callersFunctionlog_memory_usage
Log detailed memory usage information.
scripts/train_pytorch.py:284
↓ 6 callersMethodconnect
Connect to server
scripts/async_pi05/sync_pi05_client.py:23
↓ 6 callersMethodcreate_base_config
(self, assets_dirs: pathlib.Path, model_config: _model.BaseModelConfig)
src/openpi/training/config.py:211
↓ 6 callersMethodfake_act
(self, batch_size: int = 1)
src/openpi/models/model.py:267
↓ 6 callersMethodfrom_dict
This method defines the mapping between unstructured data (i.e., nested dict) to the structured Observation format.
src/openpi/models/model.py:116
↓ 5 callersMethod_send_json
(self, websocket: WebSocketServerProtocol, payload: dict[str, Any])
scripts/async_pi05/async_pi05_websocket_server.py:211
↓ 5 callersFunctionflatten_dict
Flatten a nested dictionary. Uses '/' as the separator.
src/openpi/transforms.py:396
↓ 5 callersMethodinfer
Asynchronous inference API compatible with existing call sites.
scripts/async_pi05/async_pi05_inference.py:266
↓ 5 callersMethodload
Loads the model weights. Args: params: Parameters of the model. This is a nested structure of array-like objects that
src/openpi/training/weight_loaders.py:18
↓ 5 callersFunctionmake_attn_mask
Adapted from big_vision. Tokens can attend to valid inputs tokens which have a cumulative mask_ar smaller or equal to theirs. This way `mask_
src/openpi/models/pi05.py:21
↓ 4 callersFunction_get_frozen_state
(config: _pi0_config.Pi0Config)
src/openpi/models/pi0_test.py:7
↓ 4 callersMethod_run_blocking
(self, fn, *, use_model_lock: bool = False)
scripts/async_pi05/async_pi05_inference.py:63
↓ 4 callersFunction_to_list
(value: Any)
scripts/async_pi05/async_pi05_websocket_server.py:156
↓ 4 callersMethodcreate
(cls, host: str = "0.0.0.0", port: int = 8765, timeout: float = 120.0)
examples/libero/main_subtask_async.py:50
↓ 4 callersMethoddetokenize
Decode tokens back to text, truncating at EOS and removing padding.
src/openpi/models/tokenizer.py:312
↓ 4 callersFunctionget_arm_gripper_positions
(bot)
examples/aloha_real/robot_utils.py:176
↓ 4 callersMethodget_statistics
Compute and return the statistics of the vectors processed so far. Returns: dict: A dictionary containing the computed s
src/openpi/shared/normalize.py:73
↓ 4 callersMethodimage_cb
(self, cam_name, data)
examples/aloha_real/robot_utils.py:48
↓ 4 callersMethodinfer
(self, obs: Dict)
packages/openpi-client/src/openpi_client/websocket_client_policy.py:44
↓ 4 callersMethodobserve_continuous_inference
持续观察推理过程
scripts/async_pi05/lerobot_inference_observer.py:225
↓ 4 callersFunctionpad_to_dim
Pad an array to the target dimension with zeros along the specified axis.
src/openpi/transforms.py:479
↓ 4 callersMethodpush
Append transforms to the group and return a new group. Args: inputs: Appended to the *end* of the current input transforms.
src/openpi/transforms.py:49
↓ 4 callersMethodreset
(self, *, fake=False)
examples/aloha_real/real_env.py:139
↓ 4 callersMethodtokenize_high_low_prompt
Build the full token sequence for Pi05 hierarchical training. Constructs a structured prompt that concatenates three segments in order:
src/openpi/models/tokenizer.py:133
↓ 4 callersMethodvocab_size
(self)
src/openpi/models/utils/fsq_tokenizer.py:124
↓ 3 callersMethod_dot
(self, x: at.Array, w: at.Array, lora_weights: tuple[at.Array, at.Array] | None)
src/openpi/models/lora.py:144
↓ 3 callersFunction_get_mtime
Get the mtime of a given date at midnight UTC.
src/openpi/shared/download.py:167
↓ 3 callersFunction_joint_flip_mask
Used to convert between aloha and pi joint angles.
src/openpi/policies/aloha_policy.py:104
↓ 3 callersMethod_notify_observers
通知所有观察者
scripts/async_pi05/lerobot_inference_observer.py:149
↓ 3 callersFunction_parse_image
(image)
src/openpi/policies/libero_policy.py:20
↓ 3 callersFunction_parse_lerobot_image
parse LeRobot image to model input format, strictly corresponding to image conversion logic
src/openpi/policies/libero_subtask_policy.py:28
↓ 3 callersMethod_prepare_attention_masks_4d
Helper method to prepare 4D attention masks for transformer.
src/openpi/models_pytorch/pi0_pytorch.py:156
↓ 3 callersMethod_process_frame
(self, frame)
examples/droid/convert_droid_data_to_lerobot.py:235
↓ 3 callersMethod_save_observation
保存观察数据
scripts/async_pi05/lerobot_inference_observer.py:331
↓ 3 callersFunction_set_folder_permission
Set folder permission to be read, write and searchable.
src/openpi/shared/download.py:129
↓ 3 callersFunction_set_permission
chmod requires executable permission to be set, so we skip if the permission is already match with the target.
src/openpi/shared/download.py:120
↓ 3 callersMethodadd_observation_callback
添加观察回调函数
scripts/async_pi05/lerobot_inference_observer.py:145
↓ 3 callersMethodcompute_loss
( self, rng: at.KeyArrayLike, observation: _model.Observation, actions: _model.Actions, *, train: bool
src/openpi/models/pi0.py:189
↓ 3 callersFunctionconvert_image
(img)
src/openpi/policies/aloha_policy.py:165
↓ 3 callersMethodcreate
(self, rng: at.KeyArrayLike)
src/openpi/models/pi0_config.py:49
↓ 3 callersMethoddata_config
Get the data config for this data loader.
src/openpi/training/data_loader.py:45
↓ 3 callersMethoddisconnect
Disconnect
scripts/async_pi05/sync_pi05_client.py:35
↓ 3 callersMethodembed_prefix
( self, obs: _model.Observation )
src/openpi/models/pi05.py:135
↓ 3 callersMethodforward
Do a full training forward pass and compute the loss (batch_size x num_steps x num_motors)
src/openpi/models_pytorch/pi0_pytorch.py:316
↓ 3 callersFunctionget_arm_joint_positions
(bot)
examples/aloha_real/robot_utils.py:172
↓ 3 callersMethodget_freeze_filter
Returns the freeze filter based on the model config.
src/openpi/models/pi0_config.py:79
↓ 3 callersMethodget_input_embeddings
(self)
src/openpi/models_pytorch/transformers_replace/models/paligemma/modeling_paligemma.py:151
↓ 3 callersMethodget_observation
(self)
examples/aloha_real/real_env.py:128
↓ 3 callersMethodget_server_metadata
(self)
packages/openpi-client/src/openpi_client/websocket_client_policy.py:26
↓ 3 callersMethodinfer
(self, obs: dict, *, noise: np.ndarray | None = None)
src/openpi/policies/policy.py:70
↓ 3 callersMethodinfer
Send an inference request and await matched response.
scripts/async_pi05/async_pi05_client.py:131
↓ 3 callersMethodinitialize
Asynchronously initialize model
scripts/async_pi05/sync_pi05_inference.py:60
↓ 3 callersFunctionmake_att_2d_masks
Copied from big_vision. Tokens can attend to valid inputs tokens which have a cumulative mask_ar smaller or equal to theirs. This way `mask_a
src/openpi/models_pytorch/pi0_pytorch.py:52
↓ 3 callersFunctionmake_attn_mask
Adapted from big_vision. Tokens can attend to valid inputs tokens which have a cumulative mask_ar smaller or equal to theirs. This way `mask_
src/openpi/models/pi0.py:19
↓ 3 callersMethodobserve_single_inference
观察单次推理
scripts/async_pi05/lerobot_inference_observer.py:160
↓ 3 callersMethodprepare_images_from_lerobot
从 LeRobot 数据准备图像
scripts/async_pi05/lerobot_inference_observer.py:97
↓ 3 callersMethodprepare_observation
Prepare observation data
scripts/async_pi05/sync_pi05_inference.py:124
↓ 3 callersMethodprepare_state_from_lerobot
从 LeRobot 数据准备状态
scripts/async_pi05/lerobot_inference_observer.py:132
↓ 3 callersMethodrecord
Record a timing measurement for the given key.
examples/simple_client/main.py:50
↓ 3 callersMethodreset
Reset the agent to its initial state.
packages/openpi-client/src/openpi_client/runtime/agent.py:16
↓ 3 callersFunctionresize_image
(image, size)
examples/droid/convert_droid_data_to_lerobot.py:32
↓ 3 callersMethodrestore
(self, *args, **kwargs)
src/openpi/training/checkpoints.py:148
↓ 3 callersMethodrun
Runs the runtime loop continuously until stop() is called or the environment is done.
packages/openpi-client/src/openpi_client/runtime/runtime.py:32
↓ 3 callersFunctiontorque_on
(bot)
examples/aloha_real/robot_utils.py:242
↓ 2 callersMethod__init__
(self, config: PaliGemmaConfig)
src/openpi/models_pytorch/transformers_replace/models/paligemma/modeling_paligemma.py:138
↓ 2 callersMethod_act_tokens_to_paligemma_tokens
(self, tokens: np.ndarray | list[int])
src/openpi/models/tokenizer.py:427
↓ 2 callersFunction_apply_rope
Applies RoPE positions [B, L] to x [B, L, H, D].
src/openpi/models/gemma.py:424
↓ 2 callersFunction_apply_rope
Applies RoPE positions [B, L] to x [B, L, H, D].
src/openpi/models/gemma_05.py:460
↓ 2 callersFunction_apply_rope
Applies RoPE positions [B, L] to x [B, L, H, D].
src/openpi/models/gemma_fast.py:425
↓ 2 callersFunction_assert_quantile_stats
(norm_stats: at.PyTree[NormStats])
src/openpi/transforms.py:511
↓ 2 callersMethod_cancel_refresh_task
(self, websocket: WebSocketServerProtocol)
scripts/async_pi05/async_pi05_websocket_server.py:194
↓ 2 callersFunction_compute_flow_grad_norms
(config: _pi05_config.Pi05Config)
src/openpi/models/pi05_test.py:21
↓ 2 callersMethod_convert_observation
(self, gym_obs: dict)
examples/aloha_sim/env.py:47
↓ 2 callersFunction_default_image_path
(filename: str)
scripts/async_pi05/async_pi05_client.py:285
↓ 2 callersFunction_ensure_permissions
Since we are sharing cache directory with containerized runtime as well as training script, we need to ensure that the cache directory has the cor
src/openpi/shared/download.py:134
↓ 2 callersFunction_gated_residual
Applies gated residual connection with optional gate parameter. Args: x: Input tensor (residual) y: Output tensor to be
src/openpi/models_pytorch/transformers_replace/models/gemma/modeling_gemma.py:209
↓ 2 callersFunction_gated_residual
(x, y, gate)
src/openpi/models/gemma.py:453
↓ 2 callersFunction_gated_residual
(x, y, gate)
src/openpi/models/gemma_05.py:489
↓ 2 callersMethod_get_bins_fsq
Get bins per dimension based on codebook size, from the original FSQ paper.
src/openpi/models/utils/fsq_tokenizer.py:44
↓ 2 callersFunction_get_image
( data: dict, *, keys: tuple[str, ...], observation_key: str, images_keys: tuple[str, ...]
src/openpi/policies/libero_policy.py:48
↓ 2 callersFunction_lazy_imports
()
scripts/sync_pi05_websocket_server.py:34
next →1–100 of 901, ranked by callers