MCPcopy Create free account

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

Functions901 in github.com/Ke-Wang1017/openpi_subtask

↓ 1 callersMethodload_lerobot_episode
加载 LeRobot 格式的 episode 数据
scripts/async_pi05/lerobot_inference_observer.py:42
↓ 1 callersFunctionload_norm_stats
Load normalization statistics from checkpoint or config assets.
scripts/async_pi05/async_pi05_websocket_server.py:61
↓ 1 callersFunctionload_norm_stats
Load normalization statistics from checkpoint or config assets.
scripts/async_pi05/sync_pi05_websocket_server.py:73
↓ 1 callersMethodload_pytorch
(self, train_config, weight_path: str)
src/openpi/models/model.py:253
↓ 1 callersFunctionload_raw_episode_data
( ep_path: Path, )
examples/aloha_real/convert_aloha_data_to_lerobot.py:164
↓ 1 callersFunctionload_raw_images_per_camera
(ep: h5py.File, cameras: list[str])
examples/aloha_real/convert_aloha_data_to_lerobot.py:145
↓ 1 callersFunctionload_trajectory
( filepath=None, read_cameras=True, # noqa: FBT002 recording_folderpath=None, camera_kwargs={
examples/droid/convert_droid_data_to_lerobot.py:404
↓ 1 callersMethodloss
( self, action: jnp.ndarray, *, obs: jnp.ndarray | None = None, train: bool = True )
src/openpi/models/utils/fsq_tokenizer.py:446
↓ 1 callersFunctionlr_schedule
(step: int)
scripts/train_pytorch.py:472
↓ 1 callersFunctionmain
(config: _config.TrainConfig)
scripts/train.py:194
↓ 1 callersFunctionmain
()
scripts/train_pytorch.py:625
↓ 1 callersFunctionmain
()
scripts/sync_pi05_websocket_server.py:388
↓ 1 callersFunctionmain
(args: Args)
scripts/serve_policy.py:100
↓ 1 callersFunctionmain
Main function
scripts/async_pi05/sync_pi05_client.py:324
↓ 1 callersFunctionmain
()
scripts/async_pi05/async_pi05_websocket_server.py:494
↓ 1 callersFunctionmain
Test asynchronous inference server
scripts/async_pi05/sync_pi05_inference.py:468
↓ 1 callersFunctionmain
Start server
scripts/async_pi05/sync_pi05_websocket_server.py:434
↓ 1 callersFunctionmain
()
scripts/async_pi05/async_pi05_client.py:383
↓ 1 callersFunctionmain
测试 LeRobot 推理观察器
scripts/async_pi05/lerobot_inference_observer.py:370
↓ 1 callersFunctionmain
Quick smoke test entrypoint.
scripts/async_pi05/async_pi05_inference.py:516
↓ 1 callersFunctionmain
主函数
scripts/async_pi05/start_server.py:54
↓ 1 callersFunctionmain
(args: Args)
examples/simple_client/main.py:117
↓ 1 callersFunctionmain
(args: Args)
examples/droid/main.py:73
↓ 1 callersFunctionmake_block_causal_attention_matrix
(q: jnp.ndarray, k: jnp.ndarray, bs_q: int, bs_k: int)
src/openpi/models/utils/fsq_tokenizer.py:238
↓ 1 callersFunctionmap_image_keys_to_model
Map input image keys to model keys and inject a right wrist placeholder when missing.
scripts/async_pi05/async_pi05_websocket_server.py:31
↓ 1 callersFunctionmap_image_keys_to_model
Map input image keys to model keys (matching LiberoInputs/LiberoSubtaskInputs). The model expects: base_0_rgb, left_wrist_0_rgb, right_wrist_
scripts/async_pi05/sync_pi05_websocket_server.py:34
↓ 1 callersMethodmark_episode_complete
Marks the end of an episode.
packages/openpi-client/src/openpi_client/runtime/runtime.py:46
↓ 1 callersFunctionmove_arms
(bot_list, target_pose_list, move_time=1)
examples/aloha_real/robot_utils.py:180
↓ 1 callersFunctionmove_grippers
(bot_list, target_pose_list, move_time)
examples/aloha_real/robot_utils.py:193
↓ 1 callersMethodmulti_modal_projector
(self)
src/openpi/models_pytorch/transformers_replace/models/paligemma/modeling_paligemma.py:426
↓ 1 callersFunctionnormalize_state
Normalize state using quantile stats from norm_stats and pad to expected dimension. Args: state: Raw state array (e.g., 8D for LIBERO
scripts/async_pi05/async_pi05_websocket_server.py:90
↓ 1 callersFunctionnormalize_state
Normalize state using quantile stats from norm_stats and pad to expected dimension. Args: state: Raw state array (e.g., 8D for LIBERO
scripts/async_pi05/sync_pi05_websocket_server.py:106
↓ 1 callersMethodon_episode_end
Called when an episode ends.
packages/openpi-client/src/openpi_client/runtime/subscriber.py:19
↓ 1 callersMethodon_episode_start
Called when an episode starts.
packages/openpi-client/src/openpi_client/runtime/subscriber.py:11
↓ 1 callersMethodon_step
Append a step to the episode.
packages/openpi-client/src/openpi_client/runtime/subscriber.py:15
↓ 1 callersFunctionpopulate_dataset
( dataset: LeRobotDataset, hdf5_files: list[Path], task: str, episodes: list[int] | None = Non
examples/aloha_real/convert_aloha_data_to_lerobot.py:192
↓ 1 callersFunctionposemb_sincos
Computes sine-cosine positional embedding vectors for scalar positions.
src/openpi/models/pi0.py:48
↓ 1 callersFunctionposemb_sincos
Computes sine-cosine positional embedding vectors for scalar positions.
src/openpi/models/pi05.py:75
↓ 1 callersFunctionposemb_sincos_2d
Follows the MoCo v3 logic.
src/openpi/models/siglip.py:27
↓ 1 callersMethodprepare_observation
( self, images: dict[str, np.ndarray], high_level_prompt: str, low_level_promp
scripts/sync_pi05_websocket_server.py:118
↓ 1 callersMethodprepare_observation
Prepare model-ready observation data.
scripts/async_pi05/async_pi05_inference.py:133
↓ 1 callersFunctionprevent_keyboard_interrupt
Temporarily prevent keyboard interrupts by delaying them until after the protected code.
examples/droid/main.py:55
↓ 1 callersMethodprint_all_stats
Print statistics for all keys in a concise format.
examples/simple_client/main.py:70
↓ 1 callersMethodprocess_request
Process inference request - generates subtask first, then actions. This is a simplified synchronous approach where: 1. Subtas
scripts/async_pi05/async_pi05_websocket_server.py:248
↓ 1 callersMethodprocess_request
Process inference request - generates subtask first, then actions. This is a simplified synchronous approach where: 1. Subtas
scripts/async_pi05/sync_pi05_websocket_server.py:268
↓ 1 callersFunctionput_along_last_axis
Like np.put_along_axis(..., axis=-1), since jax is missing it.
src/openpi/models/pi0_fast.py:67
↓ 1 callersFunctionput_along_last_axis
Like np.put_along_axis(..., axis=-1), since jax is missing it.
src/openpi/models/pi05.py:65
↓ 1 callersMethodread_cameras
(self, index=None, camera_type_dict={}, timestamp_dict={})
examples/droid/convert_droid_data_to_lerobot.py:296
↓ 1 callersMethodread_timestep
(self, index=None, keys_to_ignore=[])
examples/droid/convert_droid_data_to_lerobot.py:381
↓ 1 callersMethodregister_client
(self, websocket: WebSocketServerProtocol)
scripts/async_pi05/async_pi05_websocket_server.py:189
↓ 1 callersMethodregister_client
Register new client
scripts/async_pi05/sync_pi05_websocket_server.py:212
↓ 1 callersFunctionrun_from_cli
(args: argparse.Namespace)
scripts/async_pi05/async_pi05_client.py:344
↓ 1 callersMethodsample_actions
( self, rng: at.KeyArrayLike, observation: _model.Observation, *, num_
src/openpi/models/pi0.py:217
↓ 1 callersFunctionsample_beta
(alpha, beta, bsize, device)
src/openpi/models_pytorch/pi0_pytorch.py:45
↓ 1 callersMethodsample_low_level_task
( self, rng: at.KeyArrayLike, observation: _model.Observation, max_decoding_st
src/openpi/models/pi05.py:355
↓ 1 callersMethodsample_time
(self, bsize, device)
src/openpi/models_pytorch/pi0_pytorch.py:181
↓ 1 callersFunctionsave_checkpoint
Save a checkpoint with model state, optimizer state, and metadata.
scripts/train_pytorch.py:149
↓ 1 callersFunctionserialize_json
Serialize the running statistics to a JSON string.
src/openpi/shared/normalize.py:124
↓ 1 callersMethodserve_forever
(self, *, skip_init: bool = False)
scripts/sync_pi05_websocket_server.py:349
↓ 1 callersMethodset_decoder
(self, decoder)
src/openpi/models_pytorch/transformers_replace/models/paligemma/modeling_paligemma.py:158
↓ 1 callersMethodset_frame_index
(self, index)
examples/droid/convert_droid_data_to_lerobot.py:224
↓ 1 callersMethodset_gripper_pose
(self, left_gripper_desired_pos_normalized, right_gripper_desired_pos_normalized)
examples/aloha_real/real_env.py:98
↓ 1 callersMethodset_input_embeddings
(self, value)
src/openpi/models_pytorch/transformers_replace/models/paligemma/modeling_paligemma.py:155
↓ 1 callersFunctionset_jax_cpu_backend_if_no_gpu
()
src/openpi/conftest.py:7
↓ 1 callersMethodset_reading_parameters
( self, image=True, # noqa: FBT002 concatenate_images=False, # noqa: FBT002
examples/droid/convert_droid_data_to_lerobot.py:198
↓ 1 callersFunctionset_seed
(seed: int, local_rank: int)
scripts/train_pytorch.py:118
↓ 1 callersFunctionsetup_ddp
()
scripts/train_pytorch.py:94
↓ 1 callersMethodsetup_robots
(self)
examples/aloha_real/real_env.py:62
↓ 1 callersFunctionslice_gemma_state_dict
Convert Gemma JAX parameters to PyTorch format.
examples/convert_jax_model_to_pytorch.py:271
↓ 1 callersFunctionslice_initial_orbax_checkpoint
Load and process params by restoring via JAX model loader first. This respects dtype conversions that occur during model restore.
examples/convert_jax_model_to_pytorch.py:396
↓ 1 callersFunctionslice_paligemma_state_dict
Convert PaliGemma JAX parameters to PyTorch format.
examples/convert_jax_model_to_pytorch.py:50
↓ 1 callersMethodstart_continuous_action_generation
Continuously generate action sequences
scripts/async_pi05/sync_pi05_inference.py:409
↓ 1 callersFunctionstart_server
启动服务器
scripts/async_pi05/start_server.py:25
↓ 1 callersMethodstart_server
Start WebSocket server skip_init: If True, skip model initialization, only for connectivity testing.
scripts/async_pi05/sync_pi05_websocket_server.py:393
↓ 1 callersMethodstep
(carry)
src/openpi/models/pi0.py:239
↓ 1 callersFunctiontest_basic_functionality
测试基本功能
scripts/async_pi05/test_lerobot_observer.py:21
↓ 1 callersFunctiontest_batch_inference
Test batch inference requests
scripts/async_pi05/sync_pi05_client.py:215
↓ 1 callersFunctiontest_periodic_refresh
Test periodic refresh functionality
scripts/async_pi05/sync_pi05_client.py:267
↓ 1 callersFunctiontest_single_inference
Test single inference request
scripts/async_pi05/sync_pi05_client.py:175
↓ 1 callersMethodtokenize
( self, prompt: str, state: np.ndarray, actions: np.ndarray | None )
src/openpi/models/tokenizer.py:336
↓ 1 callersMethodtokenize_high_level_prompt
(self, high_prompt: str)
src/openpi/models/tokenizer.py:111
↓ 1 callersFunctiontorque_off
(bot)
examples/aloha_real/robot_utils.py:237
↓ 1 callersFunctiontrain_loop
(config: _config.TrainConfig)
scripts/train_pytorch.py:309
↓ 1 callersFunctiontransform_dataset
Transform the dataset by applying the data transforms.
src/openpi/training/data_loader.py:176
↓ 1 callersFunctiontransform_iterable_dataset
Transform the dataset by applying the data transforms.
src/openpi/training/data_loader.py:198
↓ 1 callersFunctiontree_to_info
Converts a PyTree into a human-readable string for logging. Optionally, `interp_func` can be provided to convert the leaf values to more meaningfu
src/openpi/training/utils.py:27
↓ 1 callersFunctiontrunc_normal_tf_
Fills the input Tensor with values drawn from a truncated normal distribution. The values are effectively drawn from the normal distribution :
src/openpi/models_pytorch/transformers_replace/models/siglip/modeling_siglip.py:77
↓ 1 callersMethodundigitize
(self, digits: jnp.ndarray)
src/openpi/models/utils/fsq_tokenizer.py:117
↓ 1 callersFunctionunnormalize_actions
Unnormalize model actions to action space.
scripts/async_pi05/async_pi05_websocket_server.py:131
↓ 1 callersFunctionunnormalize_actions
Unnormalize actions using quantile stats from norm_stats. Args: actions: Normalized action array from model output norm_stats
scripts/async_pi05/sync_pi05_websocket_server.py:149
↓ 1 callersMethodunregister_client
(self, websocket: WebSocketServerProtocol)
scripts/async_pi05/async_pi05_websocket_server.py:205
↓ 1 callersMethodunregister_client
Unregister client
scripts/async_pi05/sync_pi05_websocket_server.py:217
↓ 1 callersMethodvision_tower
(self)
src/openpi/models_pytorch/transformers_replace/models/paligemma/modeling_paligemma.py:422
↓ 1 callersMethodwrite_parquet
Save the timings to a parquet file.
examples/simple_client/main.py:109
FunctionModule
Factory function, because linen really don't like what I'm doing!
src/openpi/models/siglip.py:293
Method__call__
Apply transformation to the data. Args: data: The data to apply the transform to. This is a possibly nested dictionary that conta
src/openpi/transforms.py:25
Method__call__
(self, data: DataDict)
src/openpi/transforms.py:68
Method__call__
(self, data: DataDict)
src/openpi/transforms.py:99
Method__call__
(self, data: DataDict)
src/openpi/transforms.py:108
Method__call__
(self, data: DataDict)
src/openpi/transforms.py:126
← previousnext →301–400 of 901, ranked by callers