MCPcopy Create free account

hub / github.com/HwangBo94/Anti-UAV410 / functions

Functions4,312 in github.com/HwangBo94/Anti-UAV410

↓ 504 callersMethodsize
(self, im_sz)
implementation_in_pytracking/pytracking-AntiUAV410/pytracking/features/featurebase.py:33
↓ 407 callersMethodget
(self, name, frame_num=None)
implementation_in_pytracking/pytracking-AntiUAV410/pytracking/evaluation/data.py:148
↓ 249 callersMethodget
(self, name)
trackers/SiamDT/libs/config/registry.py:86
↓ 165 callersMethodrand
(self, sz, min_val, max_val)
implementation_in_pytracking/pytracking-AntiUAV410/ltr/models/kys/utils.py:45
↓ 147 callersMethoddim
(self)
implementation_in_pytracking/pytracking-AntiUAV410/pytracking/features/color.py:7
↓ 125 callersMethodto
Move the network to device args: device - device to use. 'cpu' or 'cuda'
implementation_in_pytracking/pytracking-AntiUAV410/ltr/actors/base_actor.py:28
↓ 120 callersMethoddeepcopy
(self)
trackers/SiamDT/libs/config/config.py:107
↓ 104 callersMethodupdate
(self, *args, **kwargs)
trackers/SiamDT/libs/config/config.py:104
↓ 87 callersMethodcopy
(self)
implementation_in_pytracking/pytracking-AntiUAV410/pytracking/libs/tensordict.py:13
↓ 80 callersMethodflip
See :func:`BaseInstanceMasks.flip`.
trackers/SiamDT/libs/swintransformer/mmdet/core/mask/structures.py:285
↓ 76 callersMethodcuda
Since teacher_model is registered as a plain object, it is necessary to put the teacher model to cuda when calling cuda function.
trackers/SiamDT/libs/swintransformer/mmdet/models/detectors/kd_one_stage.py:75
↓ 62 callersMethodto
Change the device of the data inplace. Example: >>> self = SamplingResult.random() >>> print(f'self = {self.to(None)}
trackers/SiamDT/libs/swintransformer/mmdet/core/bbox/samplers/sampling_result.py:56
↓ 56 callersFunctionbuild_loss
Build loss.
trackers/SiamDT/libs/swintransformer/mmdet/models/builder.py:62
↓ 55 callersFunctionbbox2roi
Convert a list of bboxes to roi format. Args: bbox_list (list[Tensor]): a list of bboxes corresponding to a batch of images.
trackers/SiamDT/libs/swintransformer/mmdet/core/bbox/transforms.py:58
↓ 55 callersMethodexpand
See :func:`BaseInstanceMasks.expand`.
trackers/SiamDT/libs/swintransformer/mmdet/core/mask/structures.py:360
↓ 50 callersMethodload
(cls, filename, **kwargs)
trackers/SiamDT/libs/config/config.py:32
↓ 50 callersMethodregister
(self, filter, training_samples, yf, sample_weights, reg_filter)
implementation_in_pytracking/pytracking-AntiUAV410/pytracking/tracker/eco/optim.py:134
↓ 48 callersFunctionmulti_apply
Apply function to a list of arguments. Note: This function applies the ``func`` to multiple inputs and map the multiple outputs o
trackers/SiamDT/libs/swintransformer/mmdet/core/utils/misc.py:10
↓ 45 callersMethoddecode
Decode the predicted bboxes according to prediction and base boxes.
trackers/SiamDT/libs/swintransformer/mmdet/core/bbox/coder/base_bbox_coder.py:15
↓ 44 callersMethodto_ndarray
See :func:`BaseInstanceMasks.to_ndarray`.
trackers/SiamDT/libs/swintransformer/mmdet/core/mask/structures.py:494
↓ 43 callersMethodassign
Assign gt to bboxes. The assignment is done in following steps 1. compute iou between all bbox (bbox of all pyramid levels) and gt
trackers/SiamDT/libs/swintransformer/mmdet/core/bbox/assigners/atss_assigner.py:33
↓ 41 callersMethodget
Rebuild the network by calling the network function with the correct arguments.
implementation_in_pytracking/pytracking-AntiUAV410/ltr/admin/model_constructor.py:41
↓ 41 callersFunctionimages_to_levels
Convert targets by image to targets by feature level. [target_img0, target_img1] -> [target_level0, target_level1, ...]
trackers/SiamDT/libs/swintransformer/mmdet/core/anchor/utils.py:4
↓ 40 callersMethodforward
(self, *args, **kwargs)
trackers/SiamDT/libs/swintransformer/tests/test_onnx/utils.py:26
↓ 40 callersMethodsample
Sample positive and negative bboxes. This is a simple implementation of bbox sampling given candidates, assigning results and ground
trackers/SiamDT/libs/swintransformer/mmdet/core/bbox/samplers/base_sampler.py:34
↓ 35 callersMethodapply
(self, fn, *args, **kwargs)
implementation_in_pytracking/pytracking-AntiUAV410/pytracking/libs/tensordict.py:30
↓ 35 callersMethodloss
Compute losses of the head. Args: cls_scores (list[Tensor]): Cls and quality scores for each scale level has shap
trackers/SiamDT/libs/swintransformer/mmdet/models/dense_heads/ld_head.py:185
↓ 35 callersMethodparse_args
(self, **kargs)
trackers/SiamFC/siamfc.py:81
↓ 34 callersMethoddump
(self, filename, **kwargs)
trackers/SiamDT/libs/config/config.py:59
↓ 34 callersMethodload
(self, gen_meta: Path)
implementation_in_pytracking/pytracking-AntiUAV410/ltr/dataset/vos_base.py:26
↓ 33 callersMethodeval
(self, out_res, label_res)
trackers/SiamDT/libs/data/evaluators/uavtir_eval.py:93
↓ 33 callersFunctionunmap
Unmap a subset of item (data) back to the original set of items (of size count)
trackers/SiamDT/libs/swintransformer/mmdet/core/utils/misc.py:32
↓ 31 callersFunctiondigit_version
(version_str)
trackers/SiamDT/libs/swintransformer/mmdet/__init__.py:6
↓ 28 callersFunctionmap
(func, args_list, num_workers=32, timeout=1)
trackers/SiamDT/libs/ops/ops.py:104
↓ 27 callersFunctionconv
(ic, oc, ksize, bias=True, dilation=1, stride=1)
implementation_in_pytracking/pytracking-AntiUAV410/ltr/models/rts/decoder.py:9
↓ 26 callersFunctionconv_block
(in_planes, out_planes, kernel_size=3, stride=1, padding=1, dilation=1, bias=True, batch_norm=T
implementation_in_pytracking/pytracking-AntiUAV410/ltr/models/layers/blocks.py:4
↓ 26 callersMethodtrain
Convert the model into training mode will keeping the normalization layer freezed.
trackers/SiamDT/libs/swintransformer/mmdet/models/backbones/hrnet.py:529
↓ 25 callersFunctiondummy_raw_bitmap_masks
Args: size (tuple): expected shape of dummy masks, (H, W) or (N, H, W) Return: ndarray: dummy mask
trackers/SiamDT/libs/swintransformer/tests/test_utils/test_masks.py:8
↓ 25 callersFunctionenv_settings
()
implementation_in_pytracking/pytracking-AntiUAV410/ltr/admin/environment.py:47
↓ 25 callersFunctionnumpy_to_torch
(a: np.ndarray)
implementation_in_pytracking/pytracking-AntiUAV410/pytracking/features/preprocessing.py:6
↓ 25 callersMethodpad
See :func:`BaseInstanceMasks.pad`.
trackers/SiamDT/libs/swintransformer/mmdet/core/mask/structures.py:298
↓ 24 callersFunctionbuild_detector
Build detector.
trackers/SiamDT/libs/swintransformer/mmdet/models/builder.py:67
↓ 24 callersMethodrandom
Generate random bitmap masks for demo / testing purposes. Example: >>> from mmdet.core.mask.structures import BitmapMasks
trackers/SiamDT/libs/swintransformer/mmdet/core/mask/structures.py:503
↓ 23 callersFunctionplot_graph
Plot graph. Data is a 1D tensor. args: fig_num: Figure number. title: Title of figure.
implementation_in_pytracking/pytracking-AntiUAV410/pytracking/utils/plotting.py:43
↓ 23 callersMethodrun
(self, tracker, visualize=None)
trackers/SiamDT/libs/data/evaluators/otb_eval.py:51
↓ 22 callersFunctiondummy_raw_polygon_masks
Args: size (tuple): expected shape of dummy masks, (N, H, W) Return: list[list[ndarray]]: dummy mask
trackers/SiamDT/libs/swintransformer/tests/test_utils/test_masks.py:19
↓ 22 callersMethodinit_weights
Initialize the weights of FPN module.
trackers/SiamDT/libs/swintransformer/mmdet/models/necks/fpn.py:163
↓ 22 callersFunctionload_text
(path, delimiter=' ', dtype=np.float32, backend='numpy')
implementation_in_pytracking/pytracking-AntiUAV410/pytracking/utils/load_text.py:43
↓ 21 callersMethodeval
Set network to eval mode
implementation_in_pytracking/pytracking-AntiUAV410/ltr/actors/base_actor.py:42
↓ 21 callersMethodtrain
Do training for the given number of epochs. args: max_epochs - Max number of training epochs, load_latest - Bool indic
implementation_in_pytracking/pytracking-AntiUAV410/ltr/trainers/base_trainer.py:52
↓ 20 callersMethodapply_filter
(self, sample_xf: TensorList)
implementation_in_pytracking/pytracking-AntiUAV410/pytracking/tracker/eco/eco.py:244
↓ 20 callersFunctionbuild_head
Build head.
trackers/SiamDT/libs/swintransformer/mmdet/models/builder.py:57
↓ 20 callersMethodresize
See :func:`BaseInstanceMasks.resize`.
trackers/SiamDT/libs/swintransformer/mmdet/core/mask/structures.py:273
↓ 19 callersMethod_iterable
(a)
implementation_in_pytracking/pytracking-AntiUAV410/pytracking/libs/tensorlist.py:183
↓ 19 callersFunctionbbox2result
Convert detection results to a list of numpy arrays. Args: bboxes (torch.Tensor | np.ndarray): shape (n, 5) labels (torch.Tensor
trackers/SiamDT/libs/swintransformer/mmdet/core/bbox/transforms.py:99
↓ 19 callersFunctionbbox_overlaps
Calculate the ious between each bbox of bboxes1 and bboxes2. Args: bboxes1(ndarray): shape (n, 4) bboxes2(ndarray): shape (k, 4)
trackers/SiamDT/libs/swintransformer/mmdet/core/evaluation/bbox_overlaps.py:4
↓ 19 callersFunctionbuild_sampler
Builder of box sampler.
trackers/SiamDT/libs/swintransformer/mmdet/core/bbox/builder.py:13
↓ 19 callersFunctionmulticlass_nms
NMS for multi-class bboxes. Args: multi_bboxes (Tensor): shape (n, #class*4) or (n, 4) multi_scores (Tensor): shape (n, #class),
trackers/SiamDT/libs/swintransformer/mmdet/core/post_processing/bbox_nms.py:7
↓ 18 callersFunctionbuild_dataset
(cfg, default_args=None)
trackers/SiamDT/libs/swintransformer/mmdet/datasets/builder.py:53
↓ 18 callersFunctiondistance2bbox
Decode distance prediction to bounding box. Args: points (Tensor): Shape (B, N, 2) or (N, 2). distance (Tensor): Distance from th
trackers/SiamDT/libs/swintransformer/mmdet/core/bbox/transforms.py:119
↓ 18 callersFunctionenv_settings
()
implementation_in_pytracking/pytracking-AntiUAV410/pytracking/evaluation/environment.py:57
↓ 18 callersMethodget_bboxes
Transform network output for a batch into bbox predictions. Args: cls_scores (list[Tensor]): Box scores for each scale level
trackers/SiamDT/libs/swintransformer/mmdet/models/dense_heads/atss_head.py:317
↓ 18 callersMethodgrid_anchors
Generate grid anchors in multiple feature levels. Args: featmap_sizes (list[tuple]): List of feature map sizes in
trackers/SiamDT/libs/swintransformer/mmdet/core/anchor/anchor_generator.py:207
↓ 17 callersMethodattribute
(self, attr: str, *args)
implementation_in_pytracking/pytracking-AntiUAV410/pytracking/libs/tensordict.py:27
↓ 17 callersFunctionbuild_assigner
Builder of box assigner.
trackers/SiamDT/libs/swintransformer/mmdet/core/bbox/builder.py:8
↓ 17 callersMethodextract_backbone
Extract backbone features from the network. Expects a float tensor image with pixel range [0, 255].
implementation_in_pytracking/pytracking-AntiUAV410/pytracking/features/net_wrappers.py:71
↓ 17 callersMethodextract_feat
Extract features. Args: img (torch.Tensor): Image tensor with shape (n, c, h ,w). Returns: list[torch.Tensor
trackers/SiamDT/libs/swintransformer/mmdet/models/detectors/rpn.py:44
↓ 17 callersMethodloss
Loss function of DIIHead, get loss of all images. Args: cls_score (Tensor): Classification prediction results of
trackers/SiamDT/libs/swintransformer/mmdet/models/roi_heads/bbox_heads/dii_head.py:191
↓ 16 callersMethodhas
Check if there exist a parameter with the given name.
implementation_in_pytracking/pytracking-AntiUAV410/pytracking/utils/params.py:23
↓ 16 callersFunctionis_real
(a: torch.Tensor)
implementation_in_pytracking/pytracking-AntiUAV410/pytracking/libs/complex.py:9
↓ 16 callersMethodsave
(self, gen_meta: Path)
implementation_in_pytracking/pytracking-AntiUAV410/ltr/dataset/vos_base.py:22
↓ 16 callersFunctionshift_features
(feat, relative_translation_vector)
implementation_in_pytracking/pytracking-AntiUAV410/ltr/models/kys/utils.py:6
↓ 15 callersMethodbackward
(ctx, grad_output)
implementation_in_pytracking/pytracking-AntiUAV410/ltr/external/PreciseRoIPooling/pytorch/prroi_pool/functional.py:68
↓ 15 callersFunctionconv
(ic, oc, ksize, bias=True, dilation=1, stride=1)
implementation_in_pytracking/pytracking-AntiUAV410/ltr/models/lwl/decoder.py:9
↓ 15 callersMethodforward_plugin
(self, x, plugin_names)
trackers/SiamDT/libs/swintransformer/mmdet/models/backbones/resnet.py:239
↓ 15 callersMethodget_targets
Get targets for PAA head. This method is almost the same as `AnchorHead.get_targets()`. We direct return the results from _get_target
trackers/SiamDT/libs/swintransformer/mmdet/models/dense_heads/paa_head.py:401
↓ 15 callersFunctionkaiming_init
(m)
trackers/SiamDT/libs/ops/ops.py:36
↓ 14 callersFunction_demo_mm_inputs
Create a superset of inputs needed to run test or train batches. Args: input_shape (tuple): input batch dimensions n
trackers/SiamDT/libs/swintransformer/tests/test_models/test_forward.py:326
↓ 14 callersFunctionaccuracy
Calculate accuracy according to the prediction and target. Args: pred (torch.Tensor): The model prediction, shape (N, num_class)
trackers/SiamDT/libs/swintransformer/mmdet/models/losses/accuracy.py:6
↓ 14 callersMethodget_anchors
Get anchors according to feature map sizes. Args: featmap_sizes (list[tuple]): Multi-level feature map sizes. img_met
trackers/SiamDT/libs/swintransformer/mmdet/models/dense_heads/anchor_head.py:145
↓ 14 callersMethodget_targets
Calculate the ground truth for all samples in a batch according to the sampling_results. Almost the same as the implementation in bbo
trackers/SiamDT/libs/swintransformer/mmdet/models/roi_heads/bbox_heads/dii_head.py:348
↓ 14 callersFunctionload_checkpoint
Load checkpoint from a file or URI. Args: model (Module): Module to load checkpoint. filename (str): Accept local filepath, URL,
trackers/SiamDT/libs/swintransformer/mmcv_custom/checkpoint.py:286
↓ 14 callersMethodpredict_iou
Predicts IoU for the give proposals. args: modulation: Modulation vectors for the targets. Dims (batch, feature_dim).
implementation_in_pytracking/pytracking-AntiUAV410/ltr/models/bbreg/atom_iou_net.py:96
↓ 14 callersMethodupdate
(self, image)
trackers/SiamFC/siamfc.py:179
↓ 13 callersFunction_make_divisible
(v, divisor=8, min_value=None)
implementation_in_pytracking/pytracking-AntiUAV410/ltr/models/backbone/mobilenetv3.py:50
↓ 13 callersFunctionabs
Absolute value.
implementation_in_pytracking/pytracking-AntiUAV410/pytracking/libs/complex.py:101
↓ 13 callersFunctionbuild_anchor_generator
(cfg, default_args=None)
trackers/SiamDT/libs/swintransformer/mmdet/core/anchor/builder.py:6
↓ 13 callersMethodencode
Encode deltas between bboxes and ground truth boxes.
trackers/SiamDT/libs/swintransformer/mmdet/core/bbox/coder/base_bbox_coder.py:11
↓ 13 callersFunctionget_dist_info
()
trackers/SiamDT/libs/ops/ops.py:57
↓ 13 callersMethodnorm1
nn.Module: the normalization layer named "norm1"
trackers/SiamDT/libs/swintransformer/mmdet/models/backbones/hrnet.py:348
↓ 13 callersFunctionreduce_mean
Obtain the mean of tensor on different GPUs.
trackers/SiamDT/libs/swintransformer/mmdet/core/utils/dist_utils.py:63
↓ 13 callersMethodshow_image
(self, data=None)
implementation_in_pytracking/pytracking-AntiUAV410/pytracking/utils/visdom.py:214
↓ 13 callersMethodupdate
(self, data, **kwargs)
implementation_in_pytracking/pytracking-AntiUAV410/pytracking/utils/visdom.py:19
↓ 12 callersMethod_parse_losses
Parse the raw outputs (losses) of the network. Args: losses (dict): Raw output of the network, which usually contain
trackers/SiamDT/libs/swintransformer/mmdet/models/detectors/base.py:185
↓ 12 callersFunction_print
(result, ap=1, iouThr=None, areaRng='all', maxDets=100)
trackers/SiamDT/libs/swintransformer/tools/analysis_tools/robustness_eval.py:10
↓ 12 callersMethodget_bboxes
(self, det_bboxes, grid_pred, img_metas)
trackers/SiamDT/libs/swintransformer/mmdet/models/roi_heads/mask_heads/grid_head.py:294
↓ 12 callersMethodget_seg_masks
Get segmentation masks from mask_pred and bboxes. Args: mask_pred (Tensor or ndarray): shape (n, #class, h, w). F
trackers/SiamDT/libs/swintransformer/mmdet/models/roi_heads/mask_heads/fcn_mask_head.py:169
↓ 12 callersMethodinfo
dict: a dictionary of info about the object
trackers/SiamDT/libs/swintransformer/mmdet/core/bbox/assigners/assign_result.py:65
↓ 12 callersFunctionis_block
Check if is ResNet building block.
trackers/SiamDT/libs/swintransformer/tests/test_models/test_backbones/utils.py:10
↓ 12 callersFunctionort_validate
Validate the output of the onnxruntime backend is the same as the output generated by torch. Args: model (nn.Module): the model to be
trackers/SiamDT/libs/swintransformer/tests/test_onnx/utils.py:30
next →1–100 of 4,312, ranked by callers