MCPcopy Create free account

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

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

↓ 1 callersMethod__init__
NOTE: this interface is experimental. Args: backbone: a backbone module, must follow detectron2's backbone interface
data_generation/grit/third_party/CenterNet2/detectron2/modeling/meta_arch/retinanet.py:35
↓ 1 callersMethod__init__
NOTE: this interface is experimental. Args: in_features (list[str]): list of names of input features to use
data_generation/grit/third_party/CenterNet2/detectron2/modeling/proposal_generator/rpn.py:187
↓ 1 callersMethod__init__
Args: size (int): the total number of data of the underlying dataset to sample from shuffle (bool): whether to shuffl
data_generation/grit/third_party/CenterNet2/detectron2/data/samplers/distributed_sampler.py:36
↓ 1 callersMethod__init__
Args: image (ndarray): (H,W) or (H,W,C) ndarray of type uint8 in range [0, 255], or floating point in range [0, 1
data_generation/grit/third_party/CenterNet2/detectron2/data/transforms/augmentation.py:307
↓ 1 callersMethod__init__
Args: model, data_loader, optimizer: same as in :class:`SimpleTrainer`. grad_scaler: torch GradScaler to automaticall
data_generation/grit/third_party/CenterNet2/detectron2/engine/train_loop.py:363
↓ 1 callersMethod__init__
The `__init__` method of any subclass should also contain these arguments. Args: in_channels (int): out_chan
data_generation/grit/third_party/CenterNet2/detectron2/layers/blocks.py:29
↓ 1 callersMethod__init__
Deformable convolution from :paper:`deformconv`. Arguments are similar to :class:`Conv2D`. Extra arguments: Args:
data_generation/grit/third_party/CenterNet2/detectron2/layers/deform_conv.py:316
↓ 1 callersMethod__init__
(self, predict_net, init_net)
data_generation/grit/third_party/CenterNet2/detectron2/export/caffe2_inference.py:26
↓ 1 callersMethod__init__
Args: cfg (CfgNode): num_gpus (int): if 0, will run on CPU
data_generation/grit/third_party/CenterNet2/projects/CenterNet2/predictor.py:183
↓ 1 callersMethod__init__
(self, init_value=1.0)
data_generation/grit/third_party/CenterNet2/projects/CenterNet2/centernet/modeling/dense_heads/centernet_head.py:14
↓ 1 callersMethod__init__
Args: cfg (CfgNode): num_gpus (int): if 0, will run on CPU
data_generation/grit/third_party/CenterNet2/demo/predictor.py:160
↓ 1 callersMethod__init__
(self, img, scale=1.0)
monkey_model/tokenization_qwen.py:475
↓ 1 callersMethod__init__
(self, config)
monkey_model/modeling_monkey.py:35
↓ 1 callersMethod__init__
(self, config)
monkey_model/modeling_textmonkey.py:36
↓ 1 callersMethod__len__
(self)
data_generation/grit/third_party/CenterNet2/detectron2/modeling/anchor_generator.py:32
↓ 1 callersMethod__len__
(self)
data_generation/grit/third_party/CenterNet2/detectron2/structures/instances.py:142
↓ 1 callersMethod__len__
(self)
data_generation/grit/third_party/CenterNet2/detectron2/export/c10.py:94
↓ 1 callersMethod__setattr__
(self, key, val)
data_generation/grit/third_party/CenterNet2/detectron2/data/catalog.py:136
↓ 1 callersFunction_a_slow_func
(x)
data_generation/grit/third_party/CenterNet2/tests/data/test_dataset.py:24
↓ 1 callersFunction_add_instances_conversion_methods
Add from_instances methods to the scripted Instances class.
data_generation/grit/third_party/CenterNet2/detectron2/export/torchscript_patch.py:28
↓ 1 callersMethod_add_more_pos
(self, reg_pred, gt_instances, shapes_per_level)
data_generation/grit/third_party/CenterNet2/projects/CenterNet2/centernet/modeling/dense_heads/centernet.py:736
↓ 1 callersFunction_apply_exif_orientation
Applies the exif orientation correctly. This code exists per the bug: https://github.com/python-pillow/Pillow/issues/3973 with the
data_generation/grit/third_party/CenterNet2/detectron2/data/detection_utils.py:119
↓ 1 callersFunction_assert_strides_are_log2_contiguous
Assert that each stride is 2x times its preceding stride, i.e. "contiguous in log2".
data_generation/grit/third_party/CenterNet2/detectron2/modeling/backbone/fpn.py:165
↓ 1 callersFunction_assign_device_option
ONNX exported network doesn't have concept of device, assign necessary device option for each op in order to make it runable on GPU runtime.
data_generation/grit/third_party/CenterNet2/detectron2/export/caffe2_export.py:83
↓ 1 callersMethod_attn
(self, query, key, value, registered_causal_mask, attention_mask=None, head_mask=None)
monkey_model/modeling_qwen.py:287
↓ 1 callersMethod_attn
(self, query, key, value, registered_causal_mask, attention_mask=None, head_mask=None)
monkey_model/modeling_qwen_nvdia3090.py:152
↓ 1 callersMethod_attn
(self, x)
monkey_model/text_monkey/window.py:475
↓ 1 callersMethod_build_res5_block
(cls, cfg)
data_generation/grit/third_party/CenterNet2/detectron2/modeling/roi_heads/roi_heads.py:429
↓ 1 callersFunction_cached_log_stream
(filename)
data_generation/grit/third_party/CenterNet2/detectron2/utils/logger.py:105
↓ 1 callersMethod_calc_stopped_samples
(self, prev_input_ids: Iterable[int])
monkey_model/qwen_generation_utils.py:374
↓ 1 callersMethod_calc_window_shift
(self, target_window_size, target_shift_size)
monkey_model/text_monkey/window.py:468
↓ 1 callersMethod_calculate_anchors
(self, sizes, aspect_ratios)
data_generation/grit/third_party/CenterNet2/detectron2/modeling/anchor_generator.py:132
↓ 1 callersMethod_calculate_anchors
(self, sizes, aspect_ratios, angles)
data_generation/grit/third_party/CenterNet2/detectron2/modeling/anchor_generator.py:285
↓ 1 callersFunction_check_and_update
(key, value)
data_generation/grit/third_party/CenterNet2/detectron2/export/shared.py:404
↓ 1 callersFunction_check_img_dtype
(img)
data_generation/grit/third_party/CenterNet2/detectron2/data/transforms/augmentation.py:27
↓ 1 callersFunction_clear_jit_cache
()
data_generation/grit/third_party/CenterNet2/detectron2/export/torchscript_patch.py:20
↓ 1 callersMethod_compute_answer_scores
compute the accuracy (soft score) of human answers
project/mini_monkey/eval/vqa/textvqa_eval.py:226
↓ 1 callersMethod_concat
(values)
data_generation/grit/third_party/CenterNet2/detectron2/export/flatten.py:44
↓ 1 callersFunction_configure_libraries
Configurations for some libraries.
data_generation/grit/third_party/CenterNet2/detectron2/utils/env.py:58
↓ 1 callersMethod_convert_boxes
Convert different format of boxes to an NxB array, where B = 4 or 5 is the box dimension.
data_generation/grit/third_party/CenterNet2/detectron2/utils/visualizer.py:1205
↓ 1 callersFunction_convert_category_id
(segment_info, meta)
data_generation/grit/third_party/CenterNet2/detectron2/data/datasets/coco_panoptic.py:26
↓ 1 callersFunction_convert_category_id
(segment_info, meta)
data_generation/grit/third_party/CenterNet2/detectron2/data/datasets/cityscapes_panoptic.py:68
↓ 1 callersMethod_convert_category_id
(self, segment_info)
data_generation/grit/third_party/CenterNet2/detectron2/evaluation/panoptic_evaluation.py:53
↓ 1 callersMethod_convert_inputs
(self, batched_inputs)
data_generation/grit/third_party/CenterNet2/detectron2/export/caffe2_inference.py:151
↓ 1 callersMethod_convert_keypoints
(self, keypoints)
data_generation/grit/third_party/CenterNet2/detectron2/utils/visualizer.py:1255
↓ 1 callersMethod_convert_masks
Convert different format of masks or polygons to a tuple of masks and polygons. Returns: list[GenericMask]:
data_generation/grit/third_party/CenterNet2/detectron2/utils/visualizer.py:1214
↓ 1 callersFunction_convert_mmdet_result
(result, shape: Tuple[int, int])
data_generation/grit/third_party/CenterNet2/detectron2/modeling/mmdet_wrapper.py:231
↓ 1 callersMethod_create_agn_heatmaps_from_dist
TODO (Xingyi): merge it with _create_heatmaps_from_dist dist: M x N return: heatmaps: M x 1
data_generation/grit/third_party/CenterNet2/projects/CenterNet2/centernet/modeling/dense_heads/centernet.py:551
↓ 1 callersFunction_create_const_fill_op_from_c2_int8_tensor
(name, int8_tensor)
data_generation/grit/third_party/CenterNet2/detectron2/export/shared.py:243
↓ 1 callersFunction_create_const_fill_op_from_numpy
(name, tensor, device_option=None)
data_generation/grit/third_party/CenterNet2/detectron2/export/shared.py:222
↓ 1 callersFunction_create_gradient_clipper
Creates gradient clipping closure to clip by value or by norm, according to the provided config.
data_generation/grit/third_party/CenterNet2/detectron2/solver/build.py:24
↓ 1 callersMethod_create_heatmaps_from_dist
dist: M x N labels: N return: heatmaps: M x C
data_generation/grit/third_party/CenterNet2/projects/CenterNet2/centernet/modeling/dense_heads/centernet.py:533
↓ 1 callersMethod_create_position_indices
(self, tokens: torch.Tensor)
data_generation/grit/grit/modeling/text/text_decoder.py:59
↓ 1 callersMethod_create_proposals_from_boxes
(self, boxes, image_sizes, logits)
data_generation/grit/grit/modeling/roi_heads/grit_roi_heads.py:456
↓ 1 callersMethod_create_tensors
(self, N)
data_generation/grit/third_party/CenterNet2/tests/layers/test_nms.py:11
↓ 1 callersFunction_decode_chatml
( tokens: List[int], *, stop_words: List[str], eod_token_ids: List[int], tokenizer: PreTra
monkey_model/qwen_generation_utils.py:229
↓ 1 callersFunction_decode_default
( tokens: List[int], *, stop_words: List[str], eod_words: List[str], tokenizer: PreTrained
monkey_model/qwen_generation_utils.py:196
↓ 1 callersMethod_decode_per_level_predictions
Decode boxes and classification predictions of one featuer level, by the following steps: 1. filter the predictions based on
data_generation/grit/third_party/CenterNet2/detectron2/modeling/meta_arch/dense_detector.py:179
↓ 1 callersFunction_del
(key_seq: List[str])
data_generation/grit/third_party/CenterNet2/detectron2/config/compat.py:134
↓ 1 callersFunction_do_paste_mask
Args: masks: N, 1, H, W boxes: N, 4 img_h, img_w (int): skip_empty (bool): only paste masks within the region tha
data_generation/grit/third_party/CenterNet2/detectron2/layers/mask_ops.py:17
↓ 1 callersMethod_encode_anchor_generator_cfg
(self, predict_net)
data_generation/grit/third_party/CenterNet2/detectron2/export/caffe2_modeling.py:349
↓ 1 callersMethod_eval_box_proposals
Evaluate the box proposals in predictions. Fill self._results with the metrics for "box_proposals" task.
data_generation/grit/third_party/CenterNet2/detectron2/evaluation/coco_evaluation.py:272
↓ 1 callersMethod_eval_box_proposals
Evaluate the box proposals in predictions. Fill self._results with the metrics for "box_proposals" task.
data_generation/grit/third_party/CenterNet2/detectron2/evaluation/lvis_evaluation.py:180
↓ 1 callersMethod_eval_predictions
Evaluate predictions. Fill self._results with the metrics of the tasks.
data_generation/grit/third_party/CenterNet2/detectron2/evaluation/coco_evaluation.py:210
↓ 1 callersMethod_eval_predictions
Evaluate predictions. Fill self._results with the metrics of the tasks. Args: predictions (list[dict]): list of outputs
data_generation/grit/third_party/CenterNet2/detectron2/evaluation/lvis_evaluation.py:134
↓ 1 callersFunction_evaluate_box_proposals
Evaluate detection proposal recall metrics. This function is a much faster alternative to the official COCO API recall evaluation code. Howev
data_generation/grit/third_party/CenterNet2/detectron2/evaluation/coco_evaluation.py:444
↓ 1 callersFunction_evaluate_box_proposals
Evaluate detection proposal recall metrics. This function is a much faster alternative to the official LVIS API recall evaluation code. Howev
data_generation/grit/third_party/CenterNet2/detectron2/evaluation/lvis_evaluation.py:222
↓ 1 callersMethod_evaluate_predictions_on_coco
Evaluate the coco results using COCOEval API.
data_generation/grit/third_party/CenterNet2/detectron2/evaluation/rotated_coco_evaluation.py:192
↓ 1 callersFunction_evaluate_predictions_on_lvis
Args: iou_type (str): max_dets_per_image (None or int): limit on maximum detections per image in evaluating AP This l
data_generation/grit/third_party/CenterNet2/detectron2/evaluation/lvis_evaluation.py:331
↓ 1 callersFunction_expand_mask
Expands attention_mask from `[bsz, seq_len]` to `[bsz, 1, tgt_seq_len, src_seq_len]`.
project/mini_monkey/internvl/model/internlm2/modeling_internlm2.py:114
↓ 1 callersFunction_expand_mask
Expands attention_mask from `[bsz, seq_len]` to `[bsz, 1, tgt_seq_len, src_seq_len]`.
monkey_model/modeling_qwen.py:229
↓ 1 callersFunction_expand_mask
Expands attention_mask from `[bsz, seq_len]` to `[bsz, 1, tgt_seq_len, src_seq_len]`.
monkey_model/modeling_qwen_nvdia3090.py:93
↓ 1 callersMethod_fetch_all_box_with_ref
(self, text)
monkey_model/tokenization_qwen.py:416
↓ 1 callersMethod_fetch_latest_picture
(self, response, history)
monkey_model/tokenization_qwen.py:406
↓ 1 callersFunction_find_free_port
()
project/mini_monkey/internvl/dist_utils.py:14
↓ 1 callersFunction_find_free_port
()
data_generation/grit/third_party/CenterNet2/detectron2/engine/launch.py:15
↓ 1 callersMethod_flash_attention_forward
Calls the forward method of Flash Attention - if the input hidden states contain at least one padding token first unpad the input, th
project/mini_monkey/internvl/model/phi3/modeling_phi3.py:587
↓ 1 callersMethod_flash_attention_forward
Calls the forward method of Flash Attention - if the input hidden states contain at least one padding token first unpad the input, th
project/mini_monkey/internvl/model/internlm2/modeling_internlm2.py:523
↓ 1 callersMethod_flash_attn
(self, x, key_padding_mask=None, need_weights=False)
project/mini_monkey/internvl/model/internvl_chat/modeling_intern_vit.py:162
↓ 1 callersMethod_flatten_outputs
(self, clss, reg_pred, agn_hm_pred)
data_generation/grit/third_party/CenterNet2/projects/CenterNet2/centernet/modeling/dense_heads/centernet.py:565
↓ 1 callersMethod_frame_from_video
(self, video)
data_generation/grit/third_party/CenterNet2/projects/CenterNet2/predictor.py:85
↓ 1 callersMethod_frame_from_video
(self, video)
data_generation/grit/third_party/CenterNet2/demo/predictor.py:68
↓ 1 callersFunction_fuse_once
(predict_net)
data_generation/grit/third_party/CenterNet2/detectron2/export/shared.py:964
↓ 1 callersFunction_gen_instance_class
Args: fields (dict[name: type])
data_generation/grit/third_party/CenterNet2/detectron2/export/torchscript_patch.py:90
↓ 1 callersFunction_gen_instance_module
(fields)
data_generation/grit/third_party/CenterNet2/detectron2/export/torchscript_patch.py:290
↓ 1 callersMethod_generate_future_mask
( self, size: int, dtype: torch.dtype, device: torch.device )
data_generation/grit/grit/modeling/text/text_decoder.py:342
↓ 1 callersFunction_generate_optimizer_class_with_gradient_clipping
Dynamically creates a new type that inherits the type of a given instance and overrides the `step` method to add gradient clipping
data_generation/grit/third_party/CenterNet2/detectron2/solver/build.py:44
↓ 1 callersMethod_generate_proposals
( self, images, objectness_logits_pred, anchor_deltas_pred, gt_instances=None )
data_generation/grit/third_party/CenterNet2/detectron2/export/c10.py:165
↓ 1 callersFunction_generic_status_identifier
Statically infer the status of each blob, the status can be such as device type (CPU/GPU), layout (NCHW/NHWC), data type (float32/int8),
data_generation/grit/third_party/CenterNet2/detectron2/export/shared.py:376
↓ 1 callersFunction_get
(key_seq: List[str])
data_generation/grit/third_party/CenterNet2/detectron2/config/compat.py:128
↓ 1 callersFunction_get_args
()
demo_textmonkey.py:9
↓ 1 callersFunction_get_args
()
demo.py:47
↓ 1 callersFunction_get_args
()
data_generation/chatgpt.py:10
↓ 1 callersFunction_get_args
()
data_generation/image_text_matching.py:34
↓ 1 callersFunction_get_args
()
data_generation/grit_generate.py:71
↓ 1 callersFunction_get_args
()
data_generation/ocr_ppocr.py:17
↓ 1 callersFunction_get_args
()
data_generation/add_all_json.py:31
↓ 1 callersFunction_get_args
()
data_generation/sam_blip.py:56
↓ 1 callersFunction_get_args
()
data_generation/blip2.py:20
↓ 1 callersFunction_get_aug_input_args
Get the arguments to be passed to ``aug.get_transform`` from the input ``aug_input``.
data_generation/grit/third_party/CenterNet2/detectron2/data/transforms/augmentation.py:39
← previousnext →601–700 of 3,034, ranked by callers