MCPcopy Create free account

hub / github.com/RoboCodeX-source/RoboCodeX_code / functions

Functions2,080 in github.com/RoboCodeX-source/RoboCodeX_code

↓ 1 callersMethodaccumulate
(self)
instruct_to_policy/scripts/src/grounding_model/glip/maskrcnn_benchmark/data/datasets/refexp.py:29
↓ 1 callersMethodadd_attributes
(self, annotations)
instruct_to_policy/scripts/src/grounding_model/glip/maskrcnn_benchmark/data/datasets/box_label_loader.py:102
↓ 1 callersMethodadd_attributes
(self, annotations)
instruct_to_policy/scripts/src/grounding_model/glip/maskrcnn_benchmark/data/datasets/box_label_loader.py:246
↓ 1 callersFunctionadd_batch_counter_hook_function
(module)
instruct_to_policy/scripts/src/grounding_model/glip/maskrcnn_benchmark/utils/stats.py:423
↓ 1 callersFunctionadd_batch_counter_variables_or_reset
(module)
instruct_to_policy/scripts/src/grounding_model/glip/maskrcnn_benchmark/utils/stats.py:418
↓ 1 callersMethodadd_boxes_all
(self, annotations)
instruct_to_policy/scripts/src/grounding_model/glip/maskrcnn_benchmark/data/datasets/box_label_loader.py:122
↓ 1 callersMethodadd_classes
(self, annotations)
instruct_to_policy/scripts/src/grounding_model/glip/maskrcnn_benchmark/data/datasets/box_label_loader.py:86
↓ 1 callersMethodadd_classes_with_ignore
(self, annotations)
instruct_to_policy/scripts/src/grounding_model/glip/maskrcnn_benchmark/data/datasets/box_label_loader.py:197
↓ 1 callersMethodadd_confidences
(self, annotations)
instruct_to_policy/scripts/src/grounding_model/glip/maskrcnn_benchmark/data/datasets/box_label_loader.py:93
↓ 1 callersMethodadd_confidences
(self, annotations)
instruct_to_policy/scripts/src/grounding_model/glip/maskrcnn_benchmark/data/datasets/box_label_loader.py:235
↓ 1 callersMethodadd_features
(self, annotations)
instruct_to_policy/scripts/src/grounding_model/glip/maskrcnn_benchmark/data/datasets/box_label_loader.py:110
↓ 1 callersFunctionadd_flops_counting_methods
(net_main_module)
instruct_to_policy/scripts/src/grounding_model/glip/maskrcnn_benchmark/utils/stats.py:155
↓ 1 callersMethodadd_gt_proposals
Arguments: proposals: list[BoxList] targets: list[BoxList]
instruct_to_policy/scripts/src/grounding_model/glip/inference.py:56
↓ 1 callersMethodadd_gt_proposals
Arguments: proposals: list[BoxList] targets: list[BoxList]
instruct_to_policy/scripts/src/grounding_model/glip/maskrcnn_benchmark/modeling/rpn/inference.py:56
↓ 1 callersFunctionadd_interial_tag_to_link
(link: ET.Element, mesh_dir, use_visual_mesh=False, density=10.0, min_mass=0.1, overwrite=False, export_combin
instruct_to_policy/scripts/data/process_complex_urdf.py:97
↓ 1 callersFunctionadd_limit_tag_to_joint
Add limit tag to joint. Example: <joint name="joint_0" type="prismatic"> <origin xyz="0 0 0" /> <axis xyz="0 0 1" /> <child link="l
instruct_to_policy/scripts/data/process_complex_urdf.py:131
↓ 1 callersMethodadd_masks
(self, annotations, img_size)
instruct_to_policy/scripts/src/grounding_model/glip/maskrcnn_benchmark/data/datasets/box_label_loader.py:72
↓ 1 callersMethodadd_masks
(self, annotations, img_size)
instruct_to_policy/scripts/src/grounding_model/glip/maskrcnn_benchmark/data/datasets/box_label_loader.py:209
↓ 1 callersMethodadd_scene_objects_to_moveit
Add all objects in the scene to the moveit planning scene.
instruct_to_policy/scripts/src/env/multimodal_env.py:141
↓ 1 callersMethodadd_scores_all
(self, annotations)
instruct_to_policy/scripts/src/grounding_model/glip/maskrcnn_benchmark/data/datasets/box_label_loader.py:116
↓ 1 callersMethodadd_to_corpus
Tokenizes a text line.
instruct_to_policy/scripts/src/grounding_model/glip/maskrcnn_benchmark/modeling/language_backbone/word_utils.py:58
↓ 1 callersFunctionadjust_z
Calculate the new minimum object center z-position for object given its 3D bounding box and a list of collided 3D bounding boxes.
instruct_to_policy/scripts/src/env/utils.py:151
↓ 1 callersFunctionalign_and_update_state_dicts
Strategy: suppose that the models that we will create will have prefixes appended to each of its keys, for example due to an extra level of n
instruct_to_policy/scripts/src/grounding_model/glip/maskrcnn_benchmark/utils/model_serialization.py:20
↓ 1 callersMethodann_to_rle
Convert annotation which can be polygons, uncompressed RLE to RLE. Args: ann (dict) : annotation object Returns:
instruct_to_policy/scripts/src/grounding_model/glip/maskrcnn_benchmark/data/datasets/lvis.py:176
↓ 1 callersMethodapply_transforms
(self, image, target=None)
instruct_to_policy/scripts/src/grounding_model/glip/maskrcnn_benchmark/data/datasets/tsv.py:280
↓ 1 callersFunctionargsort_grasp_pose_parallel_to_axis
Argsorts a list of grasp candidates based on the dot product between the gripper approach vector and the predicted axis. In other words, the
instruct_to_policy/scripts/src/grasp_detection/utils.py:63
↓ 1 callersFunctionargsort_grasp_pose_parallel_to_plane
Argsorts a list of grasp candidates based on the dot product between the gripper plane normal and the predicted plane normal. In other words,
instruct_to_policy/scripts/src/grasp_detection/utils.py:143
↓ 1 callersFunctionas_mesh
Convert a possible scene to a mesh. If conversion occurs, the returned mesh has only vertex and face data.
instruct_to_policy/scripts/data/process_complex_urdf.py:19
↓ 1 callersMethodattention
(self, x: torch.Tensor, key_padding_mask: torch.Tensor = None)
instruct_to_policy/scripts/src/grounding_model/glip/maskrcnn_benchmark/modeling/language_backbone/clip_model.py:58
↓ 1 callersFunctionbasic_clean
(text)
instruct_to_policy/scripts/src/grounding_model/glip/maskrcnn_benchmark/modeling/language_backbone/simple_tokenizer.py:53
↓ 1 callersFunctionbbox_overlaps
anchors: (N, 4) ndarray of float gt_boxes: (K, 4) ndarray of float overlaps: (N, K) ndarray of overlap between boxes and query_boxes
instruct_to_policy/scripts/src/grounding_model/glip/maskrcnn_benchmark/data/datasets/vg.py:23
↓ 1 callersFunctionbbox_vote
(boxes, scores, vote_thresh)
instruct_to_policy/scripts/src/grounding_model/glip/maskrcnn_benchmark/data/datasets/evaluation/box_aug.py:241
↓ 1 callersFunctionbn_statistic
(model, rngs, data_loader, device=cfg.MODEL.DEVICE, max_iter=500)
instruct_to_policy/scripts/src/grounding_model/glip/maskrcnn_benchmark/engine/evolution.py:54
↓ 1 callersFunctionbox_iou
Return intersection-over-union (Jaccard index) of boxes. Both sets of boxes are expected to be in ``(x1, y1, x2, y2)`` format with ``0 <
instruct_to_policy/scripts/src/grounding_model/glip/maskrcnn_benchmark/data/datasets/evaluation/flickr/flickr_eval.py:186
↓ 1 callersFunctionbox_iou
(boxes1, boxes2)
instruct_to_policy/scripts/src/grounding_model/glip/maskrcnn_benchmark/layers/set_loss.py:15
↓ 1 callersFunctionboxlist_nms
(boxlist, thresh, max_proposals=-1, score_field="scores", nms_type='nms')
instruct_to_policy/scripts/src/grounding_model/glip/maskrcnn_benchmark/data/datasets/evaluation/box_aug.py:209
↓ 1 callersMethodbpe
(self, token)
instruct_to_policy/scripts/src/grounding_model/glip/maskrcnn_benchmark/modeling/language_backbone/simple_tokenizer.py:85
↓ 1 callersFunctionbroadcast_data
(data)
instruct_to_policy/scripts/src/grounding_model/glip/maskrcnn_benchmark/utils/comm.py:122
↓ 1 callersFunctionbuild_bert_backbone
(cfg)
instruct_to_policy/scripts/src/grounding_model/glip/bert_model.py:11
↓ 1 callersFunctionbuild_dataset
Arguments: dataset_list (list[str]): Contains the names of the datasets, i.e., coco_2014_trian, coco_2014_val, etc tr
instruct_to_policy/scripts/src/grounding_model/glip/maskrcnn_benchmark/data/build.py:21
↓ 1 callersFunctionbuild_dataset_by_group
Arguments: dataset_list (list[str]): Contains the names of the datasets, i.e., coco_2014_trian, coco_2014_val, etc tr
instruct_to_policy/scripts/src/grounding_model/glip/maskrcnn_benchmark/data/build.py:124
↓ 1 callersFunctionbuild_flickr_evaluator
(cfg)
instruct_to_policy/scripts/src/grounding_model/glip/maskrcnn_benchmark/engine/inference.py:339
↓ 1 callersFunctionbuild_generalized_vlrcnn_model
(cfg)
instruct_to_policy/scripts/src/grounding_model/glip/generalized_vl_rcnn.py:25
↓ 1 callersFunctionbuild_lvis_evaluator
(ann_file, fixed_ap=True)
instruct_to_policy/scripts/src/grounding_model/glip/maskrcnn_benchmark/engine/inference.py:346
↓ 1 callersMethodbuild_messages
(self, query, context="")
instruct_to_policy/scripts/src/lmp/lmp_base.py:33
↓ 1 callersFunctionbuild_retinanet_swint_fpn_backbone
Args: cfg: a detectron2 CfgNode Returns: backbone (Backbone): backbone module, must be a subclass of :class:`Backbone`.
instruct_to_policy/scripts/src/grounding_model/glip/swint_fpn_retinanet.py:12
↓ 1 callersFunctionbuild_roi_box_head
Constructs a new box head. By default, uses ROIBoxHead, but if it turns out not to be enough, just register a new class and make it a par
instruct_to_policy/scripts/src/grounding_model/glip/maskrcnn_benchmark/modeling/roi_heads/box_head/box_head.py:69
↓ 1 callersFunctionbuild_roi_keypoint_head
(cfg)
instruct_to_policy/scripts/src/grounding_model/glip/maskrcnn_benchmark/modeling/roi_heads/keypoint_head/keypoint_head.py:49
↓ 1 callersFunctionbuild_roi_mask_head
(cfg)
instruct_to_policy/scripts/src/grounding_model/glip/maskrcnn_benchmark/modeling/roi_heads/mask_head/mask_head.py:87
↓ 1 callersFunctionbuild_rpn_vldyhead
(cfg)
instruct_to_policy/scripts/src/grounding_model/glip/vldyhead.py:29
↓ 1 callersFunctionbuild_tokenizer
(tokenizer_name)
instruct_to_policy/scripts/src/grounding_model/glip/maskrcnn_benchmark/modeling/language_backbone/build.py:4
↓ 1 callersMethodbuild_tokenizer
(self)
instruct_to_policy/scripts/src/grounding_model/glip/predictor_glip.py:91
↓ 1 callersMethodbuild_tokenizer
(self)
instruct_to_policy/scripts/src/grounding_model/glip/maskrcnn_benchmark/engine/predictor_glip.py:92
↓ 1 callersMethodbuild_transform
Creates a basic transformation that was used to train the models
instruct_to_policy/scripts/src/grounding_model/glip/predictor_glip.py:61
↓ 1 callersMethodbuild_transform
Creates a basic transformation that was used to train the models
instruct_to_policy/scripts/src/grounding_model/glip/maskrcnn_benchmark/engine/predictor_glip.py:62
↓ 1 callersMethodbuild_transform
Creates a basic transformation that was used to train the models
instruct_to_policy/scripts/src/grounding_model/glip/maskrcnn_benchmark/engine/predictor.py:139
↓ 1 callersFunctionbuild_transforms
(cfg, is_train=True)
instruct_to_policy/scripts/src/grounding_model/glip/maskrcnn_benchmark/data/transforms/build.py:5
↓ 1 callersFunctioncache_url
r"""Loads the Torch serialized object at the given URL. If the object is already present in `model_dir`, it's deserialized and returned. The f
instruct_to_policy/scripts/src/grounding_model/glip/maskrcnn_benchmark/utils/model_zoo.py:20
↓ 1 callersFunctioncalc_2d_bbox_iob1
Calculate the 2D bounding box intersection over bbox_1 Args: bbox_1: (4,) np.array [x1, y1, x2, y2] bbox_2: (4,) np.array [x1
instruct_to_policy/scripts/src/eval/utils.py:39
↓ 1 callersFunctioncalc_3d_bbox_iob1
Calculate the 3D bounding box intersection over bbox_1 Args: bbox_1: (6,) np.array [x1, y1, z1, x2, y2, z2] bbox_2: (6,) np.a
instruct_to_policy/scripts/src/eval/utils.py:6
↓ 1 callersFunctioncalc_detection_voc_ap
Calculate average precisions based on evaluation code of PASCAL VOC. This function calculates average precisions from given precisions and rec
instruct_to_policy/scripts/src/grounding_model/glip/maskrcnn_benchmark/data/datasets/evaluation/voc/voc_eval.py:160
↓ 1 callersFunctioncalc_detection_voc_prec_rec
Calculate precision and recall based on evaluation code of PASCAL VOC. This function calculates precision and recall of predicted bounding box
instruct_to_policy/scripts/src/grounding_model/glip/maskrcnn_benchmark/data/datasets/evaluation/vg/vg_eval.py:326
↓ 1 callersFunctioncalc_detection_voc_prec_rec
Calculate precision and recall based on evaluation code of PASCAL VOC. This function calculates precision and recall of predicted bounding box
instruct_to_policy/scripts/src/grounding_model/glip/maskrcnn_benchmark/data/datasets/evaluation/voc/voc_eval.py:68
↓ 1 callersFunctioncalc_iou
(a, b)
instruct_to_policy/scripts/src/grounding_model/glip/maskrcnn_benchmark/modeling/backbone/efficientdet.py:1328
↓ 1 callersMethodcalculate_gamma
(self, x)
instruct_to_policy/scripts/src/grounding_model/glip/maskrcnn_benchmark/layers/deform_pool.py:83
↓ 1 callersFunctioncalculate_giou
(pred, gt)
instruct_to_policy/scripts/src/grounding_model/glip/maskrcnn_benchmark/modeling/backbone/efficientdet.py:1534
↓ 1 callersFunctioncalculate_place_position
Given object bbox, receptacle bbox, and other obstacle objects bboxes, calculate a valid position to place the object. The position is calcul
instruct_to_policy/scripts/src/env/utils.py:106
↓ 1 callersFunctioncheck_code_grammar
Check the grammar of the code generated by chatgpt.
instruct_to_policy/scripts/data/check_code_grammer.py:42
↓ 1 callersMethodcheck_for_overlap
(range1, range2)
instruct_to_policy/scripts/src/grounding_model/glip/maskrcnn_benchmark/data/datasets/pseudo_data.py:76
↓ 1 callersFunctioncheck_if_standing
Check if the object is standing. If the object is standing, the z axis of the object's orientation should be close to 1 or -1.
instruct_to_policy/scripts/src/eval/utils.py:71
↓ 1 callersFunctioncheck_occlusion
Check whether a model is occluded by other objects in the scene. Calculate the bbox_3d corners and project them to the depth image. At le
instruct_to_policy/scripts/data/generate_multiview_detection.py:53
↓ 1 callersFunctionclean_name
(name)
instruct_to_policy/scripts/src/grounding_model/glip/maskrcnn_benchmark/engine/inference.py:104
↓ 1 callersFunctioncollect_example_queries_from_prompt
Collect example queries from the prompt. The prompt is in message format from openai chat completion API: https://platform.openai.com/docs/gu
instruct_to_policy/scripts/data/generate_queries_from_world.py:60
↓ 1 callersFunctioncollides_with_bbox
Check if the bounding box collides with another bounding box .
instruct_to_policy/scripts/data/generate_random_table_cabinet_world.py:97
↓ 1 callersFunctioncompose_wrapped_code_str
Wrap code_str with a function definition and call it with vars. This is used to check the grammar of the code.
instruct_to_policy/scripts/data/check_code_grammer.py:28
↓ 1 callersMethodcomputeIK
Check if a given pose is reachable for the robot. Return True if it is, False otherwise.
instruct_to_policy/scripts/src/env/moveit_gazebo_env.py:190
↓ 1 callersMethodcompute_centerness_targets
(self, reg_targets)
instruct_to_policy/scripts/src/grounding_model/glip/maskrcnn_benchmark/modeling/rpn/loss.py:443
↓ 1 callersMethodcompute_centerness_targets
(self, reg_targets, anchors)
instruct_to_policy/scripts/src/grounding_model/glip/maskrcnn_benchmark/modeling/rpn/loss.py:832
↓ 1 callersMethodcompute_iou
(self, img_id, cat_id)
instruct_to_policy/scripts/src/grounding_model/glip/maskrcnn_benchmark/data/datasets/evaluation/lvis/lvis_eval.py:292
↓ 1 callersMethodcompute_locations
(self, features)
instruct_to_policy/scripts/src/grounding_model/glip/maskrcnn_benchmark/modeling/rpn/fcos.py:208
↓ 1 callersMethodcompute_locations_per_level
(self, h, w, stride, device)
instruct_to_policy/scripts/src/grounding_model/glip/maskrcnn_benchmark/modeling/rpn/fcos.py:219
↓ 1 callersFunctioncompute_on_dataset
(model, rngs, data_loader, device=cfg.MODEL.DEVICE)
instruct_to_policy/scripts/src/grounding_model/glip/maskrcnn_benchmark/engine/evolution.py:39
↓ 1 callersMethodcompute_targets_for_locations
(self, locations, targets, object_sizes_of_interest)
instruct_to_policy/scripts/src/grounding_model/glip/maskrcnn_benchmark/modeling/rpn/loss.py:384
↓ 1 callersMethodconcate_box_list
(list_of_boxes)
instruct_to_policy/scripts/src/grounding_model/glip/maskrcnn_benchmark/structures/bounding_box.py:273
↓ 1 callersFunctionconv3x3_block
3x3 version of the standard convolution block. Parameters: ---------- in_channels : int Number of input channels. out_ch
instruct_to_policy/scripts/src/grounding_model/glip/maskrcnn_benchmark/modeling/backbone/efficientnet.py:193
↓ 1 callersMethodconvert_anno_from_v2_to_v1
(self, anno)
instruct_to_policy/scripts/src/grounding_model/glip/maskrcnn_benchmark/data/datasets/caption.py:252
↓ 1 callersMethodconvert_anno_from_yiling_to_ours
(self, anno)
instruct_to_policy/scripts/src/grounding_model/glip/maskrcnn_benchmark/data/datasets/pseudo_data.py:202
↓ 1 callersFunctionconvert_grounding_to_od_logits_v2
(logits, num_class, positive_map, score_agg=None, disable_minus_one = True)
instruct_to_policy/scripts/src/grounding_model/glip/inference.py:792
↓ 1 callersFunctionconvert_grounding_to_od_logits_v2
(logits, num_class, positive_map, score_agg=None, disable_minus_one = True)
instruct_to_policy/scripts/src/grounding_model/glip/maskrcnn_benchmark/modeling/rpn/inference.py:792
↓ 1 callersFunctionconvert_mask_grounding_to_od_logits
(logits, positive_map_label_to_token, num_classes)
instruct_to_policy/scripts/src/grounding_model/glip/maskrcnn_benchmark/modeling/roi_heads/mask_head/inference.py:10
↓ 1 callersFunctionconvert_od_to_grounding_simple
Convert object detection data into grounding data format, on the fly. ind_to_class: {0: "__background__", 1 : "person" ...}, contiguous id
instruct_to_policy/scripts/src/grounding_model/glip/maskrcnn_benchmark/data/datasets/od_to_grounding.py:20
↓ 1 callersMethodconvert_to_roi_format
(self, boxes)
instruct_to_policy/scripts/src/grounding_model/glip/maskrcnn_benchmark/modeling/poolers.py:82
↓ 1 callersFunctioncreate_collision_object_from_open3d_mesh
(name:str, pose_stamped: PoseStamped, triangle_mesh: o3d.geometry.TriangleMesh, scale=(1, 1, 1))
instruct_to_policy/scripts/src/env/utils.py:170
↓ 1 callersFunctioncreate_common_lvis_eval
(lvis_eval, img_ids, eval_imgs)
instruct_to_policy/scripts/src/grounding_model/glip/maskrcnn_benchmark/data/datasets/evaluation/lvis/lvis_eval.py:989
↓ 1 callersFunctioncreate_duplicate_dataset
(DatasetBaseClass)
instruct_to_policy/scripts/src/grounding_model/glip/maskrcnn_benchmark/data/datasets/duplicate_dataset.py:11
↓ 1 callersMethodcreate_f_from_sig
(self, f_name, f_sig, other_vars=None, fix_bugs=False, return_src=False)
instruct_to_policy/scripts/src/lmp/lmp_base.py:113
↓ 1 callersFunctioncreate_greenlight_map
(tok_list, tokenized)
instruct_to_policy/scripts/src/grounding_model/glip/maskrcnn_benchmark/data/datasets/modulated_coco.py:523
↓ 1 callersFunctioncreate_grounding_model
Create grounding model. Args: model_name: String, name of the grounding model. kwargs: Dict, arguments for the grounding mode
instruct_to_policy/scripts/src/grounding_model/__init__.py:11
↓ 1 callersFunctioncreate_lineidx
(filein, idxout)
instruct_to_policy/scripts/src/grounding_model/glip/maskrcnn_benchmark/data/datasets/tsv.py:50
↓ 1 callersMethodcreate_mask_montage
(self, image, predictions)
instruct_to_policy/scripts/src/grounding_model/glip/predictor_glip.py:329
← previousnext →501–600 of 2,080, ranked by callers