MCPcopy Create free account

hub / github.com/VDIGPKU/M2Det / functions

Functions216 in github.com/VDIGPKU/M2Det

↓ 22 callersFunctionprint_info
(info, _type=None)
utils/core.py:103
↓ 8 callersFunctionrleInit
utils/pycocotools/maskApi.c:14
↓ 6 callersFunctioninitialize_pretrained_model
(model, num_classes, settings)
layers/senet.py:359
↓ 5 callersMethodforward
(self,x)
m2det.py:101
↓ 5 callersMethodgetAnnIds
Get ann ids that satisfy given filter conditions. default skips that filter :param imgIds (int array) : get anns for given imgs
utils/pycocotools/coco.py:124
↓ 5 callersMethodloadAnns
Load anns with the specified ids. :param ids (int array) : integer ids specifying anns :return: anns (object array) : l
utils/pycocotools/coco.py:195
↓ 4 callersMethod__init__
Parameters ---------- block (nn.Module): Bottleneck class. - For SENet154: SEBottleneck - For SE-ResN
layers/senet.py:208
↓ 4 callersMethod__setattr__
(self, name, value)
configs/CC.py:150
↓ 4 callersMethod_make_layer
(self, block, planes, blocks, groups, reduction, stride=1, downsample_kernel_size=1, downs
layers/senet.py:326
↓ 4 callersMethod_make_layer
(self, block, planes, blocks, stride=1)
layers/resnet.py:120
↓ 4 callersFunctionumin
utils/pycocotools/maskApi.c:11
↓ 3 callersFunction_convert
(image, alpha=1, beta=0)
data/data_augment.py:80
↓ 3 callersFunctionanchors
(cfg)
utils/core.py:31
↓ 3 callersFunctionbuild_net
(phase='train', size=320, config = None)
m2det.py:187
↓ 3 callersMethodfromfile
(filename)
configs/CC.py:78
↓ 3 callersMethodgetCatIds
filtering parameters. default skips that filter. :param catNms (str array) : get cats for given cat names :param supNms (str
utils/pycocotools/coco.py:152
↓ 3 callersMethodgetImgIds
Get img ids that satisfy given filter conditions. :param imgIds (int array) : get imgs for given ids :param catIds (int array
utils/pycocotools/coco.py:174
↓ 3 callersFunctioninit_net
(net, cfg, resume_net)
utils/core.py:37
↓ 3 callersFunctionpreproc_for_test
(image, insize, mean)
data/data_augment.py:154
↓ 3 callersFunctionumax
utils/pycocotools/maskApi.c:12
↓ 2 callersMethod__init__
(self, first_level=True, input_planes=128, is_smooth=True, side_channel=512, scales=6)
layers/nn_utils.py:27
↓ 2 callersMethod__init__
(self, block, layers, num_classes=1000)
layers/resnet.py:98
↓ 2 callersMethod_get_voc_results_file_template
(self)
data/voc0712.py:255
↓ 2 callersMethodannToRLE
Convert annotation which can be polygons, uncompressed RLE to RLE. :return: binary mask (numpy 2D array)
utils/pycocotools/coco.py:400
↓ 2 callersFunctionbbIou
utils/pycocotools/maskApi.c:109
↓ 2 callersFunctionconv3x3
3x3 convolution with padding
layers/resnet.py:19
↓ 2 callersMethodcreateIndex
(self)
utils/pycocotools/coco.py:85
↓ 2 callersFunctionget_backbone
(backbone_name='vgg16')
layers/nn_utils.py:122
↓ 2 callersFunctionget_dataloader
(cfg, dataset, setname='train_sets')
utils/core.py:87
↓ 2 callersFunctionget_scales
(size, size_pattern)
data/anchors.py:22
↓ 2 callersMethodloadCats
Load cats with the specified ids. :param ids (int array) : integer ids specifying cats :return: cats (object array) : l
utils/pycocotools/coco.py:206
↓ 2 callersMethodloadImgs
Load anns with the specified ids. :param ids (int array) : integer ids specifying img :return: imgs (object array) : lo
utils/pycocotools/coco.py:217
↓ 2 callersFunctionnms
Dispatch to either CPU or GPU NMS implementations.
utils/nms_wrapper.py:23
↓ 2 callersMethodpull_image
Returns the original image object at index in PIL form Note: not using self.__getitem__(), as any transformations passed in could mes
data/coco.py:170
↓ 2 callersFunctionrleFree
utils/pycocotools/maskApi.c:19
↓ 2 callersFunctionrleToBbox
utils/pycocotools/maskApi.c:133
↓ 2 callersFunctionsave_checkpoint
(net, cfg, final=True, datasetname='COCO',epoch=10)
utils/core.py:114
↓ 2 callersMethodsummarize
Compute and display summary metrics for evaluation results. Note this functin can *only* be applied on the default parameter setting
utils/pycocotools/cocoeval.py:417
↓ 2 callersMethodtic
(self)
utils/timer.py:20
↓ 2 callersMethodtoc
(self, average=True)
utils/timer.py:25
↓ 1 callersMethod__getattr__
(self, name)
configs/CC.py:144
↓ 1 callersMethod_annotation_from_index
Loads COCO bounding-box instance annotations. Crowd instances are handled by marking their overlaps (with all categories) to -1. This
data/coco.py:107
↓ 1 callersMethod_coco_results_one_category
(self, boxes, cat_id)
data/coco.py:246
↓ 1 callersFunction_crop
(image, boxes, labels)
data/data_augment.py:17
↓ 1 callersFunction_distort
(image)
data/data_augment.py:79
↓ 1 callersMethod_do_detection_eval
(self, res_file, output_dir)
data/coco.py:233
↓ 1 callersMethod_do_python_eval
(self, output_dir='output')
data/voc0712.py:283
↓ 1 callersFunction_expand
(image, boxes,fill, p)
data/data_augment.py:109
↓ 1 callersMethod_get_ann_file
(self, name)
data/coco.py:84
↓ 1 callersMethod_load_coco_annotations
(self, coco_name, indexes, _COCO)
data/coco.py:91
↓ 1 callersFunction_mirror
(image, boxes)
data/data_augment.py:145
↓ 1 callersMethod_prepare
Prepare ._gts and ._dts for evaluation based on params :return: None
utils/pycocotools/cocoeval.py:85
↓ 1 callersMethod_print_detection_eval_metrics
(self, coco_eval)
data/coco.py:199
↓ 1 callersFunction_to_color
return (b, r, g) tuple
demo.py:51
↓ 1 callersMethod_upsample_add
(self, x, y, fuse_type='interp')
layers/nn_utils.py:68
↓ 1 callersMethod_write_coco_results_file
(self, all_boxes, res_file)
data/coco.py:264
↓ 1 callersMethod_write_voc_results_file
(self, all_boxes)
data/voc0712.py:264
↓ 1 callersMethodaccumulate
Accumulate per image evaluation results and store the result in self.eval :param p: input params for evaluation :return: None
utils/pycocotools/cocoeval.py:316
↓ 1 callersFunctionadd_args
(parser, cfg, prefix='')
configs/CC.py:30
↓ 1 callersFunctionadjust_learning_rate
(optimizer, gamma, epoch, step_index, iteration, epoch_size, cfg)
utils/core.py:71
↓ 1 callersFunctionaspect_ratio
(num)
data/anchors.py:28
↓ 1 callersFunctioncheck_argu
Check whether the arguments available for constructing m2det modules
layers/nn_utils.py:162
↓ 1 callersFunctioncheck_file_exist
(filename, msg_tmpl='file "{}" does not exist')
configs/CC.py:49
↓ 1 callersMethodconstruct_modules
(self,)
m2det.py:44
↓ 1 callersFunctioncustomize_compiler_for_nvcc
inject deep into distutils to customize how the dispatch to gcc/nvcc works. If you subclass UnixCCompiler, it's not trivial to get your subcl
utils/build.py:68
↓ 1 callersFunctiondecode
Decode locations from predictions using priors to undo the encoding we did for offset regression at train time. Args: loc (tensor): lo
utils/box_utils.py:180
↓ 1 callersFunctiondraw_detection
(im, bboxes, scores, cls_inds, fps, thr=0.2)
demo.py:63
↓ 1 callersFunctionencode
Encode the variances from the priorbox layers into the ground truth boxes we have matched (based on jaccard overlap) with the prior boxes. Arg
utils/box_utils.py:131
↓ 1 callersMethodevaluate
Run per image evaluation on given images and store results (a list of dict) in self.evalImgs :return: None
utils/pycocotools/cocoeval.py:122
↓ 1 callersMethodevaluate_detections
(self, all_boxes, output_dir)
data/coco.py:280
↓ 1 callersMethodfeatures
(self, x, out_inds)
layers/senet.py:346
↓ 1 callersFunctionfind_in_path
Find a file in a search path
utils/build.py:16
↓ 1 callersFunctionimage_forward
(img, net, cuda, priors, detector, transform)
utils/core.py:131
↓ 1 callersMethodimage_path_from_index
Construct an image path from the image's "index" identifier.
data/coco.py:69
↓ 1 callersMethodinit_model
(self, base_model_path)
m2det.py:150
↓ 1 callersMethodinit_params
(self, config=None)
m2det.py:38
↓ 1 callersFunctionintersect
We resize both tensors to [A,B,2] without new malloc: [A,2] -> [A,1,2] -> [A,B,2] [B,2] -> [1,B,2] -> [A,B,2] Then we compute the area of
utils/box_utils.py:34
↓ 1 callersFunctionjaccard
Compute the jaccard overlap of two sets of boxes. The jaccard overlap is simply the intersection over union of two boxes. Here we operate on
utils/box_utils.py:55
↓ 1 callersMethodloadNumpyAnnotations
Convert result data from a numpy array [Nx7] where each row contains {imageID,x1,y1,w,h,score,class} :param data (numpy.ndarray)
utils/pycocotools/coco.py:377
↓ 1 callersMethodloadRes
Load result file and return a result api object. :param resFile (str) : file name of result file :return: res (obj)
utils/pycocotools/coco.py:292
↓ 1 callersFunctionlocate_cuda
Locate the CUDA environment on the system Returns a dict with keys 'home', 'nvcc', 'include', and 'lib64' and values giving the absolute path
utils/build.py:26
↓ 1 callersFunctionlog_sum_exp
Utility function for computing log_sum_exp while determining This will be used to determine unaveraged confidence loss across all examples in
utils/box_utils.py:220
↓ 1 callersFunctionmatch
Match each prior box with the ground truth box of the highest jaccard overlap, encode the bounding boxes, then return the matched indices corr
utils/box_utils.py:88
↓ 1 callersFunctionmatrix_iou
return iou of a and b, numpy version for data augenmentation
utils/box_utils.py:75
↓ 1 callersFunctionmk_anchors
(size, multiscale_size, size_pattern, step_pattern, num_reglayer = 6, param = 2)
data/anchors.py:34
↓ 1 callersFunctionnms_process
(num_classes, i, scores, boxes, cfg, min_thresh, all_boxes, max_per_image)
utils/core.py:145
↓ 1 callersFunctionparse_rec
Parse a PASCAL VOC xml file
data/voc_eval.py:14
↓ 1 callersFunctionpoint_form
Convert prior_boxes to (xmin, ymin, xmax, ymax) representation for comparison to point form ground truth data. Args: boxes: (tensor)
utils/box_utils.py:10
↓ 1 callersFunctionprint_train_log
(iteration, print_epochs, info_list)
utils/core.py:99
↓ 1 callersMethodpull_image
Returns the original image object at index in PIL form Note: not using self.__getitem__(), as any transformations passed in could mes
data/voc0712.py:198
↓ 1 callersFunctionreglayer_scale
(size, num_layer, size_the)
data/anchors.py:12
↓ 1 callersFunctionrleArea
utils/pycocotools/maskApi.c:72
↓ 1 callersFunctionrleFrPoly
utils/pycocotools/maskApi.c:161
↓ 1 callersFunctionrleIou
utils/pycocotools/maskApi.c:77
↓ 1 callersMethodscalar_summary
Log a scalar variable.
logger.py:17
↓ 1 callersMethodsetDetParams
(self)
utils/pycocotools/cocoeval.py:497
↓ 1 callersMethodsetKpParams
(self)
utils/pycocotools/cocoeval.py:508
↓ 1 callersFunctionset_criterion
(cfg)
utils/core.py:61
↓ 1 callersFunctionset_logger
(status)
utils/core.py:18
↓ 1 callersFunctionset_optimizer
(net, cfg)
utils/core.py:55
next →1–100 of 216, ranked by callers