MCPcopy Create free account

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

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

↓ 4 callersMethod_jitter
Randomly modifies given color to produce a slightly different color than the color given. Args: color (tuple[double]): a
data_generation/grit/third_party/CenterNet2/detectron2/utils/visualizer.py:1150
↓ 4 callersMethod_simple_roi_align_rotated
RoiAlignRotated with scale 1.0 and 0 sample ratio.
data_generation/grit/third_party/CenterNet2/tests/layers/test_roi_align_rotated.py:87
↓ 4 callersFunction_tokenize_str
(role, content)
monkey_model/qwen_generation_utils.py:136
↓ 4 callersMethod_transpose_dense_predictions
Transpose the dense per-level predictions. Args: predictions: a list of outputs, each is a list of per-level
data_generation/grit/third_party/CenterNet2/detectron2/modeling/meta_arch/dense_detector.py:129
↓ 4 callersMethodaccumulate
Accumulate per image evaluation results and store the result in self.eval. Does not support changing parameter settings from those u
data_generation/grit/third_party/CenterNet2/detectron2/evaluation/fast_eval_api.py:98
↓ 4 callersMethodapply_coords
(self, coords)
data_generation/grit/third_party/CenterNet2/detectron2/data/transforms/transform.py:272
↓ 4 callersMethodbenchmark_distributed
Benchmark the dataloader in each distributed worker, and log results of all workers. This helps understand the final performance as w
data_generation/grit/third_party/CenterNet2/detectron2/data/benchmark.py:195
↓ 4 callersFunctionbuild_anchor_generator
Built an anchor generator from `cfg.MODEL.ANCHOR_GENERATOR.NAME`.
data_generation/grit/third_party/CenterNet2/detectron2/modeling/anchor_generator.py:377
↓ 4 callersFunctionbuild_lr_scheduler
Build a LR scheduler from config.
data_generation/grit/third_party/CenterNet2/detectron2/solver/build.py:253
↓ 4 callersMethodclip
Clip (in place) the boxes by limiting x coordinates to the range [0, width] and y coordinates to the range [0, height]. For
data_generation/grit/third_party/CenterNet2/detectron2/structures/rotated_boxes.py:253
↓ 4 callersFunctioncollect_env_info
()
data_generation/grit/third_party/CenterNet2/detectron2/utils/collect_env.py:55
↓ 4 callersFunctionconvert_scripted_instances
Convert a scripted Instances object to a regular :class:`Instances` object
data_generation/grit/third_party/CenterNet2/detectron2/utils/testing.py:67
↓ 4 callersFunctioncreate_model_input
(img, inst=None)
data_generation/grit/third_party/CenterNet2/tests/modeling/test_model_e2e.py:51
↓ 4 callersFunctioncreate_small_table
Create a small table using the keys of small_dict as headers. This is only suitable for small dictionaries. Args: small_dict (di
data_generation/grit/third_party/CenterNet2/detectron2/utils/logger.py:209
↓ 4 callersFunctiondecode_tokens
( tokens: Union[torch.LongTensor, TokensType], tokenizer: PreTrainedTokenizer, raw_text_len: int,
monkey_model/qwen_generation_utils.py:265
↓ 4 callersFunctiondefault_writers
Build a list of :class:`EventWriter` to be used. It now consists of a :class:`CommonMetricPrinter`, :class:`TensorboardXWriter` and :clas
data_generation/grit/third_party/CenterNet2/detectron2/engine/defaults.py:230
↓ 4 callersMethoddraw_line
Args: x_data (list[int]): a list containing x values of all the points being drawn. Length of list should match t
data_generation/grit/third_party/CenterNet2/detectron2/utils/visualizer.py:1004
↓ 4 callersMethoddraw_panoptic_seg_predictions
( self, frame, panoptic_seg, segments_info, area_threshold=None, alpha=0.5 )
data_generation/grit/third_party/CenterNet2/detectron2/utils/video_visualizer.py:141
↓ 4 callersMethodevaluate
Evaluate/summarize the performance, after processing all input/output pairs. Returns: dict: A new evalua
data_generation/grit/third_party/CenterNet2/detectron2/evaluation/evaluator.py:50
↓ 4 callersFunctionf
()
data_generation/grit/third_party/CenterNet2/tools/benchmark.py:114
↓ 4 callersFunctionfast_rcnn_inference
Call `fast_rcnn_inference_single_image` for all images. Args: boxes (list[Tensor]): A list of Tensors of predicted class-specific or
data_generation/grit/third_party/CenterNet2/detectron2/modeling/roi_heads/fast_rcnn.py:45
↓ 4 callersFunctionfilter_images_with_few_keypoints
Filter out images with too few number of keypoints. Args: dataset_dicts (list[dict]): annotations in Detectron2 Dataset format.
data_generation/grit/third_party/CenterNet2/detectron2/data/build.py:76
↓ 4 callersMethodfind_spec
(self, name, path, target=None)
data_generation/grit/third_party/CenterNet2/detectron2/projects/__init__.py:17
↓ 4 callersFunctionflop_count_operators
Implement operator-level flops counting using jit. This is a wrapper of :func:`fvcore.nn.flop_count` and adds supports for standard detec
data_generation/grit/third_party/CenterNet2/detectron2/utils/analysis.py:71
↓ 4 callersMethodforward
Args: input: NCHW images rois: Bx5 boxes. First column is the index into N. The other 4 columns are xyxy.
data_generation/grit/third_party/CenterNet2/detectron2/layers/roi_align.py:49
↓ 4 callersFunctionfreeze_training_mode
A context manager that annotates the "training" attribute of every submodule to constant, so that the training codepath in these modules can
data_generation/grit/third_party/CenterNet2/detectron2/export/torchscript_patch.py:392
↓ 4 callersMethodget_deltas
Get box regression transformation deltas (dx, dy, dw, dh) that can be used to transform the `src_boxes` into the `target_boxes`. That
data_generation/grit/third_party/CenterNet2/detectron2/modeling/box_regression.py:43
↓ 4 callersFunctionget_detection_dataset_dicts
Load and prepare dataset dicts for instance detection/segmentation and semantic segmentation. Args: names (str or list[str]): a data
data_generation/grit/third_party/CenterNet2/detectron2/data/build.py:216
↓ 4 callersMethodget_preprocess_function
(self)
project/mini_monkey/internvl/train/minimonkey_chat_finetune.py:302
↓ 4 callersMethodget_preprocess_function
(self)
project/mini_monkey/internvl/train/internvl_chat_finetune.py:302
↓ 4 callersMethodget_preprocess_function
(self)
project/mini_monkey/internvl/train/internvl_chat_pretrain.py:340
↓ 4 callersFunctionget_sample_coco_image
Args: tensor (bool): if True, returns 3xHxW tensor. else, returns a HxWx3 numpy array. Returns: an image, in BGR
data_generation/grit/third_party/CenterNet2/detectron2/utils/testing.py:43
↓ 4 callersMethodget_transform
(self)
project/mini_monkey/internvl/train/minimonkey_chat_finetune.py:327
↓ 4 callersMethodget_transform
(self)
project/mini_monkey/internvl/train/internvl_chat_finetune.py:327
↓ 4 callersMethodget_transform
(self)
project/mini_monkey/internvl/train/internvl_chat_pretrain.py:365
↓ 4 callersMethodhistory
Returns: HistoryBuffer: the scalar history for name
data_generation/grit/third_party/CenterNet2/detectron2/utils/events.py:377
↓ 4 callersMethodload
(self, path, *args, **kwargs)
data_generation/grit/third_party/CenterNet2/detectron2/checkpoint/detection_checkpoint.py:32
↓ 4 callersFunctionlog_first_n
Log only for the first n times. Args: lvl (int): the logging level msg (str): n (int): name (str): name of t
data_generation/grit/third_party/CenterNet2/detectron2/utils/logger.py:140
↓ 4 callersMethodlosses
Args: predictions: return values of :meth:`forward()`. proposals (list[Instances]): proposals that match the features
data_generation/grit/third_party/CenterNet2/detectron2/modeling/roi_heads/fast_rcnn.py:278
↓ 4 callersMethodmake_stage
Create a list of blocks of the same type that forms one ResNet stage. Args: block_class (type): a subclass of CNNBlockBa
data_generation/grit/third_party/CenterNet2/detectron2/modeling/backbone/resnet.py:493
↓ 4 callersFunctionnms_edit_distance
Compare the "keep" result of two nms call. They are allowed to be different in terms of edit distance due to floating point precision iss
data_generation/grit/third_party/CenterNet2/tests/layers/test_nms_rotated.py:13
↓ 4 callersFunctionpaste_masks_in_image
Paste a set of masks that are of a fixed resolution (e.g., 28 x 28) into an image. The location, height, and width for pasting each mask is d
data_generation/grit/third_party/CenterNet2/detectron2/layers/mask_ops.py:74
↓ 4 callersMethodpredict_instances
( self, grids, logits_pred, reg_pred, image_sizes, agn_hm_pred, is_proposal=False)
data_generation/grit/third_party/CenterNet2/projects/CenterNet2/centernet/modeling/dense_heads/centernet.py:626
↓ 4 callersMethodpredict_probs
Args: predictions: return values of :meth:`forward()`. proposals (list[Instances]): proposals that match the features
data_generation/grit/third_party/CenterNet2/detectron2/modeling/roi_heads/fast_rcnn.py:445
↓ 4 callersMethodput
(self, image)
data_generation/grit/third_party/CenterNet2/projects/CenterNet2/predictor.py:210
↓ 4 callersMethodput
(self, image)
data_generation/grit/third_party/CenterNet2/demo/predictor.py:187
↓ 4 callersFunctionregister_coco_instances
Register a dataset in COCO's json annotation format for instance detection, instance segmentation and keypoint detection. (i.e., Type 1 a
data_generation/grit/third_party/CenterNet2/detectron2/data/datasets/coco.py:479
↓ 4 callersFunctionregister_conv_template
Register a new conversation template.
project/mini_monkey/internvl/conversation.py:318
↓ 4 callersMethodresize_pos_embeddings
(self, old_size, new_size, patch_size)
project/mini_monkey/internvl/model/internvl_chat/modeling_intern_vit.py:309
↓ 4 callersFunctionsave_json
(data, path)
project/mini_monkey/eval/mathvista/utilities.py:48
↓ 4 callersFunctionscripting_with_instances
Run :func:`torch.jit.script` on a model that uses the :class:`Instances` class. Since attributes of :class:`Instances` are "dynamically" adde
data_generation/grit/third_party/CenterNet2/detectron2/export/torchscript.py:13
↓ 4 callersFunctionsetup
(args)
data_generation/grit/third_party/CenterNet2/tools/benchmark.py:36
↓ 4 callersFunctiontypecheck_hook
Check that the model must be called with the given input/output dtype
data_generation/grit/third_party/CenterNet2/tests/modeling/test_model_e2e.py:16
↓ 3 callersFunctionRAM_msg
()
data_generation/grit/third_party/CenterNet2/tools/benchmark.py:62
↓ 3 callersMethod__call__
(self, values)
data_generation/grit/third_party/CenterNet2/detectron2/export/flatten.py:40
↓ 3 callersMethod__enter__
(self)
data_generation/grit/third_party/CenterNet2/detectron2/export/shared.py:136
↓ 3 callersMethod__init__
Args: optimizer, last_iter: See ``torch.optim.lr_scheduler._LRScheduler``. ``last_iter`` is the same as ``last_ep
data_generation/grit/third_party/CenterNet2/detectron2/solver/lr_scheduler.py:86
↓ 3 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/projects/CenterNet2/centernet/modeling/backbone/bifpn_fcos.py:274
↓ 3 callersMethod__init__
(self, input_size,output_size)
monkey_model/text_monkey/resampler.py:61
↓ 3 callersMethod_box_to_rotated_box
(self, box, angle)
data_generation/grit/third_party/CenterNet2/tests/layers/test_roi_align_rotated.py:15
↓ 3 callersMethod_build_lazy_model
(self, name)
data_generation/grit/third_party/CenterNet2/tests/test_model_zoo.py:30
↓ 3 callersFunction_cast_to_f32
(f64)
data_generation/grit/third_party/CenterNet2/detectron2/export/caffe2_modeling.py:95
↓ 3 callersMethod_derive_coco_results
Derive the desired score numbers from summarized COCOeval. Args: coco_eval (None or COCOEval): None represents no predic
data_generation/grit/third_party/CenterNet2/detectron2/evaluation/coco_evaluation.py:311
↓ 3 callersFunction_find_caller
Returns: str: module name of the caller tuple: a hashable key to be used to identify different callers
data_generation/grit/third_party/CenterNet2/detectron2/utils/logger.py:119
↓ 3 callersFunction_freeze_params
(module)
project/mini_monkey/internvl/train/minimonkey_chat_finetune.py:774
↓ 3 callersFunction_freeze_params
(module)
project/mini_monkey/internvl/train/internvl_chat_finetune.py:774
↓ 3 callersFunction_freeze_params
(module)
project/mini_monkey/internvl/train/internvl_chat_pretrain.py:809
↓ 3 callersFunction_get_coco_instances_meta
()
data_generation/grit/third_party/CenterNet2/detectron2/data/datasets/builtin_meta.py:235
↓ 3 callersFunction_log_api_usage
Internal function used to log the usage of different detectron2 components inside facebook's infra.
data_generation/grit/third_party/CenterNet2/detectron2/utils/logger.py:232
↓ 3 callersFunction_log_classification_stats
Log the classification metrics to EventStorage. Args: pred_logits: Rx(K+1) logits. The last column is for background class.
data_generation/grit/third_party/CenterNet2/detectron2/modeling/roi_heads/fast_rcnn.py:87
↓ 3 callersMethod_postprocess
Rescale the output instances to the target size.
data_generation/grit/third_party/CenterNet2/detectron2/modeling/meta_arch/rcnn.py:230
↓ 3 callersFunction_prepare_decoder_attention_mask
( self, attention_mask, input_shape, inputs_embeds, past_key_values_length )
project/mini_monkey/internvl/patch/llama2_flash_attn_monkey_patch.py:106
↓ 3 callersMethod_prepare_decoder_attention_mask
(self, attention_mask, input_shape, inputs_embeds, past_key_values_length)
project/mini_monkey/internvl/model/internlm2/modeling_internlm2.py:844
↓ 3 callersMethod_rand_range
Uniform float random number between low and high.
data_generation/grit/third_party/CenterNet2/detectron2/data/transforms/augmentation.py:173
↓ 3 callersFunction_rename_versioned_blob_in_proto
In given proto, rename all blobs with matched version
data_generation/grit/third_party/CenterNet2/detectron2/export/shared.py:631
↓ 3 callersFunction_replace_closed_tag
( input_tokens: List[Any], start_tags: Union[Any, Tuple[Any]], end_tags: Union[Any, Tuple[Any]],
monkey_model/tokenization_qwen.py:65
↓ 3 callersMethod_set_gradient_checkpointing
(self, module, value=False)
monkey_model/modeling_qwen.py:584
↓ 3 callersMethod_split_heads
(self, tensor, num_heads, attn_head_size)
monkey_model/modeling_qwen.py:380
↓ 3 callersMethod_split_heads
(self, tensor, num_heads, attn_head_size)
monkey_model/modeling_qwen_nvdia3090.py:245
↓ 3 callersMethod_test_model
(self, config_path, device="cpu")
data_generation/grit/third_party/CenterNet2/tests/test_export_caffe2.py:23
↓ 3 callersFunction_to_container
mmdet will assert the type of dict/list. So convert omegaconf objects to dict/list.
data_generation/grit/third_party/CenterNet2/detectron2/modeling/mmdet_wrapper.py:21
↓ 3 callersFunction_try_get_key
Try select keys from cfg until the first key that exists. Otherwise return default.
data_generation/grit/third_party/CenterNet2/detectron2/engine/defaults.py:146
↓ 3 callersFunction_updater_raise
(op, input_types, output_types)
data_generation/grit/third_party/CenterNet2/detectron2/export/shared.py:369
↓ 3 callersFunctionadd_centernet_config
(cfg)
data_generation/grit/third_party/CenterNet2/projects/CenterNet2/centernet/config.py:3
↓ 3 callersFunctionadd_ground_truth_to_proposals
Call `add_ground_truth_to_proposals_single_image` for all images. Args: gt(Union[List[Instances], List[Boxes]): list of N elements.
data_generation/grit/third_party/CenterNet2/detectron2/modeling/proposal_generator/proposal_utils.py:129
↓ 3 callersFunctionall_gather
Run all_gather on arbitrary picklable data (not necessarily tensors). Args: data: any picklable object group: a torch proces
data_generation/grit/third_party/CenterNet2/detectron2/utils/comm.py:99
↓ 3 callersFunctionapply_rotary_pos_emb
Applies Rotary Position Embedding to the query and key tensors. Args: q (`torch.Tensor`): The query tensor. k (`torch.Tensor`): T
project/mini_monkey/internvl/model/phi3/modeling_phi3.py:228
↓ 3 callersFunctionapply_rotary_pos_emb
(q, k, cos_sin, position_ids)
project/mini_monkey/internvl/patch/llama2_flash_attn_monkey_patch.py:16
↓ 3 callersMethodarea
Computes area of the mask. Only works with Polygons, using the shoelace formula: https://stackoverflow.com/questions/24467972
data_generation/grit/third_party/CenterNet2/detectron2/structures/masks.py:424
↓ 3 callersMethodattention
( self, q_x: torch.Tensor, k_x: Optional[torch.Tensor] = None,
monkey_model/visual.py:353
↓ 3 callersMethodauto_scale_workers
When the config is defined for certain number of workers (according to ``cfg.SOLVER.REFERENCE_WORLD_SIZE``) that's different from the
data_generation/grit/third_party/CenterNet2/detectron2/engine/defaults.py:633
↓ 3 callersFunctionbatched_nms_rotated
Performs non-maximum suppression in a batched fashion. Each index value correspond to a category, and NMS will not be applied between el
data_generation/grit/third_party/CenterNet2/detectron2/layers/nms.py:91
↓ 3 callersFunctionbuild_box_head
Build a box head defined by `cfg.MODEL.ROI_BOX_HEAD.NAME`.
data_generation/grit/third_party/CenterNet2/detectron2/modeling/roi_heads/box_head.py:113
↓ 3 callersFunctionconvert_batched_inputs_to_c2_format
See get_caffe2_inputs() below.
data_generation/grit/third_party/CenterNet2/detectron2/export/caffe2_modeling.py:107
↓ 3 callersFunctionconvert_to_coco_dict
Convert an instance detection/segmentation or keypoint detection dataset in detectron2's standard format into COCO json format. Generic
data_generation/grit/third_party/CenterNet2/detectron2/data/datasets/coco.py:306
↓ 3 callersFunctioncreate_ddp_model
Create a DistributedDataParallel model if there are >1 processes. Args: model: a torch.nn.Module fp16_compression: add fp16
data_generation/grit/third_party/CenterNet2/detectron2/engine/defaults.py:60
↓ 3 callersMethodcrop_and_resize
Crop each bitmask by the given box, and resize results to (mask_size, mask_size). This can be used to prepare training targets for Ma
data_generation/grit/third_party/CenterNet2/detectron2/structures/masks.py:189
↓ 3 callersFunctiondetect_compute_compatibility
(CUDA_HOME, so_file)
data_generation/grit/third_party/CenterNet2/detectron2/utils/collect_env.py:34
↓ 3 callersMethoddevice
(self)
data_generation/grit/third_party/CenterNet2/detectron2/structures/masks.py:113
↓ 3 callersFunctiondla34
(cfg, pretrained=None)
data_generation/grit/third_party/CenterNet2/projects/CenterNet2/centernet/modeling/backbone/dlafpn.py:394
← previousnext →201–300 of 3,034, ranked by callers