MCPcopy Create free account

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

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

↓ 3 callersFunctiondo_test
(cfg, model)
data_generation/grit/third_party/CenterNet2/tools/plain_train_net.py:102
↓ 3 callersFunctiondo_test
(cfg, model)
data_generation/grit/third_party/CenterNet2/projects/CenterNet2/train_net.py:43
↓ 3 callersMethoddraw_text
Args: text (str): class label position (tuple): a tuple of the x and y coordinates to place text on image.
data_generation/grit/third_party/CenterNet2/detectron2/utils/visualizer.py:850
↓ 3 callersFunctiondynamic_preprocess2
(image, min_num=1, max_num=6, image_size=448, use_thumbnail=False, prior_aspect_ratio=None)
project/mini_monkey/internvl/train/dataset.py:729
↓ 3 callersFunctionfilter_images_with_only_crowd_annotations
Filter out images with none annotations or only crowd annotations (i.e., images without non-crowd annotations). A common training-time pr
data_generation/grit/third_party/CenterNet2/detectron2/data/build.py:45
↓ 3 callersFunctionfind_top_rpn_proposals
For each feature map, select the `pre_nms_topk` highest scoring proposals, apply NMS, clip proposals, and remove small boxes. Return the `pos
data_generation/grit/third_party/CenterNet2/detectron2/modeling/proposal_generator/proposal_utils.py:22
↓ 3 callersFunctionforward
( self, hidden_states: torch.Tensor, attention_mask: Optional[torch.Tensor] = None, position_i
project/mini_monkey/internvl/patch/llama2_flash_attn_monkey_patch.py:30
↓ 3 callersMethodforward_inference
( self, images: ImageList, features: List[Tensor], predictions: List[List[Tensor]] )
data_generation/grit/third_party/CenterNet2/detectron2/modeling/meta_arch/fcos.py:231
↓ 3 callersMethodfreeze
Freeze the first several stages of the ResNet. Commonly used in fine-tuning. Args: freeze_at (int): number of ste
data_generation/grit/third_party/CenterNet2/projects/CenterNet2/centernet/modeling/backbone/res2net.py:649
↓ 3 callersFunctionfunc
(dev, n=1)
data_generation/grit/third_party/CenterNet2/tests/structures/test_rotated_boxes.py:415
↓ 3 callersMethodgenerate
( self, pixel_values: Optional[torch.FloatTensor] = None, input_ids: Optio
project/mini_monkey/internvl/model/internvl_chat/modeling_internvl_chat.py:359
↓ 3 callersFunctionget_abs_pos
(abs_pos, tgt_size)
monkey_model/text_monkey/visual_text.py:49
↓ 3 callersFunctionget_consumer_map
Return dict from versioned blob to list of (i, j), where i is index of consumer op, j is the index of input of that op.
data_generation/grit/third_party/CenterNet2/detectron2/export/shared.py:327
↓ 3 callersFunctionget_empty_instance
(h, w)
data_generation/grit/third_party/CenterNet2/tests/modeling/test_model_e2e.py:58
↓ 3 callersMethodget_fields
Returns: dict: a dict which maps names (str) to data of the fields Modifying the returned dict will modify this instance
data_generation/grit/third_party/CenterNet2/detectron2/structures/instances.py:100
↓ 3 callersFunctionget_frame_indices
(num_frames, vlen, sample='rand', fix_start=None, input_fps=1, max_num_frames=-1)
project/mini_monkey/internvl/train/dataset.py:34
↓ 3 callersFunctionget_index
(num_frames, num_segments)
project/mini_monkey/tools/extract_video_frames.py:38
↓ 3 callersMethodget_output_embeddings
(self)
project/mini_monkey/internvl/model/phi3/modeling_phi3.py:1217
↓ 3 callersFunctionget_producer_map
Return dict from versioned blob to (i, j), where i is index of producer op, j is the index of output of that op.
data_generation/grit/third_party/CenterNet2/detectron2/export/shared.py:314
↓ 3 callersMethodget_transform
(self, *args)
data_generation/grit/third_party/CenterNet2/detectron2/data/transforms/augmentation_impl.py:62
↓ 3 callersMethodget_transform
(self, image)
data_generation/grit/third_party/CenterNet2/detectron2/data/transforms/augmentation_impl.py:123
↓ 3 callersFunctionget_version
(module, digit=2)
data_generation/grit/third_party/CenterNet2/detectron2/utils/env.py:82
↓ 3 callersFunctionhas_word
(sentence, word)
project/mini_monkey/eval/tiny_lvlm/tools.py:11
↓ 3 callersFunctioninfer_device_type
Return the device type ("cpu" or "gpu"/"cuda") of each (versioned) blob
data_generation/grit/third_party/CenterNet2/detectron2/export/shared.py:448
↓ 3 callersFunctioninit_dist
(launcher, backend='nccl', **kwargs)
project/mini_monkey/internvl/dist_utils.py:32
↓ 3 callersMethodlist
List all registered datasets. Returns: list[str]
data_generation/grit/third_party/CenterNet2/detectron2/data/catalog.py:60
↓ 3 callersMethodload_from_df
(self, idx, key)
project/mini_monkey/eval/mmbench/evaluate_mmbench.py:134
↓ 3 callersFunctionload_sem_seg
Load semantic segmentation datasets. All files under "gt_root" with "gt_ext" extension are treated as ground truth annotations and all files
data_generation/grit/third_party/CenterNet2/detectron2/data/datasets/coco.py:230
↓ 3 callersMethodload_state_dict
(self, state_dict)
data_generation/grit/third_party/CenterNet2/detectron2/engine/train_loop.py:415
↓ 3 callersMethodlosses
This method is almost identical to :meth:`RetinaNet.losses`, with an extra "loss_centerness" in the returned dict.
data_generation/grit/third_party/CenterNet2/detectron2/modeling/meta_arch/fcos.py:171
↓ 3 callersMethodname_scope
Yields: A context within which all the events added to this storage will be prefixed by the name scope.
data_generation/grit/third_party/CenterNet2/detectron2/utils/events.py:463
↓ 3 callersFunctionnormalize_str
Normalize the str to lower case and make them float numbers if possible.
project/mini_monkey/eval/mmmu/eval_utils.py:79
↓ 3 callersFunctionprint_instances_class_histogram
Args: dataset_dicts (list[dict]): list of dataset dicts. class_names (list[str]): list of class names (zero-indexed).
data_generation/grit/third_party/CenterNet2/detectron2/data/build.py:164
↓ 3 callersMethodput_image
Add an `img_tensor` associated with `img_name`, to be shown on tensorboard. Args: img_name (str): The name of th
data_generation/grit/third_party/CenterNet2/detectron2/utils/events.py:294
↓ 3 callersMethodquery
Args: config_path: relative config filename
data_generation/grit/third_party/CenterNet2/detectron2/model_zoo/model_zoo.py:99
↓ 3 callersFunctionread_json
(path)
project/mini_monkey/eval/mathvista/utilities.py:32
↓ 3 callersMethodreference_horizontal_nms
Args: box_scores (N, 5): boxes in corner-form and probabilities. (Note here 5 == 4 + 1, i.e., 4-dim horizontal bo
data_generation/grit/third_party/CenterNet2/tests/layers/test_nms_rotated.py:44
↓ 3 callersFunctionrename_op_output
Rename the op_id-th operator in predict_net, change it's output_id-th input's name to the new_name. It also does automatic re-route and c
data_generation/grit/third_party/CenterNet2/detectron2/export/shared.py:729
↓ 3 callersMethodrepeat_factors_from_category_frequency
Compute (fractional) per-image repeat factors based on category frequency. The repeat factor for an image is a function of the freque
data_generation/grit/third_party/CenterNet2/detectron2/data/samplers/distributed_sampler.py:158
↓ 3 callersFunctionreplace_create_optimizer
()
project/mini_monkey/internvl/train/trainer_monkey_patch.py:157
↓ 3 callersFunctionreplace_llama_rmsnorm_with_fused_rmsnorm
()
project/mini_monkey/internvl/patch/llama_rmsnorm_monkey_patch.py:4
↓ 3 callersFunctionreplace_train_sampler
()
project/mini_monkey/internvl/patch/train_sampler_patch.py:117
↓ 3 callersFunctionrotate_half
Rotates half the hidden dims of the input.
project/mini_monkey/internvl/model/phi3/modeling_phi3.py:220
↓ 3 callersFunctionsave_graph
(net, file_name, graph_name="net", op_only=True, blob_sizes=None, blob_ranges=None)
data_generation/grit/third_party/CenterNet2/detectron2/export/shared.py:523
↓ 3 callersMethodscale
Scale the box with horizontal and vertical scaling factors
data_generation/grit/third_party/CenterNet2/detectron2/structures/boxes.py:269
↓ 3 callersFunctionselect_foreground_proposals
Given a list of N Instances (for N images), each containing a `gt_classes` field, return a list of Instances that contain only instances with
data_generation/grit/third_party/CenterNet2/detectron2/modeling/roi_heads/roi_heads.py:46
↓ 3 callersMethodto_bitmasks
Args: see documentation of :func:`paste_masks_in_image`.
data_generation/grit/third_party/CenterNet2/detectron2/structures/masks.py:518
↓ 3 callersMethodto_dict
Serializes this instance to a Python dictionary.
data_generation/grit/grit/modeling/text/modeling_bert.py:425
↓ 3 callersMethodtranspose_for_scores
(self, x)
data_generation/grit/grit/modeling/text/modeling_bert.py:73
↓ 3 callersMethodupdate_post_processor
Updates the underlying post processor with the current `bos_token` and `eos_token`.
project/mini_monkey/internvl/model/internlm2/tokenization_internlm2_fast.py:150
↓ 3 callersMethodwrap_backbone_lora
(self, r=128, lora_alpha=256, lora_dropout=0.05)
project/mini_monkey/internvl/model/internvl_chat/modeling_internvl_chat.py:103
↓ 3 callersMethodwrap_llm_lora
(self, r=128, lora_alpha=256, lora_dropout=0.05)
project/mini_monkey/internvl/model/internvl_chat/modeling_internvl_chat.py:113
↓ 2 callersMethod__exit__
(self, *args)
data_generation/grit/third_party/CenterNet2/detectron2/export/shared.py:145
↓ 2 callersMethod__init__
(self, buffers)
data_generation/grit/third_party/CenterNet2/detectron2/modeling/anchor_generator.py:26
↓ 2 callersMethod__init__
Args: bottom_up (Backbone): module representing the bottom up subnetwork. Must be a subclass of :class:`Backbone`
data_generation/grit/third_party/CenterNet2/detectron2/modeling/backbone/fpn.py:25
↓ 2 callersMethod__init__
NOTE: this interface is experimental. Args: num_classes (int): number of foreground classes (i.e. background is not incl
data_generation/grit/third_party/CenterNet2/detectron2/modeling/roi_heads/roi_heads.py:139
↓ 2 callersMethod__init__
(self, num_features, eps=1e-5)
data_generation/grit/third_party/CenterNet2/detectron2/layers/batch_norm.py:35
↓ 2 callersMethod__init__
Args: cfg (CfgNode): torch_model (nn.Module): the detectron2 model (meta_arch) to be converted.
data_generation/grit/third_party/CenterNet2/detectron2/export/caffe2_modeling.py:142
↓ 2 callersMethod_assign_colors
Naive tracking heuristics to assign same color to the same instance, will update the internal state of tracked instances. Re
data_generation/grit/third_party/CenterNet2/detectron2/utils/video_visualizer.py:197
↓ 2 callersFunction_assign_op_device_option
(net_proto, net_ssa, blob_device_types)
data_generation/grit/third_party/CenterNet2/detectron2/export/caffe2_export.py:96
↓ 2 callersMethod_batch_inference
Execute inference on a list of inputs, using batch size = self.batch_size, instead of the length of the list. Inputs & outpu
data_generation/grit/third_party/CenterNet2/detectron2/modeling/test_time_augmentation.py:162
↓ 2 callersMethod_best_checking
(self)
data_generation/grit/third_party/CenterNet2/detectron2/engine/hooks.py:257
↓ 2 callersFunction_blend_image_heatmaps
(image, color_maps, a=0.7)
data_generation/grit/third_party/CenterNet2/projects/CenterNet2/centernet/modeling/debug.py:25
↓ 2 callersMethod_caffe2_preprocess_image
Caffe2 implementation of preprocess_image, which is called inside each MetaArch's forward. It normalizes the input images, and the fi
data_generation/grit/third_party/CenterNet2/detectron2/export/caffe2_modeling.py:199
↓ 2 callersMethod_cal_im2col_step
Calculate proper im2col step size, which should be divisible by input_size and not larger than prefer_size. Meanwhile the step size s
data_generation/grit/third_party/CenterNet2/detectron2/layers/deform_conv.py:164
↓ 2 callersFunction_called_with_cfg
Returns: bool: whether the arguments contain CfgNode and should be considered forwarded to from_config.
data_generation/grit/third_party/CenterNet2/detectron2/config/config.py:251
↓ 2 callersMethod_check_schema
(self, schema)
data_generation/grit/third_party/CenterNet2/tests/test_export_torchscript.py:256
↓ 2 callersFunction_create_grid_offsets
(size: List[int], stride: int, offset: float, device: torch.device)
data_generation/grit/third_party/CenterNet2/detectron2/modeling/anchor_generator.py:39
↓ 2 callersMethod_create_proposals_from_boxes
Args: boxes (list[Tensor]): per-image predicted boxes, each of shape Ri x 4 image_sizes (list[tuple]): list of image
data_generation/grit/third_party/CenterNet2/detectron2/modeling/roi_heads/cascade_rcnn.py:278
↓ 2 callersMethod_decode_multi_level_predictions
Run `_decode_per_level_predictions` for all feature levels and concat the results.
data_generation/grit/third_party/CenterNet2/detectron2/modeling/meta_arch/dense_detector.py:223
↓ 2 callersMethod_decode_proposals
Transform anchors into proposals by applying the predicted anchor deltas. Returns: proposals (list[Tensor]): A list of L
data_generation/grit/third_party/CenterNet2/detectron2/modeling/proposal_generator/rpn.py:514
↓ 2 callersFunction_decompose_level
x: LNHiWi x C
data_generation/grit/third_party/CenterNet2/projects/CenterNet2/centernet/modeling/debug.py:33
↓ 2 callersMethod_do_eval
(self)
data_generation/grit/third_party/CenterNet2/detectron2/engine/hooks.py:524
↓ 2 callersMethod_draw_text_in_mask
Find proper places to draw text given a binary mask.
data_generation/grit/third_party/CenterNet2/detectron2/utils/visualizer.py:1237
↓ 2 callersMethod_ema_update
Apply EMA update to `self.name` using `value`. This is mainly used for loss normalizer. In Detectron1, loss is normalized by number
data_generation/grit/third_party/CenterNet2/detectron2/modeling/meta_arch/dense_detector.py:153
↓ 2 callersFunction_evaluate_predictions_on_coco
Evaluate the coco results using COCOEval API.
data_generation/grit/third_party/CenterNet2/detectron2/evaluation/coco_evaluation.py:555
↓ 2 callersFunction_expand_param_groups
(params: List[Dict[str, Any]])
data_generation/grit/third_party/CenterNet2/detectron2/solver/build.py:221
↓ 2 callersMethod_forward_box
(self, features, proposals, targets=None, task="ObjectDet")
data_generation/grit/grit/modeling/roi_heads/grit_roi_heads.py:151
↓ 2 callersMethod_forward_box
Forward logic of the box prediction branch. If `self.train_on_pred_boxes is True`, the function puts predicted boxes in the `prop
data_generation/grit/third_party/CenterNet2/detectron2/modeling/roi_heads/roi_heads.py:780
↓ 2 callersMethod_forward_box
Args: features, targets: the same as in Same as in :meth:`ROIHeads.forward`. proposals (list[Instance
data_generation/grit/third_party/CenterNet2/detectron2/modeling/roi_heads/cascade_rcnn.py:153
↓ 2 callersFunction_get_args_from_config
Use `from_config` to obtain explicit arguments. Returns: dict: arguments to be used for cls.__init__
data_generation/grit/third_party/CenterNet2/detectron2/config/config.py:218
↓ 2 callersFunction_get_cityscapes_files
(image_dir, gt_dir)
data_generation/grit/third_party/CenterNet2/detectron2/data/datasets/cityscapes.py:27
↓ 2 callersFunction_get_color_image
(heatmap)
data_generation/grit/third_party/CenterNet2/projects/CenterNet2/centernet/modeling/debug.py:9
↓ 2 callersFunction_get_device_type
(torch_tensor)
data_generation/grit/third_party/CenterNet2/detectron2/export/caffe2_export.py:91
↓ 2 callersFunction_get_global_gloo_group
Return a process group based on gloo backend, containing all the ranks The result is cached.
data_generation/grit/third_party/CenterNet2/detectron2/utils/comm.py:88
↓ 2 callersMethod_get_kwargs
(self)
data_generation/grit/third_party/CenterNet2/tests/data/test_dataset.py:77
↓ 2 callersMethod_get_local_indices
(total_size, world_size, rank)
data_generation/grit/third_party/CenterNet2/detectron2/data/samplers/distributed_sampler.py:265
↓ 2 callersMethod_get_rpn_conv
(self, in_channels, out_channels)
data_generation/grit/third_party/CenterNet2/detectron2/modeling/proposal_generator/rpn.py:126
↓ 2 callersFunction_get_script_mod
(mod)
data_generation/grit/third_party/CenterNet2/detectron2/export/torchscript.py:75
↓ 2 callersFunction_get_warmup_factor_at_iter
Return the learning rate warmup factor at a specific iteration. See :paper:`ImageNet in 1h` for more details. Args: method (str)
data_generation/grit/third_party/CenterNet2/detectron2/solver/lr_scheduler.py:212
↓ 2 callersFunction_has
(name: str)
data_generation/grit/third_party/CenterNet2/detectron2/config/compat.py:91
↓ 2 callersFunction_highlight
(code, filename)
data_generation/grit/third_party/CenterNet2/detectron2/engine/defaults.py:160
↓ 2 callersFunction_ignore_torch_cuda_oom
A context which ignores CUDA OOM exception from pytorch.
data_generation/grit/third_party/CenterNet2/detectron2/utils/memory.py:12
↓ 2 callersFunction_imagelist_to_tensor
(images)
data_generation/grit/third_party/CenterNet2/projects/CenterNet2/centernet/modeling/debug.py:50
↓ 2 callersFunction_import_file
(module_name, file_path, make_importable=False)
data_generation/grit/third_party/CenterNet2/detectron2/utils/env.py:49
↓ 2 callersFunction_ind2il
(ind, shapes_per_level, N)
data_generation/grit/third_party/CenterNet2/projects/CenterNet2/centernet/modeling/debug.py:63
↓ 2 callersFunction_is_tracing
()
data_generation/grit/third_party/CenterNet2/detectron2/modeling/proposal_generator/proposal_utils.py:13
↓ 2 callersFunction_list_find
( input_list: List[Any], candidates: Tuple[Any], start: int = 0, )
monkey_model/tokenization_qwen.py:55
↓ 2 callersFunction_list_to_str
(bsize)
data_generation/grit/third_party/CenterNet2/detectron2/export/shared.py:508
↓ 2 callersMethod_log_time
(self, msg, avg, all_times, distributed=False)
data_generation/grit/third_party/CenterNet2/detectron2/data/benchmark.py:106
← previousnext →301–400 of 3,034, ranked by callers