MCPcopy Create free account

hub / github.com/RoboTwin-Platform/RoboTwin / functions

Functions4,415 in github.com/RoboTwin-Platform/RoboTwin

↓ 4 callersFunctionsave_dirty_bit
Save the dirty bit to the chunk directory.
policy/RDT/data/producer.py:50
↓ 4 callersFunctionsave_rollout_video
Saves an MP4 replay of an episode.
policy/openvla-oft/experiments/robot/aloha/aloha_utils.py:69
↓ 4 callersFunctionset_seed
(seed)
policy/ACT/utils.py:235
↓ 4 callersFunctionsetup_task_config
Load or create a task configuration and set up robot embodiments. Args: task_name (str): Task name. Returns: tuple: (Ta
code_gen/test_gen_code.py:157
↓ 4 callersMethodstep
(self, new_model)
policy/DP3/3D-Diffusion-Policy/diffusion_policy_3d/model/diffusion/ema_model.py:58
↓ 4 callersFunctionto_tensor
Converts all numpy arrays in nested dictionary or list or tuple to torch tensors (and leaves existing torch Tensors as-is), and returns a
policy/DP/diffusion_policy/model/common/tensor_util.py:279
↓ 4 callersFunctiontorque_off
(bot)
policy/DexVLA/aloha_scripts/robot_utils.py:181
↓ 4 callersMethodtrans_mat
(to_mat: np.ndarray, from_mat: np.ndarray, scale: float = 1.0)
envs/utils/transforms.py:121
↓ 4 callersMethodupdate_config
(self, save: bool = False)
script/create_object_data.py:287
↓ 4 callersMethodupdate_obs
(self, observation)
policy/DP/dp_model.py:20
↓ 4 callersMethodvocab_size
(self)
policy/pi05/src/openpi/models/utils/fsq_tokenizer.py:124
↓ 3 callersMethod__init__
(self, backbone, position_embedding)
policy/ACT/detr/models/backbone.py:106
↓ 3 callersMethod__init__
(self)
policy/LLaVA-VLA/llava/model/multimodal_projector/builder.py:7
↓ 3 callersMethod__init__
(self, use_fused_vision_backbone: bool, vision_dim: int, llm_dim: int)
policy/openvla-oft/prismatic/extern/hf/modeling_prismatic.py:232
↓ 3 callersMethod__init__
(self, hidden_size, num_heads, **block_kwargs)
policy/RDT/models/rdt/blocks.py:145
↓ 3 callersMethod_build_multimodal_attention
Build multimodal embeddings and attention mask
policy/openvla-oft/prismatic/extern/hf/modeling_prismatic.py:461
↓ 3 callersMethod_dot
(self, x: at.Array, w: at.Array, lora_weights: tuple[at.Array, at.Array] | None)
policy/pi0/src/openpi/models/lora.py:143
↓ 3 callersMethod_dot
(self, x: at.Array, w: at.Array, lora_weights: tuple[at.Array, at.Array] | None)
policy/pi05/src/openpi/models/lora.py:144
↓ 3 callersFunction_fit
( data: Union[torch.Tensor, np.ndarray, zarr.Array], last_n_dims=1, dtype=torch.float32, mode=
policy/DP/diffusion_policy/model/common/normalizer.py:192
↓ 3 callersFunction_fit
( data: Union[torch.Tensor, np.ndarray, zarr.Array], last_n_dims=1, dtype=torch.float32, mode=
policy/DP3/3D-Diffusion-Policy/diffusion_policy_3d/model/common/normalizer.py:192
↓ 3 callersFunction_get_mtime
Get the mtime of a given date at midnight UTC.
policy/pi05/src/openpi/shared/download.py:169
↓ 3 callersMethod_get_obs
(self)
policy/openvla-oft/experiments/robot/aloha/real_env.py:103
↓ 3 callersFunction_joint_flip_mask
Used to convert between aloha and pi joint angles.
policy/pi0/src/openpi/policies/aloha_policy.py:115
↓ 3 callersFunction_joint_flip_mask
Used to convert between aloha and pi joint angles.
policy/pi05/src/openpi/policies/aloha_policy.py:104
↓ 3 callersFunction_normalize
(x, min_val, max_val)
policy/pi0/src/openpi/policies/aloha_policy.py:120
↓ 3 callersMethod_prepare_attention_masks_4d
Helper method to prepare 4D attention masks for transformer.
policy/pi05/src/openpi/models_pytorch/pi0_pytorch.py:156
↓ 3 callersMethod_process_action_masks
Helper to get action masks from labels
policy/openvla-oft/prismatic/extern/hf/modeling_prismatic.py:431
↓ 3 callersMethod_resolve_array_chunks
(cls, chunks: Union[dict, tuple], key, array)
policy/DP/diffusion_policy/common/replay_buffer.py:343
↓ 3 callersMethod_resolve_array_chunks
(cls, chunks: Union[dict, tuple], key, array)
policy/DP3/3D-Diffusion-Policy/diffusion_policy_3d/common/replay_buffer.py:349
↓ 3 callersMethod_resolve_array_compressor
(cls, compressors: Union[dict, str, numcodecs.abc.Codec], key, array)
policy/DP/diffusion_policy/common/replay_buffer.py:327
↓ 3 callersMethod_resolve_array_compressor
(cls, compressors: Union[dict, str, numcodecs.abc.Codec], key, array)
policy/DP3/3D-Diffusion-Policy/diffusion_policy_3d/common/replay_buffer.py:333
↓ 3 callersFunction_run
(command)
policy/ACT/detr/util/misc.py:261
↓ 3 callersFunction_run
(command)
policy/DexVLA/dex_vla/external_vision_encoder/misc.py:252
↓ 3 callersFunction_run
(command)
policy/DexVLA/policy_heads/util/misc.py:252
↓ 3 callersMethod_save
(self, output_dir: Optional[str] = None, state_dict=None)
policy/LLaVA-VLA/llava/train/llava_trainer.py:251
↓ 3 callersFunction_set_folder_permission
Set folder permission to be read, write and searchable.
policy/pi0/src/openpi/shared/download.py:258
↓ 3 callersFunction_set_folder_permission
Set folder permission to be read, write and searchable.
policy/pi05/src/openpi/shared/download.py:131
↓ 3 callersFunction_set_permission
chmod requires executable permission to be set, so we skip if the permission is already match with the target.
policy/pi0/src/openpi/shared/download.py:249
↓ 3 callersFunction_set_permission
chmod requires executable permission to be set, so we skip if the permission is already match with the target.
policy/pi05/src/openpi/shared/download.py:122
↓ 3 callersFunction_unnormalize
(x, min_val, max_val)
policy/pi0/src/openpi/policies/aloha_policy.py:124
↓ 3 callersMethodadd_centroid_marker
Add a marker for the centroid. Returns: Updated scene with centroid marker
description/utils/get_image_from_glb.py:242
↓ 3 callersMethodadd_face_arrows
Add arrows pointing from each face center to the centroid. Returns: Updated scene with face arrows
description/utils/get_image_from_glb.py:228
↓ 3 callersFunctionapply_multimodal_rotary_pos_emb
Applies Rotary Position Embedding with Multimodal Sections to the query and key tensors (https://qwenlm.github.io/blog/qwen2-vl/). Explanation:
policy/DexVLA/dex_vla/models/qwen2_vl_modules.py:207
↓ 3 callersMethodapply_transform
Apply `functional` variant of TIMM's Transform = Compose([Resize -> CenterCrop -> ToTensor -> Normalize])
policy/openvla-oft/prismatic/extern/hf/processing_prismatic.py:128
↓ 3 callersFunctionbinarize_gripper_actions
Converts gripper actions from continuous to binary values (0 and 1). We exploit that fact that most of the time, the gripper is fully open (
policy/openvla-oft/prismatic/vla/datasets/rlds/utils/data_utils.py:97
↓ 3 callersMethodbuild_condition_adapter
(self, projector_type, in_features, out_features)
policy/RDT/models/rdt_runner.py:91
↓ 3 callersFunctioncapitalize_and_period
Capitalize the first letter of a string and add a period to the end if it's not there.
policy/RDT/data/utils.py:229
↓ 3 callersFunctioncheck_chunks_compatible
(chunks: tuple, shape: tuple)
policy/DP/diffusion_policy/common/replay_buffer.py:11
↓ 3 callersFunctioncheck_chunks_compatible
(chunks: tuple, shape: tuple)
policy/DP3/3D-Diffusion-Policy/diffusion_policy_3d/common/replay_buffer.py:12
↓ 3 callersMethodcheck_success
(self, target=0.6)
envs/open_microwave.py:102
↓ 3 callersFunctioncompress_single_image
将单张图片压缩为 JPEG 格式的二进制数据。 参数: img (numpy.ndarray): 输入的图像数组,形状为 (height, width, channels)。 返回: compressed_data (bytes): 压缩
policy/DexVLA/deploy_policy.py:186
↓ 3 callersMethodcompute_loss
(self, batch)
policy/DP3/3D-Diffusion-Policy/diffusion_policy_3d/policy/dp3.py:269
↓ 3 callersMethodconfigure_optimizers
This long function is unfortunately doing something very simple and is being very defensive: We are separating out all parameters of
policy/DP/diffusion_policy/model/bet/libraries/mingpt/model.py:158
↓ 3 callersFunctionconv1x1
1x1 convolution
policy/DexVLA/dex_vla/external_vision_encoder/resnet_film.py:34
↓ 3 callersFunctionconv3x3
3x3 convolution with padding
policy/DexVLA/dex_vla/external_vision_encoder/resnet_film.py:20
↓ 3 callersFunctioncount_parameters
Counts and prints the number of trainable parameters in a module. Args: module (nn.Module): PyTorch module. module_name (str
policy/openvla-oft/vla-scripts/finetune.py:261
↓ 3 callersMethodcreate
( self, lr: optax.ScalarOrSchedule, weight_decay_mask: at.PyTree | None = None, )
policy/pi0/src/openpi/training/optimizer.py:104
↓ 3 callersMethodcreate_base_config
(self, assets_dirs: pathlib.Path)
policy/pi0/src/openpi/training/config.py:145
↓ 3 callersFunctioncreate_table
Create a table with specified dimensions.
envs/utils/create_actor.py:324
↓ 3 callersFunctiondict_apply_split
( x: Dict[str, torch.Tensor], split_func: Callable[[torch.Tensor], Dict[str, torch.Tensor]], )
policy/DP/diffusion_policy/common/pytorch_util.py:22
↓ 3 callersFunctionencode_obs
(observation)
policy/GO1/deploy_policy.py:63
↓ 3 callersFunctionenrich_actors
Enrich the actor list by adding 'functional_points' and 'contact_points' from the corresponding model metadata file, and remove the 'modelnam
code_gen/test_gen_code.py:25
↓ 3 callersFunctioneval
TASK_ENV: Task Environment Class, you can use this class to interact with the environment model: The model from 'get_model()' function ob
policy/DP/deploy_policy.py:32
↓ 3 callersFunctioneval_function_decorator
(policy_name, model_name)
script/eval_policy.py:38
↓ 3 callersMethodextract_feature
(self, pixel_values)
policy/TinyVLA/vla/models/internvl/modeling_internvl_chat.py:184
↓ 3 callersMethodfeature_select
(self, image_forward_outs)
policy/RDT/models/multimodal_encoder/clip_encoder.py:36
↓ 3 callersFunctionfind_all_hdf5
(dataset_dir, skip_mirrored_data, rank0_print=print)
policy/DexVLA/data_utils/dataset.py:308
↓ 3 callersMethodforward
Do a full training forward pass and compute the loss (batch_size x num_steps x num_motors)
policy/pi05/src/openpi/models_pytorch/pi0_pytorch.py:316
↓ 3 callersMethodforward_process
(self, sample, use_reasoning=True)
policy/DexVLA/dex_vla/utils/robot_data_processor.py:65
↓ 3 callersFunctiongenerate_episode_descriptions
Generate descriptions for episodes by replacing placeholders in instructions with parameter values. For each episode, filter instructions tha
description/utils/generate_episode_instructions.py:184
↓ 3 callersFunctiongenerate_json_state
Generate the json dict and state for an episode.
policy/RDT/data/preprocess.py:283
↓ 3 callersFunctiongenerate_obj_description
(object_name, glb_file_name)
description/utils/generate_object_description.py:112
↓ 3 callersFunctionget_accumulate_timestamp_idxs
For each dt window, choose the first timestamp in the window. Assumes timestamps sorted. One timestamp might be chosen multiple times due to
policy/DP/diffusion_policy/common/timestamp_accumulator.py:6
↓ 3 callersFunctionget_action_head
Get action head for continuous value prediction. Args: cfg: Configuration object with model parameters llm_dim: Dimension of
policy/openvla-oft/experiments/robot/openvla_utils.py:464
↓ 3 callersFunctionget_align_matrix
获取从 v1 到 v2 的旋转矩阵
envs/utils/transforms.py:385
↓ 3 callersFunctionget_arm_joint_positions
(bot)
policy/pi0/examples/aloha_real/robot_utils.py:175
↓ 3 callersFunctionget_arm_joint_positions
(bot)
policy/pi05/examples/aloha_real/robot_utils.py:175
↓ 3 callersMethodget_base_name
(self, point_name: str)
script/create_object_data.py:686
↓ 3 callersFunctionget_conv_template
Get a conversation template.
policy/TinyVLA/vla/models/internvl/conversation.py:330
↓ 3 callersFunctionget_current_action_mask
(token_ids)
policy/openvla-oft/prismatic/training/train_utils.py:8
↓ 3 callersFunctionget_image_resize_size
Get image resize dimensions for a specific model. If returned value is an int, the resized image will be a square. If returned value is
policy/openvla-oft/experiments/robot/robot_utils.py:77
↓ 3 callersMethodget_input_embeddings
(self)
policy/openvla-oft/prismatic/extern/hf/modeling_prismatic.py:363
↓ 3 callersMethodget_input_embeddings
(self)
policy/TinyVLA/vla/models/internvl/modeling_internvl_chat.py:355
↓ 3 callersMethodget_input_embeddings
(self)
policy/pi05/src/openpi/models_pytorch/transformers_replace/models/paligemma/modeling_paligemma.py:151
↓ 3 callersFunctionget_length_grouped_indices
(lengths, batch_size, world_size, generator=None, merge=True)
policy/DexVLA/dex_vla/train/dex_vla_trainer.py:102
↓ 3 callersFunctionget_multimodal_cond_pos_embed
Generate position embeddings for multimodal conditions. mm_cond_lens: an OrderedDict containing (modality name, modality token
policy/RDT/models/rdt/blocks.py:262
↓ 3 callersFunctionget_next_actions_mask
(token_ids)
policy/openvla-oft/prismatic/training/train_utils.py:25
↓ 3 callersMethodget_next_id
(self, type: str)
script/create_object_data.py:355
↓ 3 callersMethodget_next_id
(self, type: str)
script/create_object_data.py:775
↓ 3 callersFunctionget_norm_stats
(dataset_path_list, action_dim, rank0_print=print)
policy/DexVLA/data_utils/dataset.py:215
↓ 3 callersMethodget_observation
(self)
policy/pi0/examples/aloha_real/real_env.py:130
↓ 3 callersMethodget_observation
(self)
policy/DexVLA/aloha_scripts/real_env.py:103
↓ 3 callersMethodget_observation
(self)
policy/pi05/examples/aloha_real/real_env.py:130
↓ 3 callersFunctionget_other_param_info
(stat)
policy/DP/diffusion_policy/common/normalize_util.py:110
↓ 3 callersMethodget_output_stats
(self, key="_default")
policy/DP/diffusion_policy/model/common/normalizer.py:91
↓ 3 callersMethodget_output_stats
(self, key="_default")
policy/DP3/3D-Diffusion-Policy/diffusion_policy_3d/model/common/normalizer.py:91
↓ 3 callersFunctionget_place_pose
获取物体应当被放置到的位置 考虑因素: 1. 三维坐标与给定坐标一致 2. 物体的朝向合理 - 物体 z 轴与给定坐标 z 轴一致 - 满足在 xy 平面上的一定约束 -
envs/utils/transforms.py:450
↓ 3 callersFunctionget_processor
Get the VLA model's Hugging Face processor. Args: cfg: Configuration object with model parameters Returns: AutoProcesso
policy/openvla-oft/experiments/robot/openvla_utils.py:380
↓ 3 callersMethodget_prompt
(self)
policy/openvla-oft/prismatic/models/backbones/llm/prompting/base_prompter.py:25
↓ 3 callersFunctionget_proprio_projector
Get proprioception projector for the VLA model. Args: cfg: Configuration object with model parameters llm_dim: Dimension of
policy/openvla-oft/experiments/robot/openvla_utils.py:393
← previousnext →301–400 of 4,415, ranked by callers