Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/YuqingWang1029/SOLOv2
/ functions
Functions
1,167 in github.com/YuqingWang1029/SOLOv2
⨍
Functions
1,167
◇
Types & classes
171
↓ 3 callers
Method
__init__
(self, in_channels, out_channels, kernel_size,
mmdet/ops/dcn/deform_conv.py:193
↓ 3 callers
Method
_add_conv_fc_branch
Add shared or separable branch convs -> avg pool (optional) -> fcs
mmdet/models/bbox_heads/convfc_bbox_head.py:83
↓ 3 callers
Method
_bbox_forward_test
(self, stage, x, rois, semantic_feat=None)
mmdet/models/detectors/htc.py:114
↓ 3 callers
Function
_context_for_ohem
()
tests/test_sampler.py:93
↓ 3 callers
Method
_freeze_stages
(self)
mmdet/models/backbones/resnet.py:457
↓ 3 callers
Method
_make_stage
(self, layer_config, in_channels, multiscale_output=True)
mmdet/models/backbones/hrnet.py:433
↓ 3 callers
Method
_make_transition_layer
(self, num_channels_pre_layer, num_channels_cur_layer)
mmdet/models/backbones/hrnet.py:352
↓ 3 callers
Function
anchor_inside_flags
(flat_anchors, valid_flags, img_shape,
mmdet/core/anchor/anchor_target.py:162
↓ 3 callers
Function
anchor_target
Compute regression and classification targets for anchors. Args: anchor_list (list[list]): Multi level anchors of each image. val
mmdet/core/anchor/anchor_target.py:7
↓ 3 callers
Method
assign_wrt_overlaps
Assign w.r.t. the overlaps of bboxes with gts. Args: overlaps (Tensor): Overlaps between k gt_bboxes and n bboxes,
mmdet/core/bbox/assigners/max_iou_assigner.py:121
↓ 3 callers
Function
async_inference_detector
Async inference image(s) with the detector. Args: model (nn.Module): The loaded detector. imgs (str/ndarray or list[str/ndarray])
mmdet/apis/inference.py:90
↓ 3 callers
Function
bbox_mapping_back
Map bboxes from testing scale to original image scale
mmdet/core/bbox/transforms.py:142
↓ 3 callers
Function
bbox_overlaps
Calculate overlap between two set of bboxes. If ``is_aligned`` is ``False``, then calculate the ious between each bbox of bboxes1 and bboxes2
mmdet/core/bbox/geometry.py:4
↓ 3 callers
Function
completed
Async context manager that waits for work to complete on given CUDA streams.
mmdet/utils/contextmanagers.py:17
↓ 3 callers
Function
convert_bn
(blobs, state_dict, caffe_name, torch_name, converted_names)
tools/detectron2pytorch.py:10
↓ 3 callers
Function
convert_conv_fc
(blobs, state_dict, caffe_name, torch_name, converted_names)
tools/detectron2pytorch.py:23
↓ 3 callers
Function
distance2bbox
Decode distance prediction to bounding box. Args: points (Tensor): Shape (n, 2), [x, y]. distance (Tensor): Distance from the giv
mmdet/core/bbox/transforms.py:202
↓ 3 callers
Function
eval_map
Evaluate mAP of a dataset. Args: det_results (list[list]): [[cls1_det, cls2_det, ...], ...]. The outer list indicates images,
mmdet/core/evaluation/mean_ap.py:266
↓ 3 callers
Method
extract_feat
(self, img)
mmdet/models/detectors/single_stage_ins.py:39
↓ 3 callers
Method
extract_feat
(self, img)
mmdet/models/detectors/cascade_rcnn.py:115
↓ 3 callers
Method
extract_feat
Directly extract features from the backbone+neck
mmdet/models/detectors/single_stage.py:44
↓ 3 callers
Function
fast_eval_recall
(results, coco, max_dets, iou_thrs=np.arange(0.
mmdet/core/evaluation/coco_utils.py:84
↓ 3 callers
Method
get_ann_info
(self, idx)
mmdet/datasets/coco.py:41
↓ 3 callers
Function
get_results
(filename, dataset='coco', task='bbox', metric=None,
tools/robustness_eval.py:161
↓ 3 callers
Function
images_to_levels
Convert targets by image to targets by feature level. [target_img0, target_img1] -> [target_level0, target_level1, ...]
mmdet/core/anchor/guided_anchor_target.py:205
↓ 3 callers
Function
init_detector
Initialize a detector from config file. Args: config (str or :obj:`mmcv.Config`): Config file path or the config object.
mmdet/apis/inference.py:16
↓ 3 callers
Function
matrix_nms
Matrix NMS for multi-class masks. Args: seg_masks (Tensor): shape (n, h, w) cate_labels (Tensor): shape (n), mask labels in desce
mmdet/core/post_processing/matrix_nms.py:4
↓ 3 callers
Function
merge_aug_bboxes
Merge augmented detection bboxes and scores. Args: aug_bboxes (list[Tensor]): shape (n, 4*#class) aug_scores (list[Tensor] or Non
mmdet/core/post_processing/merge_augs.py:46
↓ 3 callers
Method
norm1
(self)
mmdet/models/backbones/hrnet.py:345
↓ 3 callers
Function
print_coco_results
(results)
tools/robustness_eval.py:8
↓ 3 callers
Function
shape_check
mmdet/ops/dcn/src/deform_conv_cuda.cpp:62
↓ 3 callers
Method
valid_flags
(self, featmap_size, valid_size, device='cuda')
mmdet/core/anchor/point_generator.py:24
↓ 2 callers
Function
__Pyx_BufFmt_DescribeTypeChar
mmdet/ops/nms/src/soft_nms_cpu.cpp:6996
↓ 2 callers
Function
__Pyx_BufFmt_ExpectNumber
mmdet/ops/nms/src/soft_nms_cpu.cpp:6985
↓ 2 callers
Function
__Pyx_IsSubtype
mmdet/ops/nms/src/soft_nms_cpu.cpp:9961
↓ 2 callers
Function
__Pyx_Is_Little_Endian
IsLittleEndian */
mmdet/ops/nms/src/soft_nms_cpu.cpp:6932
↓ 2 callers
Function
__Pyx_PyCFunction_FastCall
mmdet/ops/nms/src/soft_nms_cpu.cpp:7674
↓ 2 callers
Function
__Pyx_PyFunction_FastCallNoKw
mmdet/ops/nms/src/soft_nms_cpu.cpp:7493
↓ 2 callers
Function
__Pyx_PyInt_AddObjC
mmdet/ops/nms/src/soft_nms_cpu.cpp:7943
↓ 2 callers
Function
__Pyx_PyObject_Call2Args
PyObjectCall2Args */
mmdet/ops/nms/src/soft_nms_cpu.cpp:7884
↓ 2 callers
Function
__Pyx_PyObject_CallMethO
mmdet/ops/nms/src/soft_nms_cpu.cpp:7632
↓ 2 callers
Function
__Pyx_PyObject_GetSlice
SliceObject */
mmdet/ops/nms/src/soft_nms_cpu.cpp:8115
↓ 2 callers
Function
__Pyx_RaiseArgtupleInvalid
RaiseArgTupleInvalid */
mmdet/ops/nms/src/soft_nms_cpu.cpp:6769
↓ 2 callers
Function
__Pyx_RefNannyImportAPI
mmdet/ops/nms/src/soft_nms_cpu.cpp:6725
↓ 2 callers
Method
__init__
(self, spatial_scale, out_size, out_channels,
mmdet/ops/dcn/deform_pool.py:84
↓ 2 callers
Method
__init__
(self, *args, **kwargs)
mmdet/models/necks/nas_fpn.py:58
↓ 2 callers
Method
__init__
(self, depth, in_channels=3, num_stages=4,
mmdet/models/backbones/resnet.py:354
↓ 2 callers
Method
__init__
(self, eps=1e-6, reduction='mean', loss_weight=1.0)
mmdet/models/losses/iou_loss.py:120
↓ 2 callers
Method
__nice__
(self)
mmdet/utils/util_mixins.py:79
↓ 2 callers
Function
__pyx_bisect_code_objects
CodeObjectCache */
mmdet/ops/nms/src/soft_nms_cpu.cpp:8773
↓ 2 callers
Function
_dummy_bbox_sampling
Create sample results that can be passed to BBoxHead.get_target
tests/test_heads.py:93
↓ 2 callers
Method
_meshgrid
(self, x, y, row_major=True)
mmdet/core/anchor/point_generator.py:6
↓ 2 callers
Method
_meshgrid
(self, x, y, row_major=True)
mmdet/core/anchor/anchor_generator.py:58
↓ 2 callers
Method
_resize
(self, x, size)
mmdet/models/necks/nas_fpn.py:26
↓ 2 callers
Function
accuracy
(pred, target, topk=1)
mmdet/models/losses/accuracy.py:4
↓ 2 callers
Method
albu_builder
Import a module from albumentations. Inherits some of `build_from_cfg` logic. Args: cfg (dict): Config dict. It should at
mmdet/datasets/pipelines/transforms.py:773
↓ 2 callers
Function
allreduce_grads
(params, coalesce=True, bucket_size_mb=-1)
mmdet/core/utils/dist_utils.py:31
↓ 2 callers
Function
assign_and_sample
(bboxes, gt_bboxes, gt_bboxes_ignore, gt_labels, cfg)
mmdet/core/bbox/assign_sampling.py:26
↓ 2 callers
Method
backward
(ctx, grad_output)
mmdet/ops/roi_pool/roi_pool.py:33
↓ 2 callers
Function
bbox_flip
Flip bboxes horizontally. Args: bboxes(Tensor or ndarray): Shape (..., 4*k) img_shape(tuple): Image shape. Returns:
mmdet/core/bbox/transforms.py:114
↓ 2 callers
Method
bbox_flip
Flip bboxes horizontally. Args: bboxes(ndarray): shape (..., 4*k) img_shape(tuple): (height, width)
mmdet/datasets/pipelines/transforms.py:209
↓ 2 callers
Function
build_optimizer
Build optimizer from configs. Args: model (:obj:`nn.Module`): The model with parameters to be optimized. optimizer_cfg (dict): Th
mmdet/apis/train.py:114
↓ 2 callers
Function
concurrent
Run code concurrently in different streams. :param streamqueue: asyncio.Queue instance. Queue tasks define the pool of streams used for conc
mmdet/utils/contextmanagers.py:95
↓ 2 callers
Function
cvt_annotations
(devkit_path, years, split, out_file)
tools/convert_datasets/pascal_voc.py:67
↓ 2 callers
Function
ensure_rng
Simple version of the ``kwarray.ensure_rng`` Args: rng (int | numpy.random.RandomState | None): if None, then defaults t
mmdet/core/bbox/demodata.py:5
↓ 2 callers
Function
flops_to_string
(flops, units='GMac', precision=2)
mmdet/utils/flops_counter.py:69
↓ 2 callers
Method
gen_grid_from_reg
Base on the previous bboxes and regression values, we compute the regressed bboxes and generate the grids on the bboxes.
mmdet/models/anchor_heads/reppoints_head.py:215
↓ 2 callers
Method
get_anchors
Get squares according to feature map sizes and guided anchors. Args: featmap_sizes (list[tuple]): Multi-level feature map
mmdet/models/anchor_heads/guided_anchor_head.py:271
↓ 2 callers
Function
get_masks
(result, num_classes=80)
tools/test_ins.py:22
↓ 2 callers
Method
get_points
Get points according to feature map sizes. Args: featmap_sizes (list[tuple]): Multi-level feature map sizes. img_meta
mmdet/models/anchor_heads/reppoints_head.py:293
↓ 2 callers
Method
get_points
(self, featmap_sizes, dtype, device, flatten=False)
mmdet/models/anchor_heads/fovea_head.py:172
↓ 2 callers
Method
get_points
Get points according to feature map sizes. Args: featmap_sizes (list[tuple]): Multi-level feature map sizes. dtype (t
mmdet/models/anchor_heads/fcos_head.py:288
↓ 2 callers
Method
grid_points
(self, featmap_size, stride=16, device='cuda')
mmdet/core/anchor/point_generator.py:14
↓ 2 callers
Method
hard_mining
(self, inds, num_expected, bboxes, labels, feats)
mmdet/core/bbox/samplers/ohem_sampler.py:32
↓ 2 callers
Function
inference_detector
Inference image(s) with the detector. Args: model (nn.Module): The loaded detector. imgs (str/ndarray or list[str/ndarray]): Eith
mmdet/apis/inference.py:63
↓ 2 callers
Function
last_zero_init
(m)
mmdet/ops/context_block.py:6
↓ 2 callers
Function
make_res_layer
(block, inplanes, planes, blocks,
mmdet/models/backbones/resnet.py:243
↓ 2 callers
Function
makeplot
(rs, ps, outDir, class_name, iou_type)
tools/coco_error_analysis.py:12
↓ 2 callers
Method
mapper
Dictionary mapper. Renames keys according to keymap provided. Args: d (dict): old dict keymap (dict)
mmdet/datasets/pipelines/transforms.py:806
↓ 2 callers
Method
norm
(self)
mmdet/models/utils/conv_module.py:150
↓ 2 callers
Method
offset_to_pts
Change from point offset to point coordinate.
mmdet/models/anchor_heads/reppoints_head.py:349
↓ 2 callers
Function
parse_require_file
(fpath)
setup.py:189
↓ 2 callers
Function
point_target
Compute corresponding GT box and classification targets for proposals. Args: points_list (list[list]): Multi level points of each image.
mmdet/core/anchor/point_target.py:7
↓ 2 callers
Method
pre_pipeline
(self, results)
mmdet/datasets/custom.py:95
↓ 2 callers
Function
profile_time
Print time spent by CPU and GPU. Useful as a temporary context manager to find sweet spots of code suitable for async implementation.
mmdet/utils/profiling.py:10
↓ 2 callers
Function
random_boxes
Simple version of ``kwimage.Boxes.random`` Returns: Tensor: shape (n, 4) in x1, y1, x2, y2 format. References: https://
mmdet/core/bbox/demodata.py:30
↓ 2 callers
Method
random_sample
(img_scales)
mmdet/datasets/pipelines/transforms.py:82
↓ 2 callers
Function
reduce_mean
(tensor)
mmdet/models/anchor_heads/atss_head.py:16
↓ 2 callers
Function
set_random_seed
Set random seed. Args: seed (int): Seed to be used. deterministic (bool): Whether to set the deterministic option for
mmdet/apis/train.py:19
↓ 2 callers
Method
show_result
Show RPN proposals on the image. Although we assume batch size is 1, this method supports arbitrary batch size.
mmdet/models/detectors/rpn.py:84
↓ 2 callers
Function
sigmoid_focal_loss
(pred, target, weight=None, gamma=2.0,
mmdet/models/losses/focal_loss.py:28
↓ 2 callers
Method
simple_test_bboxes
Test only det bboxes without augmentation.
mmdet/models/detectors/test_mixins.py:97
↓ 2 callers
Function
smooth_l1_loss
(pred, target, beta=1.0)
mmdet/models/losses/smooth_l1_loss.py:9
↓ 1 callers
Function
__Pyx_BufFmt_CheckString
mmdet/ops/nms/src/soft_nms_cpu.cpp:7308
↓ 1 callers
Function
__Pyx_BufFmt_Init
BufferFormatCheck */
mmdet/ops/nms/src/soft_nms_cpu.cpp:6943
↓ 1 callers
Function
__Pyx_BufFmt_ParseNumber
mmdet/ops/nms/src/soft_nms_cpu.cpp:6970
↓ 1 callers
Function
__Pyx_BufFmt_TypeCharToAlignment
mmdet/ops/nms/src/soft_nms_cpu.cpp:7067
↓ 1 callers
Function
__Pyx_BufFmt_TypeCharToGroup
mmdet/ops/nms/src/soft_nms_cpu.cpp:7117
↓ 1 callers
Function
__Pyx_BufFmt_TypeCharToNativeSize
mmdet/ops/nms/src/soft_nms_cpu.cpp:7038
↓ 1 callers
Function
__Pyx_BufFmt_TypeCharToPadding
mmdet/ops/nms/src/soft_nms_cpu.cpp:7099
← previous
next →
101–200 of 1,167, ranked by callers