MCPcopy Create free account

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

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

↓ 2 callersMethod_freeze_stages
(self)
instruct_to_policy/scripts/src/grounding_model/glip/swint.py:556
↓ 2 callersMethod_freeze_stages
(self)
instruct_to_policy/scripts/src/grounding_model/glip/maskrcnn_benchmark/modeling/backbone/swint.py:556
↓ 2 callersMethod_freeze_stages
(self)
instruct_to_policy/scripts/src/grounding_model/glip/maskrcnn_benchmark/modeling/backbone/swint_v2_vl.py:744
↓ 2 callersMethod_freeze_stages
(self)
instruct_to_policy/scripts/src/grounding_model/glip/maskrcnn_benchmark/modeling/backbone/swint_vl.py:661
↓ 2 callersMethod_freeze_stages
(self)
instruct_to_policy/scripts/src/grounding_model/glip/maskrcnn_benchmark/modeling/backbone/swint_v2.py:635
↓ 2 callersFunction_get_divisible_by
(num, divisible_by, min_val)
instruct_to_policy/scripts/src/grounding_model/glip/maskrcnn_benchmark/modeling/backbone/fbnet.py:27
↓ 2 callersMethod_get_gt_dt
Create gt, dt which are list of anns/dets. If use_cats is true only anns/dets corresponding to tuple (img_id, cat_id) will be used. El
instruct_to_policy/scripts/src/grounding_model/glip/maskrcnn_benchmark/data/datasets/evaluation/lvis/lvis_eval.py:279
↓ 2 callersMethod_get_src_permutation_idx
(self, indices)
instruct_to_policy/scripts/src/grounding_model/glip/maskrcnn_benchmark/layers/set_loss.py:306
↓ 2 callersMethod_load_file
(self, f)
instruct_to_policy/scripts/src/grounding_model/glip/maskrcnn_benchmark/utils/checkpoint.py:114
↓ 2 callersMethod_load_json
(self, path)
instruct_to_policy/scripts/src/grounding_model/glip/maskrcnn_benchmark/data/datasets/evaluation/lvis/lvis.py:41
↓ 2 callersFunction_make_coord
(batch, height, width)
instruct_to_policy/scripts/src/grounding_model/glip/maskrcnn_benchmark/utils/fuse_helper.py:87
↓ 2 callersFunction_make_stage
( transformation_module, in_channels, bottleneck_channels, out_channels, block_count,
instruct_to_policy/scripts/src/grounding_model/glip/maskrcnn_benchmark/modeling/backbone/resnet.py:232
↓ 2 callersFunction_merge_lists
(listA, listB, maxN, key)
instruct_to_policy/scripts/src/grounding_model/glip/maskrcnn_benchmark/data/datasets/evaluation/lvis/lvis_eval.py:752
↓ 2 callersFunction_mkanchors
Given a vector of widths (ws) and heights (hs) around a center (x_ctr, y_ctr), output a set of anchors (windows).
instruct_to_policy/scripts/src/grounding_model/glip/anchor_generator.py:391
↓ 2 callersFunction_mkanchors
Given a vector of widths (ws) and heights (hs) around a center (x_ctr, y_ctr), output a set of anchors (windows).
instruct_to_policy/scripts/src/grounding_model/glip/maskrcnn_benchmark/modeling/rpn/anchor_generator.py:391
↓ 2 callersFunction_onnx_clip_boxes_to_image
Clip boxes so that they lie inside an image of size `size`. Clip's min max are traced as constants. Use torch.min/max to WAR this issue A
instruct_to_policy/scripts/src/grounding_model/glip/maskrcnn_benchmark/structures/bounding_box.py:287
↓ 2 callersMethod_parse_response
Parse response from the remote service.
instruct_to_policy/scripts/src/grounding_model/grounding_embodiedgpt.py:54
↓ 2 callersMethod_post_process
(self, predictions, threshold=0.5)
instruct_to_policy/scripts/src/grounding_model/glip/maskrcnn_benchmark/engine/predictor_glip.py:258
↓ 2 callersMethod_post_process_fixed_thresh
(self, predictions)
instruct_to_policy/scripts/src/grounding_model/glip/predictor_glip.py:212
↓ 2 callersMethod_prepare_batches
(self)
instruct_to_policy/scripts/src/grounding_model/glip/maskrcnn_benchmark/data/samplers/grouped_batch_sampler.py:40
↓ 2 callersFunction_register_generic
(module_dict, module_name, module)
instruct_to_policy/scripts/src/grounding_model/glip/maskrcnn_benchmark/utils/registry.py:4
↓ 2 callersMethod_to_mask
(self, anns, lvis)
instruct_to_policy/scripts/src/grounding_model/glip/maskrcnn_benchmark/data/datasets/evaluation/lvis/lvis_eval.py:195
↓ 2 callersFunction_whctrs
Return width, height, x center, and y center for an anchor (window).
instruct_to_policy/scripts/src/grounding_model/glip/anchor_generator.py:382
↓ 2 callersFunction_whctrs
Return width, height, x center, and y center for an anchor (window).
instruct_to_policy/scripts/src/grounding_model/glip/maskrcnn_benchmark/modeling/rpn/anchor_generator.py:382
↓ 2 callersFunctionadd_model_to_xml
Add a model to the world tag in xml. Args: xml_root: The root of the xml tree model_id: The model id model_name: The
instruct_to_policy/scripts/data/generate_random_table_cabinet_world.py:286
↓ 2 callersMethodadd_negative
Log a negative hit @k for given category
instruct_to_policy/scripts/src/grounding_model/glip/maskrcnn_benchmark/data/datasets/evaluation/flickr/flickr_eval.py:239
↓ 2 callersMethodadd_positive
Log a positive hit @k for given category
instruct_to_policy/scripts/src/grounding_model/glip/maskrcnn_benchmark/data/datasets/evaluation/flickr/flickr_eval.py:232
↓ 2 callersFunctionadd_preds_t
(boxlists_t)
instruct_to_policy/scripts/src/grounding_model/glip/maskrcnn_benchmark/data/datasets/evaluation/box_aug.py:18
↓ 2 callersMethodadd_visibility_to
(self, boxlist)
instruct_to_policy/scripts/src/grounding_model/glip/anchor_generator.py:97
↓ 2 callersMethodadd_visibility_to
(self, boxlist)
instruct_to_policy/scripts/src/grounding_model/glip/anchor_generator.py:208
↓ 2 callersMethodadd_visibility_to
(self, boxlist)
instruct_to_policy/scripts/src/grounding_model/glip/maskrcnn_benchmark/modeling/rpn/anchor_generator.py:97
↓ 2 callersMethodadd_visibility_to
(self, boxlist)
instruct_to_policy/scripts/src/grounding_model/glip/maskrcnn_benchmark/modeling/rpn/anchor_generator.py:208
↓ 2 callersFunctionall_gather
Run all_gather on arbitrary picklable data (not necessarily tensors) Args: data: any picklable object Returns: list[data]
instruct_to_policy/scripts/src/grounding_model/glip/maskrcnn_benchmark/utils/mdetr_dist.py:32
↓ 2 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/evaluation/lvis/lvis.py:174
↓ 2 callersMethodattention
(self, x: torch.Tensor, key_padding_mask: torch.Tensor = None)
instruct_to_policy/scripts/src/grounding_model/glip/vldyhead.py:323
↓ 2 callersMethodattention
(self, x: torch.Tensor, key_padding_mask: torch.Tensor = None)
instruct_to_policy/scripts/src/grounding_model/glip/maskrcnn_benchmark/modeling/rpn/vldyhead.py:318
↓ 2 callersFunctionbox_area
Computes the area of a set of bounding boxes, which are specified by its (x1, y1, x2, y2) coordinates. Args: boxes (Tensor[N, 4]
instruct_to_policy/scripts/src/grounding_model/glip/maskrcnn_benchmark/data/datasets/evaluation/flickr/flickr_eval.py:152
↓ 2 callersFunctionbox_area
(boxes)
instruct_to_policy/scripts/src/grounding_model/glip/maskrcnn_benchmark/layers/set_loss.py:10
↓ 2 callersFunctionbuild_backbone
(cfg)
instruct_to_policy/scripts/src/grounding_model/glip/maskrcnn_benchmark/modeling/backbone/__init__.py:234
↓ 2 callersFunctionbuild_detection_model
(cfg)
instruct_to_policy/scripts/src/grounding_model/glip/maskrcnn_benchmark/modeling/detector/__init__.py:9
↓ 2 callersFunctionbuild_roi_heads
(cfg)
instruct_to_policy/scripts/src/grounding_model/glip/maskrcnn_benchmark/modeling/roi_heads/__init__.py:64
↓ 2 callersFunctionbuild_rpn
This gives the gist of it. Not super important because it doesn't change as much
instruct_to_policy/scripts/src/grounding_model/glip/maskrcnn_benchmark/modeling/rpn/__init__.py:19
↓ 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
instruct_to_policy/scripts/src/grounding_model/glip/maskrcnn_benchmark/modeling/language_backbone/simple_tokenizer.py:19
↓ 2 callersFunctioncalculate_result_precision
(result, gt_match_tuple_list)
instruct_to_policy/scripts/tests/perception/test_utils.py:72
↓ 2 callersFunctioncalculate_result_recall
(result, gt_match_tuple_list)
instruct_to_policy/scripts/tests/perception/test_utils.py:84
↓ 2 callersMethodcategories
(self, no_background=True)
instruct_to_policy/scripts/src/grounding_model/glip/maskrcnn_benchmark/data/datasets/modulated_coco.py:116
↓ 2 callersMethodcategories
(self, no_background=True)
instruct_to_policy/scripts/src/grounding_model/glip/maskrcnn_benchmark/data/datasets/coco.py:190
↓ 2 callersFunctionchannel_shuffle
(x, groups)
instruct_to_policy/scripts/src/grounding_model/glip/maskrcnn_benchmark/modeling/backbone/blocks.py:154
↓ 2 callersFunctioncheck_expected_results
(results, expected_results, sigma_tol)
instruct_to_policy/scripts/src/grounding_model/glip/maskrcnn_benchmark/data/datasets/evaluation/coco/coco_eval.py:512
↓ 2 callersFunctioncheck_expected_results
(results, expected_results, sigma_tol)
instruct_to_policy/scripts/src/grounding_model/glip/maskrcnn_benchmark/data/datasets/evaluation/od_to_grounding/od_eval.py:512
↓ 2 callersFunctioncheck_for_positive_overflow
(target, ind_to_class, tokenizer, max_seq_length=256)
instruct_to_policy/scripts/src/grounding_model/glip/maskrcnn_benchmark/data/datasets/od_to_grounding.py:104
↓ 2 callersFunctionchunks
Yield successive n-sized chunks from lst.
instruct_to_policy/scripts/src/grounding_model/glip/maskrcnn_benchmark/engine/inference.py:165
↓ 2 callersMethodclose_gripper
(self, value=0.0)
instruct_to_policy/scripts/src/env/ur5_moveit_gazebo_env.py:36
↓ 2 callersFunctioncoco_evaluation
( dataset, predictions, output_folder, box_only=False, iou_types=("bbox",), expected_r
instruct_to_policy/scripts/src/grounding_model/glip/maskrcnn_benchmark/data/datasets/evaluation/coco/__init__.py:4
↓ 2 callersFunctioncollides_with_other_objects
Check if the bounding box collides with other objects in the world.
instruct_to_policy/scripts/data/generate_random_table_cabinet_world.py:109
↓ 2 callersMethodcomputeIK
(self, orientation, position)
franka_policy/src/grasp_detection.py:73
↓ 2 callersMethodcomputeIK
Check if a given pose is reachable for the robot. Return True if it is, False otherwise.
franka_policy/src/grasp_executor.py:49
↓ 2 callersMethodcompute_colors_for_labels
Simple function that adds fixed colors depending on the class
instruct_to_policy/scripts/src/grounding_model/glip/predictor_glip.py:248
↓ 2 callersMethodcompute_colors_for_labels
Simple function that adds fixed colors depending on the class
instruct_to_policy/scripts/src/grounding_model/glip/maskrcnn_benchmark/engine/predictor_glip.py:276
↓ 2 callersMethodcompute_colors_for_labels
Simple function that adds fixed colors depending on the class
instruct_to_policy/scripts/src/grounding_model/glip/maskrcnn_benchmark/engine/predictor.py:297
↓ 2 callersFunctioncompute_intertial_link
(link_element: ET.Element, mesh_dir, use_visual_mesh=False, density=10.0, min_mass=0.1)
instruct_to_policy/scripts/data/process_complex_urdf.py:62
↓ 2 callersFunctioncompute_mesh_origin_mass_and_inertia
(mesh, mesh_name="", density=10.0)
instruct_to_policy/scripts/data/process_complex_urdf.py:6
↓ 2 callersMethodcompute_prediction
(self, original_image, original_caption, custom_entity = None)
instruct_to_policy/scripts/src/grounding_model/glip/maskrcnn_benchmark/engine/predictor_glip.py:177
↓ 2 callersMethodcompute_prediction
Arguments: original_image (np.ndarray): an image as returned by OpenCV Returns: prediction (BoxList): the de
instruct_to_policy/scripts/src/grounding_model/glip/maskrcnn_benchmark/engine/predictor.py:212
↓ 2 callersFunctionconcat_box_prediction_layers
(box_regression, box_cls=None, token_logits=None)
instruct_to_policy/scripts/src/grounding_model/glip/maskrcnn_benchmark/modeling/utils.py:26
↓ 2 callersFunctionconvert_grounding_to_od_logits
(logits, box_cls, positive_map, score_agg=None)
instruct_to_policy/scripts/src/grounding_model/glip/inference.py:771
↓ 2 callersFunctionconvert_grounding_to_od_logits
(logits, box_cls, positive_map, score_agg=None)
instruct_to_policy/scripts/src/grounding_model/glip/maskrcnn_benchmark/modeling/rpn/inference.py:771
↓ 2 callersFunctionconvert_object_detection_to_grounding_optimized_for_od
ind_to_class: {0: "__background__", 1 : "person" ...} target: restricted_negative_list : for datasets with restricted negatives, sample
instruct_to_policy/scripts/src/grounding_model/glip/maskrcnn_benchmark/data/datasets/od_to_grounding.py:149
↓ 2 callersFunctionconvert_to_roi_format
(boxes)
instruct_to_policy/scripts/src/grounding_model/glip/maskrcnn_benchmark/utils/shallow_contrastive_loss_helper.py:53
↓ 2 callersFunctioncreate_grasp_model
Create grasp detection model from config.
instruct_to_policy/scripts/src/grasp_detection/__init__.py:4
↓ 2 callersMethodcreate_mask_montage
(self, image, predictions)
instruct_to_policy/scripts/src/grounding_model/glip/maskrcnn_benchmark/engine/predictor_glip.py:375
↓ 2 callersMethodcreate_new_fs_from_code
(self, code_str, other_vars=None, fix_bugs=False, return_src=False)
instruct_to_policy/scripts/src/lmp/lmp_base.py:68
↓ 2 callersFunctioncreate_positive_map
construct a map such that positive_map[i,j] = True iff box i is associated to token j
instruct_to_policy/scripts/src/grounding_model/glip/maskrcnn_benchmark/data/datasets/modulated_coco.py:615
↓ 2 callersFunctioncreate_positive_map_label_to_token_from_positive_map
(positive_map, plus = 0)
instruct_to_policy/scripts/src/grounding_model/glip/maskrcnn_benchmark/engine/inference.py:284
↓ 2 callersMethodcrop_cloud
(self, crop_center, crop_size)
instruct_to_policy/scripts/src/perception/scalable_tsdf.py:105
↓ 2 callersMethodcrop_mesh
(self, crop_center, crop_size)
instruct_to_policy/scripts/src/perception/scalable_tsdf.py:90
↓ 2 callersFunctionefficientnet_params
Map EfficientNet model name to parameter coefficients.
instruct_to_policy/scripts/src/grounding_model/glip/maskrcnn_benchmark/modeling/backbone/efficientdet.py:847
↓ 2 callersFunctionflops_to_string
(flops, units='GMac', precision=2)
instruct_to_policy/scripts/src/grounding_model/glip/maskrcnn_benchmark/utils/stats.py:58
↓ 2 callersMethodforward
(self, x)
instruct_to_policy/scripts/src/grounding_model/glip/maskrcnn_benchmark/modeling/backbone/fbnet.py:108
↓ 2 callersMethodfrom_matrix
Initialize from a 4x4 matrix.
grasp_detection/src/detectors/utils.py:69
↓ 2 callersFunctionfunc_attention
query: (n_context, queryL, d) context: (n_context, sourceL, d)
instruct_to_policy/scripts/src/grounding_model/glip/maskrcnn_benchmark/utils/fuse_helper.py:122
↓ 2 callersFunctiongenerate_anchors
Generates a matrix of anchor boxes in (x1, y1, x2, y2) format. Anchors are centered on stride / 2, have (approximate) sqrt areas of the specified
instruct_to_policy/scripts/src/grounding_model/glip/anchor_generator.py:356
↓ 2 callersFunctiongenerate_anchors
Generates a matrix of anchor boxes in (x1, y1, x2, y2) format. Anchors are centered on stride / 2, have (approximate) sqrt areas of the specified
instruct_to_policy/scripts/src/grounding_model/glip/maskrcnn_benchmark/modeling/rpn/anchor_generator.py:356
↓ 2 callersMethodgenerate_indices_within_range_with_rank
Use scenario : we want to sample 2500 examples from 10000 examples, while not sampling overlapping examples with other three process.
instruct_to_policy/scripts/src/grounding_model/glip/maskrcnn_benchmark/data/datasets/custom_distributed_sampler.py:130
↓ 2 callersFunctiongenerate_senetence_given_labels
v3: with simple prompt such as "there are", "are there?" v4: try to merge some are there / there are together, to avoid sequence bein
instruct_to_policy/scripts/src/grounding_model/glip/maskrcnn_benchmark/data/datasets/od_to_grounding.py:194
↓ 2 callersMethodget_ann_ids
Get ann ids that satisfy given filter conditions. Args: img_ids (int array): get anns for given imgs cat_ids (int arra
instruct_to_policy/scripts/src/grounding_model/glip/maskrcnn_benchmark/data/datasets/lvis.py:72
↓ 2 callersMethodget_annotations
(self, idx)
instruct_to_policy/scripts/src/grounding_model/glip/maskrcnn_benchmark/data/datasets/tsv.py:266
↓ 2 callersFunctionget_gt_match_tuple_list
(bboxes_labels_list)
instruct_to_policy/scripts/tests/perception/test_utils.py:96
↓ 2 callersMethodget_image
(self, idx)
instruct_to_policy/scripts/src/grounding_model/glip/maskrcnn_benchmark/data/datasets/tsv.py:253
↓ 2 callersMethodget_key
(self, hint, image_shape)
instruct_to_policy/scripts/src/grounding_model/glip/maskrcnn_benchmark/modeling/backbone/efficientdet.py:1190
↓ 2 callersMethodget_latest_data
Get latest synchronized rgb and depth image from all cameras
instruct_to_policy/scripts/src/env/gazebo_cameras.py:239
↓ 2 callersMethodget_loss
(self, loss, outputs, targets, indices, num_boxes, **kwargs)
instruct_to_policy/scripts/src/grounding_model/glip/maskrcnn_benchmark/layers/set_loss.py:318
↓ 2 callersFunctionget_mask_from_2D_bbox
Get 2D mask image of same size as depth image from 2D bounding box @param bbox: 2D bounding box in the form of [min_x, min_y, max_x, max_y]
grasp_detection/src/detectors/utils.py:217
↓ 2 callersFunctionget_mask_from_3D_bbox
Get 2D mask image of same size as depth image by projecting 3D bounding box onto the depth image
instruct_to_policy/scripts/src/perception/utils.py:182
↓ 2 callersMethodget_mesh
(self)
instruct_to_policy/scripts/src/perception/scalable_tsdf.py:86
↓ 2 callersFunctionget_model_parameters_number
(model)
instruct_to_policy/scripts/src/grounding_model/glip/maskrcnn_benchmark/utils/stats.py:150
↓ 2 callersFunctionget_pairs
Return set of symbol pairs in a word. Word is represented as tuple of symbols (symbols being variable-length strings).
instruct_to_policy/scripts/src/grounding_model/glip/maskrcnn_benchmark/modeling/language_backbone/simple_tokenizer.py:41
↓ 2 callersFunctionget_pose_msg
(position, orientation)
franka_policy/src/ros_utils.py:30
↓ 2 callersFunctionget_rank
()
instruct_to_policy/scripts/src/grounding_model/glip/maskrcnn_benchmark/utils/comm.py:23
↓ 2 callersMethodget_size
(self, image_size)
instruct_to_policy/scripts/src/grounding_model/glip/maskrcnn_benchmark/data/transforms/transforms.py:93
← previousnext →201–300 of 2,080, ranked by callers