MCPcopy Create free account

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

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

↓ 5 callersFunctionis_torch_version_lower_than_17
()
policy/DexVLA/dex_vla/external_vision_encoder/resnet_film.py:9
↓ 5 callersFunctionload_component_state_dict
Load a component's state dict from checkpoint and handle DDP prefix if present. Args: checkpoint_path: Path to the checkpoint file
policy/openvla-oft/experiments/robot/openvla_utils.py:230
↓ 5 callersMethodload_model
(self, device_map=None)
policy/RDT/models/multimodal_encoder/clip_encoder.py:25
↓ 5 callersFunctionmodel_is_on_hf_hub
Checks whether a model path points to a model on Hugging Face Hub.
policy/openvla-oft/experiments/robot/openvla_utils.py:46
↓ 5 callersMethodplay_once
(self)
envs/lift_pot.py:28
↓ 5 callersFunctionrel2abs_gripper_actions
Converts relative gripper actions (+1 for closing, -1 for opening) to absolute actions (0 = closed; 1 = open). Assumes that the first relati
policy/openvla-oft/prismatic/vla/datasets/rlds/utils/data_utils.py:132
↓ 5 callersMethodreset
(self, fake=False)
policy/openvla-oft/experiments/robot/aloha/real_env.py:123
↓ 5 callersMethodreset
(self)
script/create_object_data.py:55
↓ 5 callersMethodsave
(self, directory: epath.Path, args: CallbackSave)
policy/pi05/src/openpi/training/checkpoints.py:124
↓ 5 callersMethodstep
(self, action)
policy/pi0/examples/aloha_real/real_env.py:155
↓ 5 callersMethodstep
(self, new_model)
policy/RDT/models/ema_model.py:51
↓ 5 callersMethodstep
(self, action)
policy/pi05/examples/aloha_real/real_env.py:155
↓ 5 callersFunctionunpack_tuple
(fn: Callable[[Any], Tuple[Any]])
policy/openvla-oft/prismatic/models/backbones/vision/base_vision.py:27
↓ 5 callersMethodworld_size
()
policy/openvla-oft/prismatic/overwatch/overwatch.py:142
↓ 4 callersMethod__init__
(self, d_model=512, nhead=8, num_encoder_layers=6,
policy/ACT/detr/models/transformer.py:24
↓ 4 callersMethod__init__
(self, feature_dim, condition_dim)
policy/DexVLA/dex_vla/utils/fusion_modules.py:306
↓ 4 callersMethod__init__
( self, config: DitDiffusionPolicyConfig, )
policy/DexVLA/policy_heads/models/transformer_diffusion/modeling_dit_diffusion.py:247
↓ 4 callersMethod_entity_qf
(self, entity)
envs/robot/robot.py:605
↓ 4 callersFunction_get_frozen_state
(config: _pi0.Pi0Config)
policy/pi0/src/openpi/models/pi0_test.py:7
↓ 4 callersFunction_get_frozen_state
(config: _pi0_config.Pi0Config)
policy/pi05/src/openpi/models/pi0_test.py:7
↓ 4 callersMethod_make_layer
( self, block: Type[Union[BasicBlock, Bottleneck]], planes: int,
policy/DexVLA/dex_vla/external_vision_encoder/resnet_film.py:228
↓ 4 callersMethod_maybe_log_save_evaluate
(self, tr_loss, model, trial, epoch, ignore_keys_for_eval, all_loss=None)
policy/DexVLA/dex_vla/train/dex_vla_trainer.py:973
↓ 4 callersFunction_normalize
(x, params, forward=True)
policy/DP/diffusion_policy/model/common/normalizer.py:279
↓ 4 callersFunction_normalize
(x, params, forward=True)
policy/DP3/3D-Diffusion-Policy/diffusion_policy_3d/model/common/normalizer.py:279
↓ 4 callersFunction_resnet
( block: Type[Union[BasicBlock, Bottleneck]], layers: List[int], weights, prog
policy/DexVLA/dex_vla/external_vision_encoder/resnet_film.py:327
↓ 4 callersMethod_trans_endpose
(self, arm_tag=None, is_endpose=False)
envs/robot/robot.py:588
↓ 4 callersMethod_trans_from_gripper_to_endlink
(self, target_pose, arm_tag=None)
envs/robot/robot.py:330
↓ 4 callersMethodacquire_read_lock
(self)
policy/RDT/data/filelock.py:13
↓ 4 callersMethodacquire_write_lock
(self)
policy/RDT/data/filelock.py:17
↓ 4 callersMethodadd_to_scene
Add bounding box visualization to the scene. Returns: Updated scene with bounding box
description/utils/get_image_from_glb.py:77
↓ 4 callersMethodadd_turn
(self, role: str, message: str)
policy/openvla-oft/prismatic/models/backbones/llm/prompting/base_prompter.py:19
↓ 4 callersFunctionassemble_state_vec
Assemble the state/action vector from the arm and base.
policy/RDT/data/preprocess.py:26
↓ 4 callersFunctionbuild_vision_projector
(config, delay_load=False, **kwargs)
policy/LLaVA-VLA/llava/model/multimodal_projector/builder.py:33
↓ 4 callersFunctionbuild_vision_tower
(vision_tower_cfg, **kwargs)
policy/LLaVA-VLA/llava/model/multimodal_encoder/builder.py:6
↓ 4 callersFunctioncal_quat_dis
(quat1, quat2)
envs/utils/transforms.py:377
↓ 4 callersFunctioncompute_actions_l1_loss
(action_tokenizer, predicted_token_ids, ground_truth_token_ids, mask)
policy/openvla-oft/prismatic/training/train_utils.py:48
↓ 4 callersFunctioncompute_token_accuracy
(predicted_token_ids, ground_truth_token_ids, mask)
policy/openvla-oft/prismatic/training/train_utils.py:42
↓ 4 callersMethodconfigure_optimizers
( self, learning_rate: float = 1e-4, weight_decay: float = 1e-3,
policy/DP/diffusion_policy/model/diffusion/transformer_for_diffusion.py:245
↓ 4 callersMethodcreate_from_shape
Create a SharedNDArray directly from a SharedMemoryManager Parameters ---------- mem_mgr SharedMemoryManager insta
policy/DP/diffusion_policy/shared_memory/shared_ndarray.py:136
↓ 4 callersMethoddecode
This method forwards all its arguments to Qwen2TokenizerFast's [`~PreTrainedTokenizer.decode`]. Please refer to the docstring of this
policy/DexVLA/dex_vla/utils/processing_qwen2_vla.py:164
↓ 4 callersFunctiondecode_and_resize_images
(image_bytes_array, size=256)
policy/openvla-oft/preprocess_aloha.py:12
↓ 4 callersMethoddevice
(self)
policy/RDT/models/multimodal_encoder/clip_encoder.py:71
↓ 4 callersFunctionensure_dir
(file_path)
envs/utils/save_file.py:11
↓ 4 callersFunctioneval
All the function interfaces below are just examples You can modify them according to your implementation But we strongly recommend keepin
policy/DexVLA/deploy_policy.py:247
↓ 4 callersMethodextend
(self, data)
policy/DP3/3D-Diffusion-Policy/diffusion_policy_3d/common/replay_buffer.py:567
↓ 4 callersFunctionf
(tensor)
policy/DP/diffusion_policy/model/common/tensor_util.py:314
↓ 4 callersFunctionfind_checkpoint_file
Find a specific checkpoint file matching a pattern. Args: pretrained_checkpoint: Path to the checkpoint directory file_patte
policy/openvla-oft/experiments/robot/openvla_utils.py:201
↓ 4 callersFunctiongenerate
(message, gpt="deepseek", temperature=0)
code_gen/gpt_agent.py:8
↓ 4 callersFunctionget_arm_gripper_positions
(bot)
policy/pi0/examples/aloha_real/robot_utils.py:179
↓ 4 callersFunctionget_arm_gripper_positions
(bot)
policy/DexVLA/aloha_scripts/robot_utils.py:138
↓ 4 callersFunctionget_arm_gripper_positions
(bot)
policy/pi05/examples/aloha_real/robot_utils.py:179
↓ 4 callersMethodget_arm_pose
(self, arm_tag: ArmTag)
envs/_base_task.py:1397
↓ 4 callersMethodget_constraint_pose
(self, ori_vec: list, arm_tag=None)
envs/robot/robot.py:162
↓ 4 callersMethodget_dataset_name
(self)
policy/RDT/data/hdf5_vla_dataset.py:51
↓ 4 callersFunctionget_embodiment_file
(embodiment_type)
script/eval_policy.py:91
↓ 4 callersFunctionget_embodiment_file
(embodiment_type)
script/eval_policy_client.py:258
↓ 4 callersFunctionget_embodiment_file
(embodiment_type)
script/collect_data.py:55
↓ 4 callersFunctionget_embodiment_file
(embodiment_type)
code_gen/test_gen_code.py:193
↓ 4 callersFunctionget_glb_or_obj_file
(modeldir, model_id)
envs/utils/create_actor.py:487
↓ 4 callersMethodget_gripper_actor_contact_position
(self, actor_name)
envs/_base_task.py:970
↓ 4 callersFunctionget_image_from_glb
Generate six views from the GLB file, with the orthogonal camera framework rotated by a random angle, and return a combined image as a single
description/utils/get_image_from_glb.py:720
↓ 4 callersFunctionget_image_range_normalizer
()
policy/DP/diffusion_policy/common/normalize_util.py:24
↓ 4 callersMethodget_input_stats
(self)
policy/DP/diffusion_policy/model/common/normalizer.py:79
↓ 4 callersMethodget_input_stats
(self)
policy/DP3/3D-Diffusion-Policy/diffusion_policy_3d/model/common/normalizer.py:79
↓ 4 callersMethodget_item
Get a training sample at a random timestep. Args: index (int, optional): the index of the episode. If not provide
policy/RDT/data/hdf5_vla_dataset.py:54
↓ 4 callersMethodget_left_ee_pose
(self)
envs/robot/robot.py:557
↓ 4 callersFunctionget_length_grouped_indices
(lengths, batch_size, world_size, generator=None, merge=True)
policy/LLaVA-VLA/llava/train/llava_trainer.py:88
↓ 4 callersMethodget_output_mat
(self)
envs/utils/transforms.py:164
↓ 4 callersMethodget_points
(self, type: str)
script/create_object_data.py:768
↓ 4 callersFunctionget_pos_param_info
(stat, output_max=1, output_min=-1, range_eps=1e-7)
policy/DP/diffusion_policy/common/normalize_util.py:45
↓ 4 callersFunctionget_product_vector
获取 v2 在 v1 上的投影向量
envs/utils/transforms.py:440
↓ 4 callersMethodget_qlimits
(self)
envs/utils/actor_utils.py:169
↓ 4 callersMethodget_right_ee_pose
(self)
envs/robot/robot.py:560
↓ 4 callersMethodget_statistics
Compute and return the statistics of the vectors processed so far. Returns: dict: A dictionary containing the computed s
policy/pi05/src/openpi/shared/normalize.py:73
↓ 4 callersMethodgradient_checkpointing_enable
Enable gradient checkpointing for memory optimization.
policy/pi05/src/openpi/models_pytorch/pi0_pytorch.py:126
↓ 4 callersMethodimage_cb
(self, cam_name, data)
policy/pi0/examples/aloha_real/robot_utils.py:49
↓ 4 callersMethodimage_cb
(self, cam_name, data)
policy/DexVLA/aloha_scripts/robot_utils.py:39
↓ 4 callersMethodimage_cb
(self, cam_name, data)
policy/openvla-oft/experiments/robot/aloha/robot_utils.py:39
↓ 4 callersMethodimage_cb
(self, cam_name, data)
policy/pi05/examples/aloha_real/robot_utils.py:49
↓ 4 callersMethodinfer
(self, obs: Dict)
policy/pi0/packages/openpi-client/src/openpi_client/websocket_client_policy.py:38
↓ 4 callersMethodinfer
(self, obs: dict)
policy/pi0/src/openpi/policies/policy.py:42
↓ 4 callersMethodinfer
(self, obs: Dict)
policy/pi05/packages/openpi-client/src/openpi_client/websocket_client_policy.py:38
↓ 4 callersMethodinfer
(self, obs: dict, *, noise: np.ndarray | None = None)
policy/pi05/src/openpi/policies/policy.py:68
↓ 4 callersFunctioninit_module
Initializes a module, optionally loads checkpoint, moves to device, and wraps with DDP. Args: module_class (Type[nn.Module]): Class
policy/openvla-oft/vla-scripts/finetune.py:276
↓ 4 callersMethodload
Loads the model weights. Args: params: Parameters of the model. This is a nested structure of array-like objects that
policy/pi05/src/openpi/training/weight_loaders.py:18
↓ 4 callersFunctionload_model
(model_path='/media/rl/HDD/data/weights/Qwen2-VL-7B-Instruct')
policy/DexVLA/qwen2_vl_inference.py:36
↓ 4 callersFunctionmake_real_env
(init_node, setup_robots=True)
policy/DexVLA/aloha_scripts/real_env.py:154
↓ 4 callersFunctionmove_arms
(bot_list, target_pose_list, move_time=1)
policy/DexVLA/aloha_scripts/robot_utils.py:142
↓ 4 callersMethodmove_to_pose
( self, arm_tag: ArmTag, target_pose: list | np.ndarray | sapien.Pose, )
envs/_base_task.py:1377
↓ 4 callersFunctionpad_sequence
Pad a nested dictionary or list or tuple of sequence tensors in the time dimension (dimension 1). Args: seq (dict or list or tuple):
policy/DP/diffusion_policy/model/common/tensor_util.py:805
↓ 4 callersFunctionpad_to_dim
Pad an array to the target dimension with zeros along the specified axis.
policy/pi05/src/openpi/transforms.py:423
↓ 4 callersMethodparse_point
(cmd: str, req_id: bool = True)
script/create_object_data.py:739
↓ 4 callersMethodpredict_action
Core function for VLA inference; maps input image and task instruction to continuous action (de-tokenizes). @param image: PIL Image
policy/openvla-oft/prismatic/models/vlas/openvla.py:36
↓ 4 callersMethodpush
Append transforms to the group and return a new group. Args: inputs: Appended to the *end* of the current input transforms.
policy/pi05/src/openpi/transforms.py:49
↓ 4 callersFunctionregister_conv_template
Register a new conversation template.
policy/TinyVLA/vla/models/internvl/conversation.py:320
↓ 4 callersFunctionreshape_dimensions_single
Reshape selected dimensions in a tensor to a target dimension. Args: x (torch.Tensor): tensor to reshape begin_axis (int): b
policy/DP/diffusion_policy/model/common/tensor_util.py:482
↓ 4 callersFunctionreshape_dimensions_single
Reshape selected dimensions in a tensor to a target dimension. Args: x (torch.Tensor): tensor to reshape begin_axis (int): b
policy/DP3/3D-Diffusion-Policy/diffusion_policy_3d/model/common/tensor_util.py:482
↓ 4 callersMethodresolve_compressor
(compressor="default")
policy/DP/diffusion_policy/common/replay_buffer.py:319
↓ 4 callersMethodresolve_compressor
(compressor="default")
policy/DP3/3D-Diffusion-Policy/diffusion_policy_3d/common/replay_buffer.py:325
↓ 4 callersFunctionrun
Run the task in simulation to evaluate success rate. Args: TASK_ENV (object): Task environment instance. args (dict): Task c
code_gen/test_gen_code.py:227
← previousnext →201–300 of 4,415, ranked by callers