Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/RoboTwin-Platform/RoboTwin
/ functions
Functions
4,415 in github.com/RoboTwin-Platform/RoboTwin
⨍
Functions
4,415
◇
Types & classes
876
↳
Endpoints
1
↓ 1 callers
Method
_forward_impl_film
(self, x: Tensor, film_features: List[Optional[Tensor]], flatten: bool = True)
policy/DexVLA/dex_vla/external_vision_encoder/resnet_film.py:269
↓ 1 callers
Function
_generate_json_state
Generate the json dict and state for a given episode.
policy/RDT/data/preprocess.py:140
↓ 1 callers
Function
_generate_json_state_agilex
Generate the json dict and state for a given episode.
policy/RDT/data/preprocess.py:63
↓ 1 callers
Function
_generate_json_state_nostate_ds
Generate the json dict and state for an episode in the dataset without state. If not state, we use the last action as current state.
policy/RDT/data/preprocess.py:211
↓ 1 callers
Method
_get_bins_custom
(target_codebook_size: int)
policy/pi05/src/openpi/models/utils/fsq_tokenizer.py:62
↓ 1 callers
Method
_get_bins_lfq
Get bins per dimension according to the Lookup-Free Quantization paper (2 bins per dimension)
policy/pi05/src/openpi/models/utils/fsq_tokenizer.py:76
↓ 1 callers
Function
_get_libero_env
Initializes and returns the LIBERO environment, along with the task description.
policy/pi0/examples/libero/main.py:189
↓ 1 callers
Function
_get_libero_env
Initializes and returns the LIBERO environment, along with the task description.
policy/pi05/examples/libero/main.py:189
↓ 1 callers
Method
_get_pos_embed
(self, pos_embed, H, W)
policy/TinyVLA/vla/models/internvl/modeling_intern_vit.py:154
↓ 1 callers
Function
_get_s3_transfer_manager
( session: boto3.Session, workers: int, botocore_config: botocore.config.Config | None = None, )
policy/pi0/src/openpi/shared/download.py:232
↓ 1 callers
Method
_get_train_sampler
(self)
policy/TinyVLA/vla/train/vla_trainer.py:87
↓ 1 callers
Function
_gripper_from_angular
(value)
policy/pi0/src/openpi/policies/aloha_policy.py:150
↓ 1 callers
Function
_gripper_from_angular
(value)
policy/pi05/src/openpi/policies/aloha_policy.py:140
↓ 1 callers
Function
_gripper_from_angular_inv
(value)
policy/pi0/src/openpi/policies/aloha_policy.py:162
↓ 1 callers
Function
_gripper_from_angular_inv
(value)
policy/pi05/src/openpi/policies/aloha_policy.py:153
↓ 1 callers
Function
_gripper_to_angular
(value)
policy/pi0/src/openpi/policies/aloha_policy.py:128
↓ 1 callers
Function
_gripper_to_angular
(value)
policy/pi05/src/openpi/policies/aloha_policy.py:117
↓ 1 callers
Function
_handle_file_sync
Handle syncing of files between current directory and checkpoint. Creates backups if files exist but differ, and copies current versions to
policy/openvla-oft/experiments/robot/openvla_utils.py:120
↓ 1 callers
Method
_init_cache
Initialize KV cache
policy/pi0/src/openpi/models/gemma_fast.py:160
↓ 1 callers
Method
_init_cache
Initialize KV cache
policy/pi05/src/openpi/models/gemma_fast.py:165
↓ 1 callers
Method
_intermediate_layers
Copy of timm.models.vision_transformer.VisionTransformer._intermediate_layers() with modifications to take in language embeddings as
policy/openvla-oft/prismatic/models/film_vit_wrapper.py:114
↓ 1 callers
Function
_is_openpi_url
Check if the url is an OpenPI S3 bucket url.
policy/pi0/src/openpi/shared/download.py:296
↓ 1 callers
Method
_kmeans
Simple k-means clustering algorithm adapted from Karpathy's minGPT library https://github.com/karpathy/minGPT/blob/master/play_image.
policy/DP/diffusion_policy/model/bet/action_ae/discretizers/k_means.py:39
↓ 1 callers
Method
_load_data_from_chunk
(chunk_dir, chunk_item_idx)
policy/RDT/train/dataset.py:159
↓ 1 callers
Function
_load_dataset_stats
Load dataset statistics used during training for action normalization. Args: vla: The VLA model checkpoint_path: Path to the
policy/openvla-oft/experiments/robot/openvla_utils.py:352
↓ 1 callers
Method
_load_from_checkpoint
(self, resume_from_checkpoint, model=None)
policy/DexVLA/dex_vla/train/dex_vla_trainer.py:1047
↓ 1 callers
Method
_load_from_checkpoint
(self, resume_from_checkpoint, model=None)
policy/TinyVLA/vla/train/vla_trainer.py:696
↓ 1 callers
Method
_load_norm_stats
(self, assets_dir: epath.Path, asset_id: str | None)
policy/pi0/src/openpi/training/config.py:155
↓ 1 callers
Method
_load_norm_stats
(self, assets_dir: epath.Path, asset_id: str | None)
policy/pi05/src/openpi/training/config.py:189
↓ 1 callers
Function
_load_weights_and_validate
Loads and validates the weights. Returns a loaded subset of the weights.
policy/pi0/scripts/train.py:85
↓ 1 callers
Function
_load_weights_and_validate
Loads and validates the weights. Returns a loaded subset of the weights.
policy/pi05/scripts/train.py:85
↓ 1 callers
Method
_locate_transition
(self, index)
policy/DexVLA/data_utils/dataset.py:63
↓ 1 callers
Method
_locate_transition
(self, index)
policy/TinyVLA/data_utils/dataset.py:62
↓ 1 callers
Method
_make_lora_eqns
(self, eqn: str)
policy/pi0/src/openpi/models/lora.py:67
↓ 1 callers
Method
_make_lora_eqns
(self, eqn: str)
policy/pi05/src/openpi/models/lora.py:67
↓ 1 callers
Function
_mask_targets
(target, tokenized_lens, speakers)
policy/LLaVA-VLA/llava/train/train.py:276
↓ 1 callers
Function
_max_by_axis
(the_list)
policy/ACT/detr/util/misc.py:285
↓ 1 callers
Function
_max_by_axis
(the_list)
policy/DexVLA/dex_vla/external_vision_encoder/misc.py:275
↓ 1 callers
Function
_max_by_axis
(the_list)
policy/DexVLA/policy_heads/util/misc.py:275
↓ 1 callers
Function
_merge_params
(train_state: training_utils.TrainState, params: dict[str, at.Params])
policy/pi0/src/openpi/training/checkpoints.py:167
↓ 1 callers
Function
_merge_params
(train_state: training_utils.TrainState, params: dict[str, at.Params])
policy/pi05/src/openpi/training/checkpoints.py:155
↓ 1 callers
Method
_naive_attn
(self, x)
policy/TinyVLA/vla/models/internvl/modeling_intern_vit.py:210
↓ 1 callers
Method
_norm
(self, x)
policy/pi05/src/openpi/models_pytorch/transformers_replace/models/gemma/modeling_gemma.py:66
↓ 1 callers
Function
_onnx_nested_tensor_from_tensor_list
(tensor_list: List[Tensor])
policy/ACT/detr/util/misc.py:346
↓ 1 callers
Function
_onnx_nested_tensor_from_tensor_list
(tensor_list: List[Tensor])
policy/DexVLA/dex_vla/external_vision_encoder/misc.py:335
↓ 1 callers
Function
_onnx_nested_tensor_from_tensor_list
(tensor_list: List[Tensor])
policy/DexVLA/policy_heads/util/misc.py:335
↓ 1 callers
Function
_parse_example
(episode_path)
policy/openvla-oft/rlds_dataset_builder/aloha1_put_X_into_pot_300_demos/aloha1_put_X_into_pot_300_demos_dataset_builder.py:20
↓ 1 callers
Function
_parse_example
(episode_path, demo_id)
policy/openvla-oft/rlds_dataset_builder/LIBERO_Spatial/LIBERO_Spatial_dataset_builder.py:18
↓ 1 callers
Function
_parse_example
(episode_path, demo_id)
policy/openvla-oft/rlds_dataset_builder/LIBERO_Object/LIBERO_Object_dataset_builder.py:18
↓ 1 callers
Function
_parse_example
(episode_path, demo_id)
policy/openvla-oft/rlds_dataset_builder/LIBERO_Goal/LIBERO_Goal_dataset_builder.py:18
↓ 1 callers
Method
_patch_layer_scales
Patch all LayerScale modules to be compatible with HF's parameter naming. HF Transformers overwrites parameters with names containin
policy/openvla-oft/prismatic/extern/hf/modeling_prismatic.py:141
↓ 1 callers
Method
_prepare_input_for_action_prediction
Prepares input for action prediction by adding necessary tokens
policy/openvla-oft/prismatic/extern/hf/modeling_prismatic.py:734
↓ 1 callers
Method
_prepare_labels_for_action_prediction
Creates labels tensor for action prediction if not provided
policy/openvla-oft/prismatic/extern/hf/modeling_prismatic.py:757
↓ 1 callers
Function
_quat2axisangle
Copied from robosuite: https://github.com/ARISE-Initiative/robosuite/blob/eafb81f54ffc104f905ee48a16bb15f059176ad3/robosuite/utils/transform_util
policy/pi0/examples/libero/main.py:203
↓ 1 callers
Function
_quat2axisangle
Copied from robosuite: https://github.com/ARISE-Initiative/robosuite/blob/eafb81f54ffc104f905ee48a16bb15f059176ad3/robosuite/utils/transform_util
policy/pi05/examples/libero/main.py:203
↓ 1 callers
Method
_recv_response
Receive response with numpy array reconstruction
script/eval_policy_client.py:184
↓ 1 callers
Method
_regression_or_discrete_prediction
Run L1 regression-based continuous action prediction or discrete action tokens prediction.
policy/openvla-oft/prismatic/extern/hf/modeling_prismatic.py:877
↓ 1 callers
Method
_reset_gripper
Set to position mode and do position resets: first open then close. Then change back to PWM mode
policy/pi0/examples/aloha_real/real_env.py:117
↓ 1 callers
Method
_reset_gripper
Set to position mode and do position resets: first open then close. Then change back to PWM mode
policy/DexVLA/aloha_scripts/real_env.py:98
↓ 1 callers
Method
_reset_gripper
Set to position mode and do position resets: first open then close. Then change back to PWM mode
policy/openvla-oft/experiments/robot/aloha/real_env.py:98
↓ 1 callers
Method
_reset_gripper
Set to position mode and do position resets: first open then close. Then change back to PWM mode
policy/pi05/examples/aloha_real/real_env.py:117
↓ 1 callers
Method
_reset_joints
(self)
policy/pi0/examples/aloha_real/real_env.py:110
↓ 1 callers
Method
_reset_joints
(self)
policy/DexVLA/aloha_scripts/real_env.py:94
↓ 1 callers
Method
_reset_joints
(self)
policy/openvla-oft/experiments/robot/aloha/real_env.py:94
↓ 1 callers
Method
_reset_joints
(self)
policy/pi05/examples/aloha_real/real_env.py:110
↓ 1 callers
Method
_reset_parameters
(self)
policy/ACT/detr/models/transformer.py:52
↓ 1 callers
Function
_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
policy/pi0/packages/openpi-client/src/openpi_client/image_tools.py:38
↓ 1 callers
Function
_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
policy/pi05/packages/openpi-client/src/openpi_client/image_tools.py:38
↓ 1 callers
Method
_run_diffusion_prediction
Run diffusion-based action prediction
policy/openvla-oft/prismatic/extern/hf/modeling_prismatic.py:793
↓ 1 callers
Method
_run_episode
Runs a single episode.
policy/pi0/packages/openpi-client/src/openpi_client/runtime/runtime.py:50
↓ 1 callers
Method
_run_episode
Runs a single episode.
policy/pi05/packages/openpi-client/src/openpi_client/runtime/runtime.py:50
↓ 1 callers
Method
_safe_load
(self, index)
policy/RDT/train/dataset.py:197
↓ 1 callers
Method
_sample_to_data
(self, sample)
policy/DP3/3D-Diffusion-Policy/diffusion_policy_3d/dataset/robot_dataset.py:86
↓ 1 callers
Method
_save
(self, output_dir: Optional[str] = None, state_dict=None)
policy/DexVLA/dex_vla/train/dex_vla_trainer.py:1259
↓ 1 callers
Method
_save
(self, output_dir: Optional[str] = None, state_dict=None)
policy/TinyVLA/vla/train/vla_trainer.py:905
↓ 1 callers
Method
_save_checkpoint
(self, model, trial, metrics=None, using_ema=False)
policy/DexVLA/dex_vla/train/dex_vla_trainer.py:1190
↓ 1 callers
Method
_send_recv
Send request and receive response with numpy array support
script/eval_policy_client.py:166
↓ 1 callers
Function
_set_file_permission
Set all files to be read & writable, if it is a script, keep it as a script.
policy/pi0/src/openpi/shared/download.py:276
↓ 1 callers
Function
_set_file_permission
Set all files to be read & writable, if it is a script, keep it as a script.
policy/pi05/src/openpi/shared/download.py:149
↓ 1 callers
Function
_setup_folder_permission_between_cache_dir_and_path
(path: pathlib.Path)
policy/pi0/src/openpi/shared/download.py:268
↓ 1 callers
Function
_setup_folder_permission_between_cache_dir_and_path
(path: pathlib.Path)
policy/pi05/src/openpi/shared/download.py:141
↓ 1 callers
Function
_should_invalidate_cache
Invalidate the cache if it is expired. Return True if the cache was invalidated.
policy/pi0/src/openpi/shared/download.py:316
↓ 1 callers
Function
_should_invalidate_cache
Invalidate the cache if it is expired. Return True if the cache was invalidated.
policy/pi05/src/openpi/shared/download.py:185
↓ 1 callers
Method
_split_generators
Define data splits.
policy/openvla-oft/datasets/conversion_utils.py:33
↓ 1 callers
Method
_split_generators
Define data splits.
policy/openvla-oft/rlds_dataset_builder/aloha1_put_X_into_pot_300_demos/conversion_utils.py:33
↓ 1 callers
Method
_split_generators
Define data splits.
policy/openvla-oft/rlds_dataset_builder/LIBERO_Spatial/conversion_utils.py:33
↓ 1 callers
Method
_split_generators
Define data splits.
policy/openvla-oft/rlds_dataset_builder/LIBERO_Object/conversion_utils.py:33
↓ 1 callers
Method
_split_generators
Define data splits.
policy/openvla-oft/rlds_dataset_builder/LIBERO_10/conversion_utils.py:33
↓ 1 callers
Method
_split_generators
Define data splits.
policy/openvla-oft/rlds_dataset_builder/LIBERO_Goal/conversion_utils.py:33
↓ 1 callers
Function
_sqrt_positive_part
Returns torch.sqrt(torch.max(0, x)) but with a zero subgradient where x is 0.
policy/DexVLA/torch_utils.py:272
↓ 1 callers
Method
_step
A single step of the runtime loop.
policy/pi0/packages/openpi-client/src/openpi_client/runtime/runtime.py:80
↓ 1 callers
Method
_step
A single step of the runtime loop.
policy/pi05/packages/openpi-client/src/openpi_client/runtime/runtime.py:80
↓ 1 callers
Function
_tolist
(pose: sapien.Pose | list | np.ndarray)
envs/utils/transforms.py:247
↓ 1 callers
Function
_trunc_normal_
(tensor, mean, std, a, b)
policy/pi05/src/openpi/models_pytorch/transformers_replace/models/siglip/modeling_siglip.py:41
↓ 1 callers
Method
_unformat_action_to_joint
Unformat the unified action vector into the joint action to be executed. Args: action (torch.Tensor): The unified action
policy/RDT/scripts/agilex_model.py:223
↓ 1 callers
Method
_unformat_action_to_joint
(self, action)
policy/RDT/scripts/maniskill_model.py:232
↓ 1 callers
Method
_unnormalize_actions
Unnormalize actions using dataset statistics
policy/openvla-oft/prismatic/extern/hf/modeling_prismatic.py:772
↓ 1 callers
Method
_update_cache
Update KV cache with new values
policy/pi0/src/openpi/models/gemma_fast.py:170
↓ 1 callers
Method
_update_cache
Update KV cache with new values
policy/pi05/src/openpi/models/gemma_fast.py:175
↓ 1 callers
Method
_update_causal_mask
( self, attention_mask: torch.Tensor, input_tensor: torch.Tensor, cache_positi
policy/DexVLA/dex_vla/models/qwen2_vl_modules.py:1225
← previous
next →
901–1,000 of 4,415, ranked by callers