MCPcopy Create free account

hub / github.com/Yuliang-Liu/Monkey / functions

Functions3,034 in github.com/Yuliang-Liu/Monkey

↓ 2 callersFunction_longest_common_prefix
["abc.zfg", "abc.zef"] -> "abc."
data_generation/grit/third_party/CenterNet2/detectron2/checkpoint/c2_model_loading.py:377
↓ 2 callersFunction_longest_common_prefix_str
(names: List[str])
data_generation/grit/third_party/CenterNet2/detectron2/checkpoint/c2_model_loading.py:388
↓ 2 callersMethod_make_conv_level
(self, inplanes, planes, convs, stride=1, dilation=1)
data_generation/grit/third_party/CenterNet2/projects/CenterNet2/centernet/modeling/backbone/dlafpn.py:232
↓ 2 callersMethod_make_conv_level
(self, inplanes, planes, convs, stride=1, dilation=1)
data_generation/grit/third_party/CenterNet2/projects/CenterNet2/centernet/modeling/backbone/dla.py:233
↓ 2 callersMethod_match_and_label_boxes
Match proposals with groundtruth using the matcher at the given stage. Label the proposals as foreground or background based on the m
data_generation/grit/third_party/CenterNet2/detectron2/modeling/roi_heads/cascade_rcnn.py:209
↓ 2 callersMethod_merge_cfg_str
(self, cfg, merge_str)
data_generation/grit/third_party/CenterNet2/tests/config/test_yacs_config.py:39
↓ 2 callersFunction_op_stats
(net_def)
data_generation/grit/third_party/CenterNet2/detectron2/export/caffe2_export.py:74
↓ 2 callersFunction_print_panoptic_results
(pq_res)
data_generation/grit/third_party/CenterNet2/detectron2/evaluation/panoptic_evaluation.py:168
↓ 2 callersFunction_random_package_name
(filename)
data_generation/grit/third_party/CenterNet2/detectron2/config/lazy.py:96
↓ 2 callersFunction_replace_list
(blob_list, replaced_list)
data_generation/grit/third_party/CenterNet2/detectron2/export/shared.py:494
↓ 2 callersMethod_run_stage
Args: features (list[Tensor]): #lvl input features to ROIHeads proposals (list[Instances]): #image Instances, with th
data_generation/grit/third_party/CenterNet2/detectron2/modeling/roi_heads/cascade_rcnn.py:258
↓ 2 callersMethod_sample_proposals
Based on the matching between N proposals and M groundtruth, sample the proposals and set their classification labels. Args:
data_generation/grit/third_party/CenterNet2/detectron2/modeling/roi_heads/roi_heads.py:181
↓ 2 callersMethod_set_cos_sin_cache
(self, seq_len, device, dtype)
project/mini_monkey/internvl/model/internlm2/modeling_internlm2.py:176
↓ 2 callersMethod_shared_roi_transform
(self, features: List[torch.Tensor], boxes: List[Boxes])
data_generation/grit/third_party/CenterNet2/detectron2/modeling/roi_heads/roi_heads.py:455
↓ 2 callersMethod_subsample_labels
Randomly sample a subset of positive and negative examples, and overwrite the label vector to the ignore value (-1) for all elements
data_generation/grit/third_party/CenterNet2/detectron2/modeling/proposal_generator/rpn.py:287
↓ 2 callersMethod_tasks_from_predictions
Get COCO API "tasks" (i.e. iou_type) from COCO-format predictions.
data_generation/grit/third_party/CenterNet2/detectron2/evaluation/coco_evaluation.py:198
↓ 2 callersMethod_test_rcnn_model
(self, config_path)
data_generation/grit/third_party/CenterNet2/tests/test_export_torchscript.py:52
↓ 2 callersMethod_test_roialignv2_roialignrotated_match
(self, device)
data_generation/grit/third_party/CenterNet2/tests/modeling/test_roi_pooler.py:14
↓ 2 callersMethod_test_scriptability
(self, device)
data_generation/grit/third_party/CenterNet2/tests/modeling/test_roi_pooler.py:68
↓ 2 callersMethod_test_train
(self, input_sizes, instances)
data_generation/grit/third_party/CenterNet2/tests/modeling/test_model_e2e.py:85
↓ 2 callersFunction_to_float
(text: str)
project/mini_monkey/eval/vqa/evaluate_vqa.py:167
↓ 2 callersFunction_to_float
(text: str)
eval/evaluate_vqa.py:182
↓ 2 callersFunction_to_float
(text: str)
eval/evaluate_vqa_doc.py:153
↓ 2 callersFunction_transform_to_aug
Wrap Transform into Augmentation. Private, used internally to implement augmentations.
data_generation/grit/third_party/CenterNet2/detectron2/data/transforms/augmentation.py:216
↓ 2 callersFunction_transpose
This function is used to transpose image first training targets to level first ones :return: level first training targets
data_generation/grit/third_party/CenterNet2/projects/CenterNet2/centernet/modeling/dense_heads/utils.py:15
↓ 2 callersMethod_update_best
(self, val, iteration)
data_generation/grit/third_party/CenterNet2/detectron2/engine/hooks.py:250
↓ 2 callersFunction_update_i
(op, ssa_i)
data_generation/grit/third_party/CenterNet2/detectron2/export/shared.py:415
↓ 2 callersFunction_validate_py_syntax
(filename)
data_generation/grit/third_party/CenterNet2/detectron2/config/lazy.py:73
↓ 2 callersMethod_write_metrics
( self, loss_dict: Mapping[str, torch.Tensor], data_time: float, prefix: str =
data_generation/grit/third_party/CenterNet2/detectron2/engine/train_loop.py:296
↓ 2 callersFunctionalign_and_update_state_dicts
Match names between the two state-dict, and returns a new chkpt_state_dict with names converted to match model_state_dict with heuristics. Th
data_generation/grit/third_party/CenterNet2/detectron2/checkpoint/c2_model_loading.py:209
↓ 2 callersMethodapply_image
(self, img, interp=None)
data_generation/grit/grit/data/transforms/custom_transform.py:47
↓ 2 callersMethodapply_image
(self, img, interp=None)
data_generation/grit/third_party/CenterNet2/detectron2/data/transforms/transform.py:57
↓ 2 callersMethodapply_image
(self, img, interp=None)
data_generation/grit/third_party/CenterNet2/detectron2/data/transforms/transform.py:112
↓ 2 callersFunctionapply_rotary_pos_emb
Applies Rotary Position Embedding to the query and key tensors.
project/mini_monkey/internvl/model/internlm2/modeling_internlm2.py:255
↓ 2 callersFunctionapply_rotary_pos_emb
(t, freqs)
monkey_model/modeling_qwen.py:1337
↓ 2 callersFunctionapply_rotary_pos_emb
(t, freqs)
monkey_model/modeling_qwen_nvdia3090.py:1245
↓ 2 callersMethodapply_segmentation
(self, segmentation)
data_generation/grit/third_party/CenterNet2/detectron2/data/transforms/transform.py:278
↓ 2 callersMethodarea
(self)
data_generation/grit/third_party/CenterNet2/detectron2/utils/visualizer.py:143
↓ 2 callersMethodassign_fpn_level
Inputs: boxes: n x 4 size_ranges: L x 2 Return: is_cared_in_the_level: n x L
data_generation/grit/third_party/CenterNet2/projects/CenterNet2/centernet/modeling/dense_heads/centernet.py:486
↓ 2 callersMethodbefore_step
(self)
data_generation/grit/third_party/CenterNet2/detectron2/engine/hooks.py:75
↓ 2 callersMethodbox_reg_loss
Args: proposal_boxes/gt_boxes are tensors with the same shape (R, 4 or 5). pred_deltas has shape (R, 4 or 5), or (R,
data_generation/grit/third_party/CenterNet2/detectron2/modeling/roi_heads/fast_rcnn.py:320
↓ 2 callersMethodboxlist_to_tensor
(boxlist, output_box_dim)
data_generation/grit/third_party/CenterNet2/detectron2/evaluation/rotated_coco_evaluation.py:34
↓ 2 callersFunctionbuild_custom_augmentation
Create a list of default :class:`Augmentation` from config. Now it includes resizing and flipping. Returns: list[Augmentation]
data_generation/grit/grit/data/custom_build_augmentation.py:6
↓ 2 callersFunctionbuild_custom_augmentation
Create a list of default :class:`Augmentation` from config. Now it includes resizing and flipping. Returns: list[Augmentation]
data_generation/grit/third_party/CenterNet2/projects/CenterNet2/centernet/data/custom_build_augmentation.py:22
↓ 2 callersFunctionbuild_evaluator
Create evaluator(s) for a given dataset. This uses the special metadata "evaluator_type" associated with each builtin dataset. For your o
data_generation/grit/third_party/CenterNet2/tools/train_net.py:43
↓ 2 callersFunctionbuild_mask_head
Build a mask head defined by `cfg.MODEL.ROI_MASK_HEAD.NAME`.
data_generation/grit/third_party/CenterNet2/detectron2/modeling/roi_heads/mask_head.py:287
↓ 2 callersMethodbuild_model
Returns: torch.nn.Module: It now calls :func:`detectron2.modeling.build_model`. Overwrite it if you'd like a dif
data_generation/grit/third_party/CenterNet2/detectron2/engine/defaults.py:506
↓ 2 callersFunctionbuild_res2net_backbone
Create a Res2Net instance from config. Returns: ResNet: a :class:`ResNet` instance.
data_generation/grit/third_party/CenterNet2/projects/CenterNet2/centernet/modeling/backbone/res2net.py:670
↓ 2 callersFunctionbuild_roi_heads
Build ROIHeads defined by `cfg.MODEL.ROI_HEADS.NAME`.
data_generation/grit/third_party/CenterNet2/detectron2/modeling/roi_heads/roi_heads.py:38
↓ 2 callersFunctionbuild_sem_seg_head
Build a semantic segmentation head from `cfg.MODEL.SEM_SEG_HEAD.NAME`.
data_generation/grit/third_party/CenterNet2/detectron2/modeling/meta_arch/semantic_seg.py:127
↓ 2 callersMethodbuild_train_loader
Returns: iterable It now calls :func:`detectron2.data.build_detection_train_loader`. Overwrite it if you'd like
data_generation/grit/third_party/CenterNet2/detectron2/engine/defaults.py:539
↓ 2 callersFunctionbuild_transform
(input_size)
project/mini_monkey/demo.py:12
↓ 2 callersFunctionbuild_transform
(input_size)
project/mini_monkey/eval/internvl_chat.py:21
↓ 2 callersFunctioncalculate_ins_level_acc
Calculate the instruction level accuracy for given Subject results
project/mini_monkey/eval/mmmu/eval_utils.py:255
↓ 2 callersMethodcat
Args: instance_lists (list[Instances]) Returns: Instances
data_generation/grit/third_party/CenterNet2/detectron2/structures/instances.py:152
↓ 2 callersMethodcheck_if_all_background
(self, proposals, targets, stage)
data_generation/grit/grit/modeling/roi_heads/grit_roi_heads.py:134
↓ 2 callersMethodcollate
(self, batch)
data_generation/grit/grit/modeling/text/load_text_token.py:54
↓ 2 callersFunctionconvert_image_to_rgb
Convert an image from given format to RGB. Args: image (np.ndarray or Tensor): an HWC image format (str): the format of inpu
data_generation/grit/third_party/CenterNet2/detectron2/data/detection_utils.py:93
↓ 2 callersMethodcreateIndex
(self)
eval/vqa.py:55
↓ 2 callersMethodcreate_boxes
(self)
data_generation/grit/third_party/CenterNet2/tests/structures/test_boxes.py:153
↓ 2 callersFunctioncreate_data_benchmark
(cfg, args)
data_generation/grit/third_party/CenterNet2/tools/benchmark.py:50
↓ 2 callersMethodcreate_rotation_matrix
(self, offset=0)
data_generation/grit/third_party/CenterNet2/detectron2/data/transforms/transform.py:223
↓ 2 callersFunctiondebug_second_stage
(images, instances, proposals=None, vis_thresh=0.3, save_debug=False, debug_show_name=False)
data_generation/grit/third_party/CenterNet2/projects/CenterNet2/centernet/modeling/debug.py:218
↓ 2 callersFunctiondetector_postprocess
Resize the output instances. The input images are often resized when entering an object detector. As a result, we often need the outputs
data_generation/grit/grit/modeling/meta_arch/grit.py:8
↓ 2 callersFunctiondo_test
(cfg, model)
data_generation/grit/third_party/CenterNet2/tools/lazyconfig_train_net.py:35
↓ 2 callersFunctiondowngrade_config
Downgrade a config from its current version to an older version. Args: cfg (CfgNode): to_version (int): Note: A
data_generation/grit/third_party/CenterNet2/detectron2/config/compat.py:55
↓ 2 callersMethoddraw_polygon
Args: segment: numpy array of shape Nx2, containing all the points in the polygon. color: color of the polygon. Refer
data_generation/grit/third_party/CenterNet2/detectron2/utils/visualizer.py:1114
↓ 2 callersMethoddraw_soft_mask
Args: soft_mask (ndarray): float array of shape (H, W), each value in [0, 1]. color: color of the mask. Refer to `mat
data_generation/grit/third_party/CenterNet2/detectron2/utils/visualizer.py:1086
↓ 2 callersMethodevaluate
(self, answer, gt_answers)
project/mini_monkey/eval/tiny_lvlm/tools.py:186
↓ 2 callersMethodevaluate
Args: img_ids: a list of image IDs to evaluate on. Default to None for the whole dataset
data_generation/grit/third_party/CenterNet2/detectron2/evaluation/coco_evaluation.py:165
↓ 2 callersMethodevaluate
(self, quesIds=None)
eval/vqa_eval.py:194
↓ 2 callersFunctionevaluate_relaxed_accuracy
(entries)
eval/evaluate_vqa.py:202
↓ 2 callersFunctionevaluate_relaxed_accuracy
(entries)
eval/evaluate_vqa_doc.py:173
↓ 2 callersMethodexport_caffe2
Export the model to Caffe2's protobuf format. The returned object can be saved with its :meth:`.save_protobuf()` method. The
data_generation/grit/third_party/CenterNet2/detectron2/export/api.py:70
↓ 2 callersMethodexport_torchscript
Export the model to a ``torch.jit.TracedModule`` by tracing. The returned object can be saved to a file by ``.save()``. Retu
data_generation/grit/third_party/CenterNet2/detectron2/export/api.py:101
↓ 2 callersMethodextract_feature
(self, pixel_values)
project/mini_monkey/internvl/model/internvl_chat/modeling_minimonkey_chat.py:234
↓ 2 callersMethodextract_feature
(self, pixel_values)
project/mini_monkey/internvl/model/internvl_chat/modeling_internvl_chat.py:234
↓ 2 callersMethodf
(batched_inputs, c2_inputs, c2_results)
data_generation/grit/third_party/CenterNet2/detectron2/export/caffe2_modeling.py:384
↓ 2 callersFunctionfast_rcnn_inference_single_image
Single-image inference. Return bounding-box detection results by thresholding on scores and applying non-maximum suppression (NMS). Args
data_generation/grit/third_party/CenterNet2/detectron2/modeling/roi_heads/fast_rcnn.py:117
↓ 2 callersFunctionfile2id
(folder_path, file_path)
data_generation/grit/third_party/CenterNet2/detectron2/data/datasets/coco.py:258
↓ 2 callersFunctionfind_closest_aspect_ratio
(aspect_ratio, target_ratios, width, height, image_size)
project/mini_monkey/demo.py:22
↓ 2 callersFunctionfind_closest_aspect_ratio
(aspect_ratio, target_ratios, width, height, image_size)
project/mini_monkey/internvl/train/dataset.py:673
↓ 2 callersFunctionfind_closest_aspect_ratio
(aspect_ratio, target_ratios, width, height, image_size)
project/mini_monkey/eval/internvl_chat.py:32
↓ 2 callersFunctionflatten
(x)
data_generation/grit/third_party/CenterNet2/tests/modeling/test_model_e2e.py:25
↓ 2 callersFunctionflatten_results_dict
Expand a hierarchical dict of scalars into a flat dict of scalars. If results[k1][k2][k3] = v, the returned dict will have the entry {"k1
data_generation/grit/third_party/CenterNet2/detectron2/evaluation/testing.py:68
↓ 2 callersMethodforward
(self, hidden_states: torch.FloatTensor)
project/mini_monkey/internvl/model/phi3/modeling_phi3.py:265
↓ 2 callersMethodforward
Args: input: NCHW images rois: Bx6 boxes. First column is the index into N. The other 5 columns are (
data_generation/grit/third_party/CenterNet2/detectron2/layers/roi_align_rotated.py:69
↓ 2 callersMethodfrom_config
(cls, cfg)
data_generation/grit/third_party/CenterNet2/detectron2/modeling/roi_heads/roi_heads.py:167
↓ 2 callersMethodfrom_dict
Constructs a `Config` from a Python dictionary of parameters.
data_generation/grit/grit/modeling/text/modeling_bert.py:405
↓ 2 callersFunctiongen_args
(arg)
data_generation/grit/third_party/CenterNet2/tests/layers/test_roi_align.py:192
↓ 2 callersMethodgenerate
( self, pixel_values: Optional[torch.FloatTensor] = None, input_ids: Optio
project/mini_monkey/internvl/model/internvl_chat/modeling_minimonkey_chat.py:363
↓ 2 callersMethodgenerate
( self, inputs: Optional[torch.Tensor] = None, generation_config: Optional[GenerationC
monkey_model/modeling_qwen_nvdia3090.py:1148
↓ 2 callersMethodget
Returns the field called `name`.
data_generation/grit/third_party/CenterNet2/detectron2/structures/instances.py:94
↓ 2 callersMethodgetQuesIds
Get question ids that satisfy given filter conditions. default skips that filter. :param imgIds (int array) : get question ids
eval/vqa.py:81
↓ 2 callersFunctionget_1d_sincos_pos_embed_from_grid
embed_dim: output dimension for each position pos: a list of positions to be encoded: size (M,) out: (M, D)
monkey_model/visual.py:90
↓ 2 callersFunctionget_1d_sincos_pos_embed_from_grid
embed_dim: output dimension for each position pos: a list of positions to be encoded: size (M,) out: (M, D)
monkey_model/text_monkey/visual_text.py:97
↓ 2 callersFunctionget_1d_sincos_pos_embed_from_grid
embed_dim: output dimension for each position pos: a list of positions to be encoded: size (M,) out: (M, D)
monkey_model/text_monkey/window.py:152
↓ 2 callersFunctionget_abs_pos
(abs_pos, tgt_size)
monkey_model/visual.py:42
↓ 2 callersMethodget_best_param_group_id
(optimizer)
data_generation/grit/third_party/CenterNet2/detectron2/engine/hooks.py:337
↓ 2 callersMethodget_centers
Returns: The box centers in a Nx2 array of (x, y).
data_generation/grit/third_party/CenterNet2/detectron2/structures/boxes.py:262
← previousnext →401–500 of 3,034, ranked by callers