MCPcopy Create free account

hub / github.com/Yuliang-Liu/Monkey / types & classes

Types & classes589 in github.com/Yuliang-Liu/Monkey

↓ 75 callersClassBoxes
This structure stores a list of boxes as a Nx4 torch.Tensor. It supports some common methods about boxes (`area`, `clip`, `nonempty`, etc
data_generation/grit/third_party/CenterNet2/detectron2/structures/boxes.py:130
↓ 65 callersClassInstances
This class represents a list of instances in an image. It stores the attributes of instances (e.g., boxes, masks, labels, scores) as "fields"
data_generation/grit/third_party/CenterNet2/detectron2/structures/instances.py:7
↓ 54 callersClassConv2d
A wrapper around :class:`torch.nn.Conv2d` to support empty inputs and more features.
data_generation/grit/third_party/CenterNet2/detectron2/layers/wrappers.py:70
↓ 45 callersClassShapeSpec
A simple structure that contains basic shape specification about a tensor. It is often used as the auxiliary inputs/outputs of models, to
data_generation/grit/third_party/CenterNet2/detectron2/layers/shape_spec.py:6
↓ 40 callersClassRotatedBoxes
This structure stores a list of rotated boxes as a Nx5 torch.Tensor. It supports some common methods about boxes (`area`, `clip`, `nonemp
data_generation/grit/third_party/CenterNet2/detectron2/structures/rotated_boxes.py:11
↓ 37 callersClassVisualizer
Visualizer that draws data about detection/segmentation on images. It contains methods like `draw_{text,box,circle,line,binary_mask,polygon}
data_generation/grit/third_party/CenterNet2/detectron2/utils/visualizer.py:331
↓ 20 callersClassDetectionCheckpointer
Same as :class:`Checkpointer`, but is able to: 1. handle models in detectron & detectron2 model zoo, and apply conversions for legacy models.
data_generation/grit/third_party/CenterNet2/detectron2/checkpoint/detection_checkpoint.py:15
↓ 16 callersClassEventStorage
The user-facing class that provides metric storage functionalities. In the future we may add support for storing / logging other types of da
data_generation/grit/third_party/CenterNet2/detectron2/utils/events.py:274
↓ 15 callersClassBitMasks
This class stores the segmentation masks for all objects in one image, in the form of bitmaps. Attributes: tensor: bool Tensor o
data_generation/grit/third_party/CenterNet2/detectron2/structures/masks.py:88
↓ 15 callersClassDatasetFromList
Wrap a list to a torch Dataset. It produces elements of the list as data.
data_generation/grit/third_party/CenterNet2/detectron2/data/common.py:109
↓ 15 callersClassf
data_generation/grit/third_party/CenterNet2/tests/structures/test_instances.py:30
↓ 13 callersClassBox2BoxTransform
The box-to-box transform defined in R-CNN. The transformation is parameterized by 4 deltas: (dx, dy, dw, dh). The transformation scales the b
data_generation/grit/third_party/CenterNet2/detectron2/modeling/box_regression.py:21
↓ 13 callersClassImageList
Structure that holds a list of images (of possibly varying sizes) as a single tensor. This works by padding the images to the same size.
data_generation/grit/third_party/CenterNet2/detectron2/structures/image_list.py:11
↓ 12 callersClassROIPooler
Region of interest feature map pooler that supports pooling from one or more feature maps.
data_generation/grit/third_party/CenterNet2/detectron2/modeling/poolers.py:93
↓ 12 callersClassRotationTransform
This method returns a copy of this image, rotated the given number of degrees counter clockwise around its center.
data_generation/grit/third_party/CenterNet2/detectron2/data/transforms/transform.py:162
↓ 11 callersClassMapDataset
Map a function over the elements in a dataset.
data_generation/grit/third_party/CenterNet2/detectron2/data/common.py:49
↓ 11 callersClassObjDescription
data_generation/grit/grit/data/custom_dataset_mapper.py:129
↓ 10 callersClassTrainingSampler
In training, we only care about the "infinite stream" of training data. So this sampler produces an infinite stream of indices and all wo
data_generation/grit/third_party/CenterNet2/detectron2/data/samplers/distributed_sampler.py:15
↓ 8 callersClassDeformConv
data_generation/grit/third_party/CenterNet2/detectron2/layers/deform_conv.py:315
↓ 8 callersClassFPN
This module implements :paper:`FPN`. It creates pyramid features built on top of some input feature maps.
data_generation/grit/third_party/CenterNet2/detectron2/modeling/backbone/fpn.py:17
↓ 7 callersClassFastRCNNOutputLayers
Two linear layers for predicting Fast R-CNN outputs: 1. proposal-to-detection box regression deltas 2. classification scores
data_generation/grit/third_party/CenterNet2/detectron2/modeling/roi_heads/fast_rcnn.py:173
↓ 7 callersClassPolygonMasks
This class stores the segmentation masks for all objects in one image, in the form of polygons. Attributes: polygons: list[list[ndar
data_generation/grit/third_party/CenterNet2/detectron2/structures/masks.py:259
↓ 7 callersClassROIAlign
data_generation/grit/third_party/CenterNet2/detectron2/layers/roi_align.py:7
↓ 7 callersClass_TestClassD
data_generation/grit/third_party/CenterNet2/tests/config/test_yacs_config.py:136
↓ 6 callersClassCommonMetricPrinter
Print **common** metrics to the terminal, including iteration time, ETA, memory, all losses, and the learning rate. It also applies smoot
data_generation/grit/third_party/CenterNet2/detectron2/utils/events.py:181
↓ 6 callersClassDatasetMapper
A callable which takes a dataset dict in Detectron2 Dataset format, and map it into a format used by the model. This is the default call
data_generation/grit/third_party/CenterNet2/detectron2/data/dataset_mapper.py:20
↓ 6 callersClassKeypoints
Stores keypoint **annotation** data. GT Instances have a `gt_keypoints` property containing the x,y location and visibility flag of each keyp
data_generation/grit/third_party/CenterNet2/detectron2/structures/keypoints.py:8
↓ 6 callersClassMatcher
This class assigns to each predicted "element" (e.g., a box) a ground-truth element. Each predicted element will have exactly zero or one mat
data_generation/grit/third_party/CenterNet2/detectron2/modeling/matcher.py:9
↓ 6 callersClassModulatedDeformConv
data_generation/grit/third_party/CenterNet2/detectron2/layers/deform_conv.py:412
↓ 6 callersClassSimpleTrainer
A simple trainer for the most common type of task: single-cost single-optimizer single-data-source iterative optimization, optionally usi
data_generation/grit/third_party/CenterNet2/detectron2/engine/train_loop.py:216
↓ 6 callersClassTracingAdapter
A model may take rich input/output format (e.g. dict or custom classes), but `torch.jit.trace` requires tuple of tensors as input/output.
data_generation/grit/third_party/CenterNet2/detectron2/export/flatten.py:186
↓ 6 callersClassTrainer
We use the "DefaultTrainer" which contains pre-defined default logic for standard training workflow. They may not work for you, especially if
data_generation/grit/third_party/CenterNet2/tools/train_net.py:89
↓ 6 callersClassTree
data_generation/grit/third_party/CenterNet2/projects/CenterNet2/centernet/modeling/backbone/dlafpn.py:129
↓ 6 callersClassTree
data_generation/grit/third_party/CenterNet2/projects/CenterNet2/centernet/modeling/backbone/dla.py:132
↓ 6 callersClass_SimpleModel
data_generation/grit/third_party/CenterNet2/tests/test_engine.py:22
↓ 6 callersClass_TestClassA
data_generation/grit/third_party/CenterNet2/tests/config/test_yacs_config.py:66
↓ 6 callersClass_TestClassB
data_generation/grit/third_party/CenterNet2/tests/config/test_yacs_config.py:83
↓ 6 callersClass_TestClassC
data_generation/grit/third_party/CenterNet2/tests/config/test_yacs_config.py:127
↓ 5 callersClassCOCOEvaluator
Evaluate AR for object proposals, AP for instance detection/segmentation, AP for keypoint detection outputs using COCO's metrics. See htt
data_generation/grit/third_party/CenterNet2/detectron2/evaluation/coco_evaluation.py:30
↓ 5 callersClassConversation
A class that manages prompt templates and keeps all conversation history.
project/mini_monkey/internvl/conversation.py:37
↓ 5 callersClassDefaultPredictor
Create a simple end-to-end predictor with the given config that runs on single device for a single input image. Compared to using the mo
data_generation/grit/third_party/CenterNet2/detectron2/engine/defaults.py:252
↓ 5 callersClassDropPath
Drop paths (Stochastic Depth) per sample (when applied in main path of residual blocks).
monkey_model/text_monkey/window.py:65
↓ 5 callersClassInferenceSampler
Produce indices for inference across all workers. Inference needs to run on the __exact__ set of samples, therefore when the total number
data_generation/grit/third_party/CenterNet2/detectron2/data/samplers/distributed_sampler.py:245
↓ 5 callersClassJSONWriter
Write scalars to a json file. It saves scalars as one json per line (instead of a big json) for easy parsing. Examples parsing such a j
data_generation/grit/third_party/CenterNet2/detectron2/utils/events.py:50
↓ 5 callersClassLastLevelP6P7_P5
This module is used in RetinaNet to generate extra layers, P6 and P7 from C5 feature.
data_generation/grit/third_party/CenterNet2/projects/CenterNet2/centernet/modeling/backbone/fpn_p5.py:15
↓ 5 callersClassResizeTransform
Resize the image to a target size.
data_generation/grit/third_party/CenterNet2/detectron2/data/transforms/transform.py:94
↓ 4 callersClassBiFPN
This module implements Feature Pyramid Network. It creates pyramid features built on top of some input feature maps.
data_generation/grit/third_party/CenterNet2/projects/CenterNet2/centernet/modeling/backbone/bifpn_fcos.py:268
↓ 4 callersClassBox2BoxTransformRotated
The box-to-box transform defined in Rotated R-CNN. The transformation is parameterized by 5 deltas: (dx, dy, dw, dh, da). The transformation
data_generation/grit/third_party/CenterNet2/detectron2/modeling/box_regression.py:120
↓ 4 callersClassDatasetEvaluators
Wrapper class to combine multiple :class:`DatasetEvaluator` instances. This class dispatches every evaluation call to all of its :class:
data_generation/grit/third_party/CenterNet2/detectron2/evaluation/evaluator.py:66
↓ 4 callersClassLRMultiplier
A LRScheduler which uses fvcore :class:`ParamScheduler` to multiply the learning rate of each param in the optimizer. Every step, the lea
data_generation/grit/third_party/CenterNet2/detectron2/solver/lr_scheduler.py:52
↓ 4 callersClassLora_Adapter
monkey_model/modeling_qwen_nvdia3090.py:352
↓ 4 callersClassROIAlignRotated
data_generation/grit/third_party/CenterNet2/detectron2/layers/roi_align_rotated.py:48
↓ 4 callersClassROIMasks
Represent masks by N smaller masks defined in some ROIs. Once ROI boxes are given, full-image bitmask can be obtained by "pasting" the mask o
data_generation/grit/third_party/CenterNet2/detectron2/structures/masks.py:464
↓ 4 callersClassScopedWS
data_generation/grit/third_party/CenterNet2/detectron2/export/shared.py:129
↓ 4 callersClassStopWordsLogitsProcessor
:class:`transformers.LogitsProcessor` that enforces that when specified sequences appear, stop geration. Args: stop_words_ids (:obj:
monkey_model/qwen_generation_utils.py:305
↓ 4 callersClassToIterableDataset
Convert an old indices-based (also called map-style) dataset to an iterable-style dataset.
data_generation/grit/third_party/CenterNet2/detectron2/data/common.py:164
↓ 3 callersClassBasicStem
The standard ResNet stem (layers before the first residual block), with a conv, relu and max_pool.
data_generation/grit/third_party/CenterNet2/detectron2/modeling/backbone/resnet.py:330
↓ 3 callersClassBiFPN
data_generation/grit/third_party/CenterNet2/projects/CenterNet2/centernet/modeling/backbone/bifpn.py:279
↓ 3 callersClassDefaultAnchorGenerator
Compute anchors in the standard ways described in "Faster R-CNN: Towards Real-Time Object Detection with Region Proposal Networks".
data_generation/grit/third_party/CenterNet2/detectron2/modeling/anchor_generator.py:82
↓ 3 callersClassGenericMask
Attribute: polygons (list[ndarray]): list[ndarray]: polygons for this mask. Each ndarray has format [x, y, x, y, ...]
data_generation/grit/third_party/CenterNet2/detectron2/utils/visualizer.py:59
↓ 3 callersClassInternLM2RMSNorm
project/mini_monkey/internvl/model/internlm2/modeling_internlm2.py:129
↓ 3 callersClassInternVLChatConfig
project/mini_monkey/internvl/model/internvl_chat/configuration_internvl_chat.py:20
↓ 3 callersClassLVISEvaluator
Evaluate object proposal and instance detection/segmentation outputs using LVIS's metrics and evaluation API.
data_generation/grit/third_party/CenterNet2/detectron2/evaluation/lvis_evaluation.py:22
↓ 3 callersClassLora_Adapter
monkey_model/visual.py:179
↓ 3 callersClassLora_Adapter
monkey_model/text_monkey/visual_text.py:186
↓ 3 callersClassMetadata
A class that supports simple attribute setter/getter. It is intended for storing metadata of a dataset and make it accessible globally.
data_generation/grit/third_party/CenterNet2/detectron2/data/catalog.py:91
↓ 3 callersClassPhi3Model
Transformer decoder consisting of *config.num_hidden_layers* layers. Each layer is a [`Phi3DecoderLayer`] Args: config: Phi3Config
project/mini_monkey/internvl/model/phi3/modeling_phi3.py:1026
↓ 3 callersClassPhi3RMSNorm
project/mini_monkey/internvl/model/phi3/modeling_phi3.py:76
↓ 3 callersClassRMSNorm
monkey_model/modeling_qwen.py:1355
↓ 3 callersClassRMSNorm
monkey_model/modeling_qwen_nvdia3090.py:1263
↓ 3 callersClassRPN
Region Proposal Network, introduced by :paper:`Faster R-CNN`.
data_generation/grit/third_party/CenterNet2/detectron2/modeling/proposal_generator/rpn.py:181
↓ 3 callersClassResNet
Implement :paper:`ResNet`.
data_generation/grit/third_party/CenterNet2/detectron2/modeling/backbone/resnet.py:362
↓ 3 callersClassTCSLoader
project/mini_monkey/internvl/train/dataset.py:181
↓ 3 callersClassVQA
eval/vqa.py:31
↓ 3 callersClassViT
This module implements Vision Transformer (ViT) backbone in :paper:`vitdet`. "Exploring Plain Vision Transformer Backbones for Object Detecti
data_generation/grit/grit/modeling/backbone/vit.py:239
↓ 3 callersClassViT_FPN
data_generation/grit/grit/modeling/backbone/vit.py:368
↓ 3 callersClassVideoVisualizer
data_generation/grit/third_party/CenterNet2/detectron2/utils/video_visualizer.py:39
↓ 3 callersClassVisionTransformer
monkey_model/visual.py:423
↓ 3 callersClassWarmupParamScheduler
Add an initial warmup stage to another scheduler.
data_generation/grit/third_party/CenterNet2/detectron2/solver/lr_scheduler.py:17
↓ 3 callersClassWeightedConcatDataset
project/mini_monkey/internvl/train/dataset.py:161
↓ 3 callersClassg
data_generation/grit/third_party/CenterNet2/tests/structures/test_instances.py:36
↓ 3 callersClassg2
data_generation/grit/third_party/CenterNet2/tests/structures/test_instances.py:40
↓ 2 callersClassBertIntermediate
data_generation/grit/grit/modeling/text/modeling_bert.py:159
↓ 2 callersClassBertOutput
data_generation/grit/grit/modeling/text/modeling_bert.py:172
↓ 2 callersClassBox2BoxTransformLinear
The linear box-to-box transform defined in FCOS. The transformation is parameterized by the distance from the center of (square) src box to 4
data_generation/grit/third_party/CenterNet2/detectron2/modeling/box_regression.py:230
↓ 2 callersClassBoxMode
Enum of different ways to represent a box.
data_generation/grit/third_party/CenterNet2/detectron2/structures/boxes.py:13
↓ 2 callersClassBufferList
Similar to nn.ParameterList, but for buffers
data_generation/grit/third_party/CenterNet2/detectron2/modeling/anchor_generator.py:21
↓ 2 callersClassCOCOPanopticEvaluator
Evaluate Panoptic Quality metrics on COCO using PanopticAPI. It saves panoptic segmentation prediction in `output_dir` It contains a syn
data_generation/grit/third_party/CenterNet2/detectron2/evaluation/panoptic_evaluation.py:24
↓ 2 callersClassCaffe2Boxes
Representing a list of detectron2.structures.Boxes from minibatch, each box is represented by a 5d vector (batch index + 4 coordinates), or a
data_generation/grit/third_party/CenterNet2/detectron2/export/c10.py:22
↓ 2 callersClassCaffe2Model
A wrapper around the traced model in Caffe2's protobuf format. The exported graph has different inputs/outputs from the original Pytorch
data_generation/grit/third_party/CenterNet2/detectron2/export/api.py:115
↓ 2 callersClassCaffe2Tracer
Make a detectron2 model traceable with Caffe2 operators. This class creates a traceable version of a detectron2 model which: 1. Rewrite
data_generation/grit/third_party/CenterNet2/detectron2/export/api.py:27
↓ 2 callersClassCenterNetHead
data_generation/grit/third_party/CenterNet2/projects/CenterNet2/centernet/modeling/dense_heads/centernet_head.py:21
↓ 2 callersClassCityscapesInstanceEvaluator
Evaluate instance segmentation results on cityscapes dataset using cityscapes API. Note: * It does not work in multi-machine distrib
data_generation/grit/third_party/CenterNet2/detectron2/evaluation/cityscapes_evaluation.py:47
↓ 2 callersClassCityscapesSemSegEvaluator
Evaluate semantic segmentation results on cityscapes dataset using cityscapes API. Note: * It does not work in multi-machine distrib
data_generation/grit/third_party/CenterNet2/detectron2/evaluation/cityscapes_evaluation.py:129
↓ 2 callersClassConvBnAct2d
data_generation/grit/third_party/CenterNet2/projects/CenterNet2/centernet/modeling/backbone/bifpn.py:76
↓ 2 callersClassCustomFastRCNNOutputLayers
data_generation/grit/third_party/CenterNet2/projects/CenterNet2/centernet/modeling/roi_heads/custom_fast_rcnn.py:25
↓ 2 callersClassDepthwiseSeparableConv2d
A kxk depthwise convolution + a 1x1 convolution. In :paper:`xception`, norm & activation are applied on the second conv. :paper:`mobilen
data_generation/grit/third_party/CenterNet2/detectron2/layers/blocks.py:58
↓ 2 callersClassEvalAIAnswerProcessor
Processes an answer similar to Eval AI copied from https://github.com/facebookresearch/mmf/blob/c46b3b3391275b4181567db80943473a8
project/mini_monkey/eval/vqa/textvqa_eval.py:8
↓ 2 callersClassFlopCountAnalysis
Same as :class:`fvcore.nn.FlopCountAnalysis`, but supports detectron2 models.
data_generation/grit/third_party/CenterNet2/detectron2/utils/analysis.py:55
↓ 2 callersClassGeneralizedRCNNWithTTA
A GeneralizedRCNN with test-time augmentation enabled. Its :meth:`__call__` method has the same interface as :meth:`GeneralizedRCNN.forward`.
data_generation/grit/third_party/CenterNet2/detectron2/modeling/test_time_augmentation.py:101
next →1–100 of 589, ranked by callers