Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/GuangxingHan/QA-FewDet
/ functions
Functions
304 in github.com/GuangxingHan/QA-FewDet
⨍
Functions
304
◇
Types & classes
36
Method
__init__
(self, num_groups, num_channels, eps=1e-5, affine=True)
fewx/layers/naive_group_norm.py:35
Method
__init__
Args: dataset_name (str): name of the dataset, e.g., "voc_2007_test"
fewx/evaluation/pascal_voc_evaluation.py:35
Method
__init__
Args: dataset_name (str): name of the dataset to be evaluated. It must have either the following corresponding me
fewx/evaluation/coco_evaluation.py:49
Method
__repr__
(self)
QA_FewDet/modeling/fsod/gcn_module.py:37
Function
_get_builtin_metadata_pascal_voc
(dataset_name)
datasets/pascal_voc/builtin_meta_pascal_voc.py:49
Function
aligned_bilinear
(tensor, factor)
QA_FewDet/utils/comm.py:17
Function
aligned_bilinear
(tensor, factor)
fewx/utils/comm.py:17
Method
backward
(ctx, grad)
QA_FewDet/layers/misc.py:22
Method
backward
(ctx, grad)
QA_FewDet/layers/deform_conv.py:14
Method
backward
(ctx, grad)
fewx/layers/misc.py:22
Method
backward
(ctx, grad)
fewx/layers/deform_conv.py:14
Function
build_detection_test_loader
Similar to `build_detection_train_loader`. But this function uses the given `dataset_name` argument (instead of the names in cfg), and us
QA_FewDet/data/build.py:176
Function
build_detection_train_loader
A data loader is created by the following steps: 1. Use the dataset names in config to query :class:`DatasetCatalog`, and obtain a list of di
QA_FewDet/data/build.py:121
Function
build_lr_scheduler
Build a LR scheduler from config.
QA_FewDet/solver/build.py:151
Function
build_lr_scheduler
Build a LR scheduler from config.
fewx/solver/build.py:151
Function
build_optimizer
Build an optimizer from config.
QA_FewDet/solver/build.py:98
Method
build_optimizer
Returns: torch.optim.Optimizer: It now calls :func:`detectron2.solver.build_optimizer`. Overwrite it if you'd lik
fsod_train_net.py:71
Method
build_optimizer
Returns: torch.optim.Optimizer: It now calls :func:`detectron2.solver.build_optimizer`. Overwrite it if you'd lik
fsod_train_net_fewx.py:71
Method
build_train_loader
Returns: iterable It calls :func:`detectron2.data.build_detection_train_loader` with a customized DatasetMapper,
fsod_train_net.py:47
Method
build_train_loader
Returns: iterable It calls :func:`detectron2.data.build_detection_train_loader` with a customized DatasetMapper,
fsod_train_net_fewx.py:47
Function
clip_grad_norm
(p: _GradientClipperInput)
QA_FewDet/solver/build.py:31
Function
clip_grad_norm
(p: _GradientClipperInput)
fewx/solver/build.py:31
Function
clip_grad_value
(p: _GradientClipperInput)
QA_FewDet/solver/build.py:34
Function
clip_grad_value
(p: _GradientClipperInput)
fewx/solver/build.py:34
Function
compute_locations
(h, w, stride, device)
QA_FewDet/utils/comm.py:42
Function
compute_locations
(h, w, stride, device)
fewx/utils/comm.py:42
Function
conv_with_kaiming_uniform
( norm=None, activation=None, use_deformable=False, use_sep=False)
QA_FewDet/layers/conv_with_kaiming_uniform.py:8
Function
conv_with_kaiming_uniform
( norm=None, activation=None, use_deformable=False, use_sep=False)
fewx/layers/conv_with_kaiming_uniform.py:8
Method
evaluate
Returns: dict: has a key "segm", whose value is a dict of "AP", "AP50", and "AP75".
QA_FewDet/evaluation/pascal_voc_evaluation.py:72
Method
evaluate
Returns: dict: has a key "segm", whose value is a dict of "AP", "AP50", and "AP75".
fewx/evaluation/pascal_voc_evaluation.py:72
Method
extra_repr
(self)
QA_FewDet/layers/naive_group_norm.py:68
Method
extra_repr
(self)
fewx/layers/naive_group_norm.py:68
Method
forward
Args: features (list[Tensor]): list of feature maps Returns: list[Tensor]: A list of L elements.
QA_FewDet/modeling/fsod/fsod_rpn.py:125
Method
forward
Args: images (ImageList): input images of length `N` features (dict[str, Tensor]): input data as a mapping from featu
QA_FewDet/modeling/fsod/fsod_rpn.py:378
Method
forward
(self, x_query, x_support)
QA_FewDet/modeling/fsod/fsod_fast_rcnn.py:489
Method
forward
(self, input, adj)
QA_FewDet/modeling/fsod/gcn_module.py:30
Method
forward
(self, input_features, adj_mat)
QA_FewDet/modeling/fsod/gcn_module.py:50
Method
forward
Args: batched_inputs: a list, batched outputs of :class:`DatasetMapper` . Each item in the list contains the inpu
QA_FewDet/modeling/fsod/fsod_rcnn.py:272
Method
forward
See :meth:`ROIHeads.forward`.
QA_FewDet/modeling/fsod/fsod_roi_heads.py:214
Method
forward
(ctx, x, new_shape)
QA_FewDet/layers/misc.py:17
Method
forward
(ctx, x, new_shape)
QA_FewDet/layers/deform_conv.py:9
Method
forward
(self, x, return_offset=False)
QA_FewDet/layers/deform_conv.py:95
Method
forward
(self, input)
QA_FewDet/layers/naive_group_norm.py:54
Method
forward
Args: features (list[Tensor]): list of feature maps Returns: list[Tensor]: A list of L elements.
fewx/modeling/fsod/fsod_rpn.py:125
Method
forward
Args: images (ImageList): input images of length `N` features (dict[str, Tensor]): input data as a mapping from featu
fewx/modeling/fsod/fsod_rpn.py:378
Method
forward
(self, x_query, x_support)
fewx/modeling/fsod/fsod_fast_rcnn.py:489
Method
forward
Args: batched_inputs: a list, batched outputs of :class:`DatasetMapper` . Each item in the list contains the inpu
fewx/modeling/fsod/fsod_rcnn.py:125
Method
forward
See :meth:`ROIHeads.forward`.
fewx/modeling/fsod/fsod_roi_heads.py:123
Method
forward
(ctx, x, new_shape)
fewx/layers/misc.py:17
Method
forward
(ctx, x, new_shape)
fewx/layers/deform_conv.py:9
Method
forward
(self, x, return_offset=False)
fewx/layers/deform_conv.py:95
Method
forward
(self, input)
fewx/layers/naive_group_norm.py:54
Method
from_config
(cls, cfg, input_shape)
QA_FewDet/modeling/fsod/fsod_rpn.py:109
Method
from_config
(cls, cfg, input_shape: Dict[str, ShapeSpec])
QA_FewDet/modeling/fsod/fsod_rpn.py:218
Method
from_config
(cls, cfg, input_shape)
QA_FewDet/modeling/fsod/fsod_fast_rcnn.py:475
Method
from_config
(cls, cfg, input_shape)
fewx/modeling/fsod/fsod_rpn.py:109
Method
from_config
(cls, cfg, input_shape: Dict[str, ShapeSpec])
fewx/modeling/fsod/fsod_rpn.py:218
Method
from_config
(cls, cfg, input_shape)
fewx/modeling/fsod/fsod_fast_rcnn.py:475
Function
get_center
(mask)
QA_FewDet/layers/boundary.py:33
Function
get_center
(mask)
fewx/layers/boundary.py:33
Function
get_cfg
Get a copy of the default config. Returns: a detectron2 CfgNode instance.
QA_FewDet/config/config.py:4
Function
get_instances_contour_interior
(instances_mask)
QA_FewDet/layers/boundary.py:43
Function
get_instances_contour_interior
(instances_mask)
fewx/layers/boundary.py:43
Method
inference
Deprecated
QA_FewDet/modeling/fsod/fsod_fast_rcnn.py:362
Method
inference
Returns: list[Instances]: same as `fsod_fast_rcnn_inference`. list[Tensor]: same as `fsod_fast_rcnn_inference`.
QA_FewDet/modeling/fsod/fsod_fast_rcnn.py:538
Method
inference
Deprecated
fewx/modeling/fsod/fsod_fast_rcnn.py:362
Method
inference
Returns: list[Instances]: same as `fsod_fast_rcnn_inference`. list[Tensor]: same as `fsod_fast_rcnn_inference`.
fewx/modeling/fsod/fsod_fast_rcnn.py:538
Method
init_support_features
(self, evaluation_dataset, evaluation_shot, keepclasses, test_seeds)
QA_FewDet/modeling/fsod/fsod_rcnn.py:94
Function
interpolate
( input, size=None, scale_factor=None, mode="nearest", align_corners=None )
QA_FewDet/layers/misc.py:27
Function
interpolate
( input, size=None, scale_factor=None, mode="nearest", align_corners=None )
fewx/layers/misc.py:27
Function
lambda_forward
(*args)
QA_FewDet/utils/measures.py:170
Function
lambda_forward
(*args)
fewx/utils/measures.py:170
Method
losses
Args: predictions: return values of :meth:`forward()`. proposals (list[Instances]): proposals that match the features
QA_FewDet/modeling/fsod/fsod_fast_rcnn.py:526
Method
losses
Args: predictions: return values of :meth:`forward()`. proposals (list[Instances]): proposals that match the features
fewx/modeling/fsod/fsod_fast_rcnn.py:526
Function
main
(args)
fsod_train_net.py:186
Function
main
(args)
fsod_train_net_fewx.py:186
Function
make_conv
( in_channels, out_channels, kernel_size, stride=1, dilation=1 )
QA_FewDet/layers/conv_with_kaiming_uniform.py:11
Function
make_conv
( in_channels, out_channels, kernel_size, stride=1, dilation=1 )
fewx/layers/conv_with_kaiming_uniform.py:11
Function
measure_model
(model, x)
QA_FewDet/utils/measures.py:158
Function
measure_model
(model, x)
fewx/utils/measures.py:158
Function
ml_nms
Performs non-maximum suppression on a boxlist, with scores specified in a boxlist field via score_field. Args: boxlist (dete
QA_FewDet/layers/ml_nms.py:4
Function
ml_nms
Performs non-maximum suppression on a boxlist, with scores specified in a boxlist field via score_field. Args: boxlist (dete
fewx/layers/ml_nms.py:4
Function
optimizer_wgc_step
(self, closure=None)
QA_FewDet/solver/build.py:52
Function
optimizer_wgc_step
(self, closure=None)
fewx/solver/build.py:52
Method
predict_boxes_for_gt_classes
Returns: list[Tensor]: A list of Tensors of predicted boxes for GT classes in case of class-specific box head. El
QA_FewDet/modeling/fsod/fsod_fast_rcnn.py:560
Method
predict_boxes_for_gt_classes
Returns: list[Tensor]: A list of Tensors of predicted boxes for GT classes in case of class-specific box head. El
fewx/modeling/fsod/fsod_fast_rcnn.py:560
Method
process
(self, inputs, outputs)
QA_FewDet/evaluation/pascal_voc_evaluation.py:56
Method
process
Args: inputs: the inputs to a COCO model (e.g., GeneralizedRCNN). It is a list of dict. Each dict corresponds to
QA_FewDet/evaluation/coco_evaluation.py:114
Method
process
(self, inputs, outputs)
fewx/evaluation/pascal_voc_evaluation.py:56
Method
process
Args: inputs: the inputs to a COCO model (e.g., GeneralizedRCNN). It is a list of dict. Each dict corresponds to
fewx/evaluation/coco_evaluation.py:114
Function
reduce_sum
(tensor)
QA_FewDet/utils/comm.py:8
Function
reduce_sum
(tensor)
fewx/utils/comm.py:8
Method
reset
(self)
QA_FewDet/evaluation/pascal_voc_evaluation.py:53
Method
reset
(self)
QA_FewDet/evaluation/coco_evaluation.py:99
Method
reset
(self)
fewx/evaluation/pascal_voc_evaluation.py:53
Method
reset
(self)
fewx/evaluation/coco_evaluation.py:99
Method
reset_parameters
(self)
QA_FewDet/modeling/fsod/gcn_module.py:26
Function
vis_image
(im, bboxs, im_name)
datasets/pascal_voc/3_gen_support_pool_any_shot.py:26
Function
vis_image
(im, bboxs, im_name)
datasets/pascal_voc/2_gen_support_pool.py:26
Function
vis_image
(im, bboxs, im_name)
datasets/coco/3_gen_support_pool_any_shot_novel_class.py:25
← previous
next →
201–300 of 304, ranked by callers