MCPcopy Create free account

hub / github.com/TongZhangTHU/sgr / functions

Functions316 in github.com/TongZhangTHU/sgr

↓ 20 callersMethod__init__
(self, *, image_size, patch_size, num_classes, dim, depth, heads, mlp_dim, pool = 'cls', channels = 3, dim_hea
helpers/network_utils.py:556
↓ 10 callersMethodextract_obs
(self, obs: Observation, t=None, prev_action=None)
helpers/custom_rlbench_env.py:67
↓ 9 callersFunctionbuild_model
(state_dict: dict)
helpers/clip/core/clip.py:483
↓ 8 callersMethod_celoss
(self, pred, labels)
agents/sgr/sgr_agent.py:315
↓ 8 callersMethod_make_layer
(self, planes, blocks, stride=1)
helpers/clip/core/clip.py:161
↓ 8 callersFunctionload_clip
(name: str, device: Union[str, torch.device] = "cuda" if torch.cuda.is_available() else "cpu", jit=True)
helpers/clip/core/clip.py:559
↓ 7 callersMethodencode_text_with_embeddings
(self, text)
helpers/clip/core/clip.py:426
↓ 6 callersMethod__init__
(self, embed_dim: int, # vision image_resolution: int,
helpers/clip/core/clip.py:312
↓ 6 callersMethod_celoss
(self, pred, labels)
agents/peract_bc/qattention_peract_bc_agent.py:340
↓ 5 callersMethod_celoss
(self, pred, labels)
agents/semantic_bc_lang/semantic_bc_lang_agent.py:232
↓ 5 callersMethod_celoss_softmax
(self, probs, labels)
agents/sgr/sgr_agent.py:337
↓ 5 callersMethod_pointwise_celoss
(self, pred, labels)
agents/sgr/sgr_agent.py:318
↓ 5 callersMethodstep
Performs a single optimization step. Arguments: closure (callable, optional): A closure that reevaluates the model
helpers/optim/lamb.py:56
↓ 5 callersMethodupdate
(self, step: int, replay_sample: dict)
agents/peract_bc/qattention_stack_agent.py:35
↓ 4 callersFunctionact_layer
(act)
helpers/network_utils.py:15
↓ 4 callersFunctioncast_shape
(stat, img)
helpers/utils.py:321
↓ 4 callersFunctionexists
(val)
agents/peract_bc/perceiver_lang_io.py:15
↓ 4 callersFunctionindex_points
Input: points: input points data, [B, N, C] idx: sample index data, [B, S] Return: new_points:, indexed points data,
helpers/point_utils.py:5
↓ 4 callersFunctionstr_none
(str)
agents/sgr/launch_utils.py:387
↓ 4 callersMethodupdate
(self, step: int, replay_sample: dict)
agents/sgr/sgr_agent.py:419
↓ 4 callersMethodupdate
(self, step: int, replay_sample: dict)
agents/semantic_bc_lang/stack_agent.py:25
↓ 3 callersMethod__init__
(self, dim, fn, context_dim=None)
agents/peract_bc/perceiver_lang_io.py:53
↓ 3 callersMethod_pointwise_diff
(self, pred, labels)
agents/sgr/sgr_agent.py:329
↓ 3 callersFunctionapply_se3_augmentation
Apply SE3 augmentation to a point clouds and actions. :param pcd: list of point clouds [[bs, 3, H, W], ...] for N cameras :param action_gripp
voxel/augmentation.py:70
↓ 3 callersFunctionresnet50
r"""ResNet-50 model from `"Deep Residual Learning for Image Recognition" <https://arxiv.org/pdf/1512.03385.pdf>`_. Args: pretrained (
helpers/resnet.py:114
↓ 3 callersFunctiontokenize
(texts: Union[str, List[str]], context_length: int = 77)
helpers/clip/core/clip.py:626
↓ 2 callersMethod__init__
(self, task_class: Type[Task], observation_config: ObservationConfig,
helpers/custom_rlbench_env.py:22
↓ 2 callersMethod_norm_rgb_
(self, x)
helpers/preprocess_agent.py:20
↓ 2 callersMethod_preprocess_inputs
(self, replay_sample)
agents/sgr/sgr_agent.py:298
↓ 2 callersMethod_preprocess_inputs
(self, replay_sample)
agents/semantic_bc_lang/semantic_bc_lang_agent.py:221
↓ 2 callersMethod_softmax_q_trans
(self, q)
agents/peract_bc/qattention_peract_bc_agent.py:343
↓ 2 callersMethodbuild
(self)
helpers/network_utils.py:310
↓ 2 callersFunctionbytes_to_unicode
Returns list of utf-8 byte and a corresponding list of unicode strings. The reversible bpe codes work on unicode strings. This means you
helpers/clip/core/simple_tokenizer.py:16
↓ 2 callersMethodchoose_highest_action
(self, q_trans, q_rot_grip, q_collision)
agents/peract_bc/qattention_peract_bc_agent.py:55
↓ 2 callersMethodchoose_highest_action
(self, q_trans, q_rot_grip, q_collision)
agents/semantic_bc_lang/semantic_bc_lang_agent.py:48
↓ 2 callersFunctiondefault
(val, d)
agents/peract_bc/perceiver_lang_io.py:19
↓ 2 callersFunctiondiscrete_euler_to_quaternion
(discrete_euler, resolution)
helpers/utils.py:98
↓ 2 callersMethodextract_obs
(self, obs: Observation, t=None, prev_action=None)
helpers/custom_rlbench_env.py:254
↓ 2 callersMethodextract_obs
(self, obs: Observation, t=None, prev_action=None)
helpers/custom_rlbench_env.py:448
↓ 2 callersFunctionget_pairs
Return set of symbol pairs in a word. Word is represented as tuple of symbols (symbols being variable-length strings).
helpers/clip/core/simple_tokenizer.py:38
↓ 2 callersMethodget_pcd_bound_masks
(self, pcd, bounds)
agents/sgr/sgr_agent.py:403
↓ 2 callersMethodlaunch
(self)
helpers/custom_rlbench_env.py:96
↓ 2 callersFunctionpair
(t)
helpers/network_utils.py:478
↓ 2 callersFunctionpatch_device
(module)
helpers/clip/core/clip.py:585
↓ 2 callersFunctionpatch_float
(module)
helpers/clip/core/clip.py:605
↓ 2 callersMethodprepool_im
Run until prepool and save intermediate features
helpers/clip/core/clip.py:190
↓ 2 callersMethodreset
(self)
helpers/custom_rlbench_env.py:108
↓ 2 callersMethodreset_to_demo
(self, i)
helpers/custom_rlbench_env.py:184
↓ 2 callersFunctionsetup_logger
(file_name='train.log', logging_level=20)
helpers/utils.py:473
↓ 2 callersMethodstep
(self, act_result: ActResult)
helpers/custom_rlbench_env.py:136
↓ 2 callersMethodupdate
(self, step: int, replay_sample: dict)
helpers/preprocess_agent.py:23
↓ 1 callersMethod__init__
( self, layer: int, coordinate_bounds: list, sgr_network: nn.Module, c
agents/sgr/sgr_agent.py:111
↓ 1 callersMethod_act_preprocess_inputs
(self, observation)
agents/peract_bc/qattention_peract_bc_agent.py:310
↓ 1 callersFunction_add_keypoints_to_replay
( cfg: DictConfig, task: str, replay: ReplayBuffer, inital_obs: Observation,
agents/peract_bc/launch_utils.py:142
↓ 1 callersFunction_add_keypoints_to_replay
(cfg: DictConfig, task: str, replay: ReplayBuffer,
agents/sgr/launch_utils.py:155
↓ 1 callersFunction_add_keypoints_to_replay
(cfg: DictConfig, task: str, replay: ReplayBuffer,
agents/semantic_bc_lang/launch_utils.py:142
↓ 1 callersMethod_append_final_frame
(self, success: bool)
helpers/custom_rlbench_env.py:127
↓ 1 callersMethod_append_final_frame
(self, success: bool)
helpers/custom_rlbench_env.py:314
↓ 1 callersMethod_append_final_frame
(self, success: bool)
helpers/custom_rlbench_env.py:512
↓ 1 callersMethod_argmax_3d
(self, tensor_orig)
agents/peract_bc/qattention_peract_bc_agent.py:49
↓ 1 callersMethod_argmax_3d
(self, tensor_orig)
agents/semantic_bc_lang/semantic_bc_lang_agent.py:42
↓ 1 callersMethod_broadcast
(self, src: torch.Tensor, other: torch.Tensor, dim: int)
voxel/voxel_grid.py:92
↓ 1 callersFunction_compute_initial_camera_pose
(scene)
helpers/utils.py:155
↓ 1 callersFunction_create_bounding_box
(scene, voxel_size, res)
helpers/utils.py:185
↓ 1 callersFunction_download
(url: str, root: str = os.path.expanduser("~/.cache/clip"))
helpers/clip/core/clip.py:523
↓ 1 callersFunction_from_trimesh_scene
( trimesh_scene, bg_color=None, ambient_light=None)
helpers/utils.py:171
↓ 1 callersFunction_get_action
( obs_tp1: Observation, obs_tm1: Observation, rlbench_scene_bounds: List[float], # met
agents/peract_bc/launch_utils.py:103
↓ 1 callersFunction_get_action
( obs_tp1: Observation, obs_tm1: Observation, rlbench_scene_bounds: List[float], # metric 3D boun
agents/sgr/launch_utils.py:119
↓ 1 callersFunction_get_action
( obs_tp1: Observation, obs_tm1: Observation, rlbench_scene_bounds: List[float], # me
agents/semantic_bc_lang/launch_utils.py:107
↓ 1 callersFunction_is_stopped
(demo, i, obs, stopped_buffer, delta=0.1)
helpers/demo_loading_utils.py:8
↓ 1 callersMethod_l1loss
(self, pred, labels)
agents/sgr/sgr_agent.py:312
↓ 1 callersMethod_l1loss
(self, pred, labels)
agents/semantic_bc_lang/semantic_bc_lang_agent.py:238
↓ 1 callersMethod_mseloss
(self, pred, labels)
agents/sgr/sgr_agent.py:309
↓ 1 callersMethod_mseloss
(self, pred, labels)
agents/semantic_bc_lang/semantic_bc_lang_agent.py:235
↓ 1 callersMethod_preprocess_inputs
(self, replay_sample)
agents/peract_bc/qattention_peract_bc_agent.py:298
↓ 1 callersMethod_quat_loss
(self, pred, labels)
agents/sgr/sgr_agent.py:347
↓ 1 callersFunction_resnet
( arch: str, block: Type[Union[BasicBlock, Bottleneck]], layers: List[int], pretrained: bool,
helpers/resnet.py:96
↓ 1 callersMethod_scatter_mean
(self, src: torch.Tensor, index: torch.Tensor, out: torch.Tensor, dim: int = -1)
voxel/voxel_grid.py:103
↓ 1 callersMethod_scatter_nd
(self, indices, updates)
voxel/voxel_grid.py:124
↓ 1 callersMethod_softmax_ignore_collision
(self, q_collision)
agents/peract_bc/qattention_peract_bc_agent.py:363
↓ 1 callersMethod_softmax_ignore_collision
(self, q_collision)
agents/sgr/sgr_agent.py:399
↓ 1 callersMethod_softmax_ignore_collision
(self, q_collision)
agents/semantic_bc_lang/semantic_bc_lang_agent.py:264
↓ 1 callersMethod_softmax_q_rot_grip
(self, q_rot_grip)
agents/peract_bc/qattention_peract_bc_agent.py:347
↓ 1 callersMethod_softmax_q_rot_grip
(self, q_rot_grip)
agents/sgr/sgr_agent.py:370
↓ 1 callersMethod_softmax_q_rot_grip
(self, q_rot_grip)
agents/semantic_bc_lang/semantic_bc_lang_agent.py:245
↓ 1 callersMethod_softmax_q_trans
(self, q)
agents/sgr/sgr_agent.py:353
↓ 1 callersMethod_softmax_q_trans
(self, q)
agents/semantic_bc_lang/semantic_bc_lang_agent.py:241
↓ 1 callersMethodattention
(self, x: torch.Tensor)
helpers/clip/core/clip.py:238
↓ 1 callersFunctionavailable_models
()
helpers/clip/core/clip.py:555
↓ 1 callersFunctionbasic_clean
(text)
helpers/clip/core/simple_tokenizer.py:50
↓ 1 callersMethodbpe
(self, token)
helpers/clip/core/simple_tokenizer.py:80
↓ 1 callersMethodbuild
(self, training: bool, device: torch.device = None)
agents/semantic_bc_lang/semantic_bc_lang_agent.py:149
↓ 1 callersMethodbuild_attention_mask
(self)
helpers/clip/core/clip.py:396
↓ 1 callersMethodchoose_highest_action
(self, q_trans, q_rot_grip,
agents/sgr/sgr_agent.py:39
↓ 1 callersFunctionconvert_weights
Convert applicable model parameters to fp16
helpers/clip/core/clip.py:459
↓ 1 callersMethodcoords_to_bounding_voxel_grid
(self, coords, coord_features=None, coord_bounds=None)
voxel/voxel_grid.py:145
↓ 1 callersFunctioncreate_obs_config
(camera_names: List[str], camera_resolution: List[int], method_n
helpers/utils.py:424
↓ 1 callersFunctioncreate_voxel_scene
( voxel_grid: np.ndarray, q_attention: np.ndarray = None, highlight_coordinate: np.nda
helpers/utils.py:203
↓ 1 callersMethoddecode
(self, tokens)
helpers/clip/core/simple_tokenizer.py:129
↓ 1 callersFunctiondefault_bpe
()
helpers/clip/core/simple_tokenizer.py:11
next →1–100 of 316, ranked by callers