MCPcopy Create free account

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

Functions901 in github.com/Ke-Wang1017/openpi_subtask

↓ 2 callersFunction_merge_params
Merges the loaded parameters with the reference parameters. Args: loaded_params: The parameters to merge. params: The reference p
src/openpi/training/weight_loaders.py:76
↓ 2 callersFunction_normalize
(x, min_val, max_val)
src/openpi/policies/aloha_policy.py:109
↓ 2 callersFunction_parse_image
(image)
src/openpi/policies/droid_policy.py:21
↓ 2 callersFunction_parse_lerobot_image
解析LeRobot格式图像为模型输入格式,严格对应图像转换逻辑
src/openpi/policies/flexiv_new_policy.py:26
↓ 2 callersFunction_parse_lerobot_image
解析LeRobot格式图像为模型输入格式,严格对应图像转换逻辑
src/openpi/policies/flexiv_subtask_policy.py:28
↓ 2 callersMethod_preprocess_observation
Helper method to preprocess observation.
src/openpi/models_pytorch/pi0_pytorch.py:161
↓ 2 callersFunction_split_params
(state: training_utils.TrainState)
src/openpi/training/checkpoints.py:162
↓ 2 callersFunction_state_l2_norm
(state: nnx.State)
src/openpi/models/pi05_test.py:11
↓ 2 callersFunction_unnormalize
(x, min_val, max_val)
src/openpi/policies/aloha_policy.py:113
↓ 2 callersMethod_update_causal_mask
( self, attention_mask, token_type_ids=None, past_key_values=None, cac
src/openpi/models_pytorch/transformers_replace/models/paligemma/modeling_paligemma.py:164
↓ 2 callersFunctionapply_tree
( tree: at.PyTree[T], selector: at.PyTree[S], fn: Callable[[T, S], T], *, strict: bool = False )
src/openpi/transforms.py:460
↓ 2 callersMethodconnect
Connect to server and start background receiver.
scripts/async_pi05/async_pi05_client.py:34
↓ 2 callersMethodcreate
(self, rng: at.KeyArrayLike)
src/openpi/models/pi0_fast.py:97
↓ 2 callersMethodcreate_random_image
create random image as a fallback
scripts/async_pi05/sync_pi05_inference.py:107
↓ 2 callersMethodcreate_random_image
Create a random image as fallback.
scripts/async_pi05/async_pi05_inference.py:115
↓ 2 callersMethoddecode
(self, x)
src/openpi/models/gemma_fast.py:120
↓ 2 callersMethoddecode
(self, tokens: jnp.ndarray, z_grad: jax.Array | None = None)
src/openpi/models/utils/fsq_tokenizer.py:105
↓ 2 callersMethoddisconnect
Disconnect and cleanup pending requests.
scripts/async_pi05/async_pi05_client.py:48
↓ 2 callersMethodembed_inputs
( self, obs: _model.Observation )
src/openpi/models/pi0_fast.py:160
↓ 2 callersMethodembed_prefix
Embed images with SigLIP and language tokens with embedding layer to prepare for PaliGemma transformer processing.
src/openpi/models_pytorch/pi0_pytorch.py:186
↓ 2 callersMethodembed_prefix
( self, obs: _model.Observation )
src/openpi/models/pi0.py:106
↓ 2 callersMethodembed_suffix
Embed state, noisy_actions, timestep to prepare for Expert Gemma processing.
src/openpi/models_pytorch/pi0_pytorch.py:237
↓ 2 callersMethodembed_suffix
( self, obs: _model.Observation, noisy_actions: _model.Actions, timestep: at.Float[at.Array, " b"]
src/openpi/models/pi0.py:140
↓ 2 callersMethodembed_suffix
( self, obs: _model.Observation, noisy_actions: _model.Actions, timestep: at.Float[at.Array, " b"]
src/openpi/models/pi05.py:169
↓ 2 callersMethodencode
(self, inputs: jnp.ndarray)
src/openpi/models/utils/fsq_tokenizer.py:93
↓ 2 callersMethodgenerate_subtask
Generate subtask
scripts/async_pi05/sync_pi05_inference.py:208
↓ 2 callersFunctionget_cache_dir
()
src/openpi/shared/download.py:24
↓ 2 callersFunctionget_config
Get a config by name.
src/openpi/training/config.py:1174
↓ 2 callersMethodget_image_features
Obtains image last hidden states from the vision tower and apply multimodal projection. Args: pixel_values (`torch.Float
src/openpi/models_pytorch/transformers_replace/models/paligemma/modeling_paligemma.py:232
↓ 2 callersMethodget_reward
(self)
examples/aloha_real/real_env.py:136
↓ 2 callersMethodinitialize
(self)
scripts/sync_pi05_websocket_server.py:76
↓ 2 callersMethodinitialize
初始化推理引擎
scripts/async_pi05/lerobot_inference_observer.py:35
↓ 2 callersMethodinitialize
Asynchronously initialize model.
scripts/async_pi05/async_pi05_inference.py:104
↓ 2 callersMethodinputs_spec
Returns the input specification for the model. Values are jax.ShapeDtypeStruct.
src/openpi/models/model.py:260
↓ 2 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_fast.py:23
↓ 2 callersMethodmetadata
(self)
src/openpi/policies/policy.py:120
↓ 2 callersFunctionnorm_cdf
(x)
src/openpi/models_pytorch/transformers_replace/models/siglip/modeling_siglip.py:44
↓ 2 callersMethodread_camera
(self, ignore_data=False, correct_timestamp=None)
examples/droid/convert_droid_data_to_lerobot.py:241
↓ 2 callersFunctionrepeat_kv
This is the equivalent of torch.repeat_interleave(x, dim=1, repeats=n_rep). The hidden states go from (batch, num_key_value_heads, seqlen, he
src/openpi/models_pytorch/transformers_replace/models/gemma/modeling_gemma.py:197
↓ 2 callersFunctionrotate_half
Rotates half the hidden dims of the input.
src/openpi/models_pytorch/transformers_replace/models/gemma/modeling_gemma.py:163
↓ 2 callersMethodsample_noise
(self, shape, device)
src/openpi/models_pytorch/pi0_pytorch.py:172
↓ 2 callersMethodserve_forever
(self)
src/openpi/serving/websocket_policy_server.py:34
↓ 2 callersMethodstart_server
Start websocket server.
scripts/async_pi05/async_pi05_websocket_server.py:455
↓ 2 callersMethodto_bfloat16_for_selected_params
(self, precision: Literal["bfloat16", "float32"] = "bfloat16")
src/openpi/models_pytorch/gemma_pytorch.py:67
↓ 2 callersMethodto_dict
Convert the Observation to a nested dict.
src/openpi/models/model.py:139
↓ 2 callersMethodtokenize
(self, prompt: str, state: np.ndarray | None = None)
src/openpi/models/tokenizer.py:32
↓ 2 callersMethodtokenize
( self, prompt: str, state: np.ndarray, actions: np.ndarray | None )
src/openpi/models/tokenizer.py:591
↓ 2 callersFunctionunflatten_dict
Unflatten a flattened dictionary. Assumes that '/' was used as a separator.
src/openpi/transforms.py:401
↓ 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:307
↓ 1 callersMethod_act_tokens_to_paligemma_tokens
(self, tokens: np.ndarray | list[int])
src/openpi/models/tokenizer.py:531
↓ 1 callersMethod_act_tokens_to_paligemma_tokens
(self, tokens: np.ndarray | list[int])
src/openpi/models/tokenizer.py:659
↓ 1 callersMethod_adjust_histograms
Adjust histograms when min or max changes.
src/openpi/shared/normalize.py:88
↓ 1 callersFunction_build_cli_parser
()
scripts/async_pi05/async_pi05_client.py:289
↓ 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_fsspec
Download a file from a remote filesystem to the local cache, and return the local path.
src/openpi/shared/download.py:101
↓ 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_subtask.py:352
↓ 1 callersFunction_get_libero_env
Initializes and returns the LIBERO environment, along with the task description.
examples/libero/main_subtask_async.py:449
↓ 1 callersFunction_get_libero_env
Initializes and returns the LIBERO environment, along with the task description.
examples/libero/main.py:194
↓ 1 callersFunction_get_prompt
(data: dict)
src/openpi/policies/libero_policy.py:29
↓ 1 callersFunction_get_state
(data: dict)
src/openpi/policies/libero_policy.py:37
↓ 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_handle_periodic_refresh
Periodic subtask refresh loop for a connected client.
scripts/async_pi05/async_pi05_websocket_server.py:400
↓ 1 callersMethod_init_cache
Initialize KV cache with padding to cache_size. Args: k: Key tensor of shape (batch, num_heads, seq_len, head_dim) v:
src/openpi/models_pytorch/gemma_pytorch.py:112
↓ 1 callersMethod_init_cache
Initialize KV cache
src/openpi/models/gemma_05.py:163
↓ 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:222
↓ 1 callersFunction_load_weights_and_validate
Loads and validates the weights. Returns a loaded subset of the weights.
scripts/train.py:73
↓ 1 callersFunction_log_norm_values
Log normalization values used at inference time.
scripts/async_pi05/async_pi05_websocket_server.py:45
↓ 1 callersFunction_log_norm_values
Log normalization values used at inference time.
scripts/async_pi05/sync_pi05_websocket_server.py:57
↓ 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:172
↓ 1 callersMethod_norm
(self, x)
src/openpi/models_pytorch/transformers_replace/models/gemma/modeling_gemma.py:66
↓ 1 callersMethod_on_action_generated
Action generation callback function, can be overridden by subclasses
scripts/async_pi05/sync_pi05_inference.py:461
↓ 1 callersMethod_on_action_generated
Action generation callback function, can be overridden by subclasses.
scripts/async_pi05/async_pi05_inference.py:509
↓ 1 callersMethod_on_subtask_refresh
Subtask refresh callback function, can be overridden by subclasses
scripts/async_pi05/sync_pi05_inference.py:391
↓ 1 callersMethod_on_subtask_refresh
Subtask refresh callback function, can be overridden by subclasses.
scripts/async_pi05/async_pi05_inference.py:452
↓ 1 callersFunction_parse_state_csv
(state_csv: str | None)
scripts/async_pi05/async_pi05_client.py:276
↓ 1 callersMethod_periodic_subtask_refresh
Background task for periodic subtask refresh.
scripts/async_pi05/async_pi05_inference.py:397
↓ 1 callersMethod_process_request
(self, request: dict)
scripts/sync_pi05_websocket_server.py:304
↓ 1 callersFunction_quat2axisangle
Copied from robosuite: https://github.com/ARISE-Initiative/robosuite/blob/eafb81f54ffc104f905ee48a16bb15f059176ad3/robosuite/utils/transform_util
examples/libero/main_subtask.py:362
↓ 1 callersFunction_quat2axisangle
Copied from robosuite: https://github.com/ARISE-Initiative/robosuite/blob/eafb81f54ffc104f905ee48a16bb15f059176ad3/robosuite/utils/transform_util
examples/libero/main_subtask_async.py:459
↓ 1 callersFunction_quat2axisangle
Copied from robosuite: https://github.com/ARISE-Initiative/robosuite/blob/eafb81f54ffc104f905ee48a16bb15f059176ad3/robosuite/utils/transform_util
examples/libero/main.py:204
↓ 1 callersMethod_receiver_loop
Background receiver that routes messages by request_id and refresh type.
scripts/async_pi05/async_pi05_client.py:85
↓ 1 callersMethod_receiver_loop
Route websocket messages to request futures or refresh queue.
examples/libero/main_subtask_async.py:126
↓ 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_save_image_debug_bundle
Save raw + model-input images to verify preprocessing alignment.
examples/libero/main_subtask.py:330
↓ 1 callersFunction_save_image_debug_bundle
Save raw + model-input images to verify preprocessing alignment.
examples/libero/main_subtask_async.py:427
← previousnext →101–200 of 901, ranked by callers