MCPcopy Create free account

hub / github.com/Hawkeye-FineGrained/Hawkeye / functions

Functions503 in github.com/Hawkeye-FineGrained/Hawkeye

↓ 115 callersMethodsize
(self)
model/methods/ProtoTree/leaf.py:86
↓ 61 callersMethodupdate
(self, val, n=1)
utils/utils.py:45
↓ 57 callersMethodto_device
(self, m, parallel=False)
test.py:97
↓ 31 callersFunctionaccuracy
Computes top-k accuracy, from predicted and true labels. :param scores: scores from the model :param targets: true labels :param k:
utils/utils.py:52
↓ 22 callersMethodtrain
(self)
train.py:241
↓ 17 callersMethodget_model_module
get `model` in single-gpu mode or `model.module` in multi-gpu mode.
test.py:107
↓ 16 callersMethodbackward
(ctx, grad_output)
model/methods/MPNCOV.py:167
↓ 9 callersMethod__init__
(self, num_classes, block, layers)
model/methods/APCNN.py:347
↓ 9 callersFunction_resnet
( arch: str, block: Type[Union[BasicBlock, Bottleneck]], layers: List[int], pr
model/backbone/resnet.py:255
↓ 8 callersFunction_vgg
(arch: str, cfg: str, batch_norm: bool, pretrained: bool, progress: bool, **kwargs: Any)
model/backbone/vgg.py:81
↓ 7 callersFunctionresnet50
r"""ResNet-50 model from `"Deep Residual Learning for Image Recognition" <https://arxiv.org/pdf/1512.03385.pdf>`_. Args: pretrained (
model/backbone/resnet.py:297
↓ 6 callersFunctionkernel_generate
(theta, size, offset=None)
model/methods/S3N.py:47
↓ 6 callersFunctionl2_norm_v2
(input)
model/methods/MGE_CNN/MGE.py:11
↓ 5 callersMethodto_device
(self, m, parallel=False)
train.py:220
↓ 4 callersMethod__init__
(self, block, layers, num_classes=1000, num_parts=32)
model/methods/Interp_Parts.py:253
↓ 4 callersMethod_make_layer
(self, block: Type[Union[BasicBlock, Bottleneck]], planes: int, blocks: int, stride: int =
model/backbone/resnet.py:208
↓ 4 callersMethod_make_layer
(self, block, planes, blocks, stride=1)
model/methods/APCNN.py:427
↓ 4 callersMethod_make_layer
(self, block, planes, blocks, meflag=False, stride=1, nparts=1, reduction=1)
model/methods/CrossX.py:178
↓ 4 callersMethod_make_layer
(self, block, planes, blocks, stride=1)
model/methods/NTS_Net/resnet.py:118
↓ 4 callersMethodindex
(self)
model/methods/ProtoTree/node.py:14
↓ 4 callersMethodload
(directory_path: str)
model/methods/ProtoTree/prototree.py:268
↓ 4 callersMethodtick
(self, from_start=False)
utils/utils.py:85
↓ 3 callersMethod__init__
(self, block, layers, nparts=1, meflag=False, num_classes=1000)
model/methods/CrossX.py:128
↓ 3 callersMethod_make_layer
(self, block, planes, blocks, stride=1)
model/methods/Interp_Parts.py:316
↓ 3 callersFunctionconv1x1
1x1 convolution
model/backbone/resnet.py:35
↓ 3 callersFunctionconv3x3
3x3 convolution with padding
model/backbone/resnet.py:29
↓ 3 callersMethoddistribution
(self)
model/methods/ProtoTree/leaf.py:61
↓ 3 callersMethodget_att_roi
generation multi-leve ROIs upon spatial attention masks with NMS method
model/methods/APCNN.py:444
↓ 3 callersMethodreport
(self, epoch, split='train')
train.py:357
↓ 3 callersFunctionresnet101
r"""ResNet-101 model from `"Deep Residual Learning for Image Recognition" <https://arxiv.org/pdf/1512.03385.pdf>`_. Args: pretrained
model/backbone/resnet.py:310
↓ 3 callersMethodsave
(self, directory_path: str)
model/methods/ProtoTree/prototree.py:248
↓ 3 callersMethodsize
(self)
model/methods/ProtoTree/prototree.py:210
↓ 2 callersMethodConcate
(self, f3, f4, f5)
model/methods/APCNN.py:533
↓ 2 callersMethod__init__
(self, size)
dataset/transforms.py:244
↓ 2 callersMethod__init__
( self, block: Type[Union[BasicBlock, Bottleneck]], layers: List[int],
model/backbone/resnet.py:149
↓ 2 callersMethod__init__
(self, in_channels, out_channels=1024, feature_shape=(7, 7), num_attention=2)
model/methods/OSME.py:28
↓ 2 callersMethod__init__
(self, config)
model/methods/S3N.py:118
↓ 2 callersMethod__init__
(self, config)
model/methods/CIN.py:86
↓ 2 callersMethod__init__
(self, block, layers, num_classes=1000)
model/methods/NTS_Net/resnet.py:95
↓ 2 callersMethod_pair
(x)
model/methods/S3N.py:38
↓ 2 callersFunctionconv3x3
3x3 convolution with padding
model/methods/Interp_Parts.py:132
↓ 2 callersFunctionconv3x3
3x3 convolution with padding
model/methods/APCNN.py:93
↓ 2 callersFunctionconv3x3
3x3 convolution with padding
model/methods/NTS_Net/resnet.py:17
↓ 2 callersMethodcreate_grid
(self, x)
model/methods/S3N.py:169
↓ 2 callersMethodcrop_image
(self, image, cropnum)
dataset/dataset_DCL.py:84
↓ 2 callersMethodgenerate_sketch_matrix
Return a sparse matrix used for tensor sketch operation in compact bilinear pooling Args: rand_h: an 1D numpy arr
model/methods/CBCNN.py:138
↓ 2 callersFunctionget_bbox
(x, conv5, layer_weights, rate=0.3, img_size=448)
model/methods/MGE_CNN/MGE.py:48
↓ 2 callersMethodget_params
(self, prefix='extractor')
model/methods/MGE_CNN/MGE.py:225
↓ 2 callersFunctionhard_nms
(cdds, topn=10, iou_thresh=0.25)
model/methods/NTS_Net/anchors.py:63
↓ 2 callersFunctionload_state_dict
(model, state_dict)
model/utils.py:24
↓ 2 callersMethodon_end_epoch
(self, config)
train.py:427
↓ 2 callersMethodon_end_forward
(self, config)
train.py:433
↓ 2 callersMethodon_start_epoch
(self, config)
train.py:423
↓ 2 callersMethodon_start_forward
(self, config)
train.py:430
↓ 2 callersMethodreset
(self)
utils/utils.py:39
↓ 2 callersMethodreset_average_meters
(self)
train.py:154
↓ 2 callersMethodsave_checkpoint
(self)
train.py:378
↓ 2 callersMethodsave_model
(self, name=None)
train.py:369
↓ 2 callersFunctionsetup_config
Only load from one single yaml file. :return: CfgNode
config.py:5
↓ 2 callersMethodswap
(self, img, crop)
dataset/transforms.py:259
↓ 2 callersMethodupdate_performance_meter
(self, split)
train.py:350
↓ 2 callersMethodvalidate
(self)
train.py:327
↓ 2 callersFunctionvgg16
r"""VGG 16-layer model (configuration "D") `"Very Deep Convolutional Networks For Large-Scale Image Recognition" <https://arxiv.org/pdf/1409.1556.
model/backbone/vgg.py:142
↓ 1 callersFunctionGaussianKernel
Generate a gaussian blur kernel based on the given radius and std. Args ---------- radius: int Radius of the Gaussian kernel
model/loss/InterpParts_loss.py:34
↓ 1 callersFunctionShapingLoss
Wasserstein shaping loss for Bernoulli distribution. Args ---------- assign: torch.cuda.FloatTensor, [batch_size, num_parts, height,
model/loss/InterpParts_loss.py:83
↓ 1 callersMethod__init__
(self)
utils/utils.py:81
↓ 1 callersMethod__init__
(self, config)
model/methods/CBCNN.py:15
↓ 1 callersMethod__init__
(self, config)
model/methods/BCNN.py:33
↓ 1 callersMethod__init__
(self, config)
model/methods/MPNCOV.py:26
↓ 1 callersMethod__init__
(self, config)
model/methods/NTS_Net/NTSNet.py:12
↓ 1 callersMethod__init__
(self, in_panel, out_panel, bias=False)
model/methods/MGE_CNN/MGE.py:19
↓ 1 callersMethod__init__
(self, config)
model/loss/CrossX_loss.py:33
↓ 1 callersMethod__init__
(self, config)
model/loss/MAMC_loss.py:7
↓ 1 callersMethod_cov_pool
(self, x)
model/methods/MPNCOV.py:85
↓ 1 callersMethod_forward_impl
(self, x: Tensor)
model/backbone/resnet.py:233
↓ 1 callersFunction_get_default_config
()
config.py:28
↓ 1 callersMethod_init_tree
(self, num_classes, args)
model/methods/ProtoTree/prototree.py:271
↓ 1 callersMethod_init_weight
(self)
model/methods/MPNCOV.py:77
↓ 1 callersMethod_on_end_epoch
(self)
train.py:404
↓ 1 callersMethod_on_end_forward
(self)
train.py:416
↓ 1 callersMethod_on_start_epoch
(self)
train.py:398
↓ 1 callersMethod_on_start_forward
(self)
train.py:410
↓ 1 callersFunction_parse_args
()
config.py:21
↓ 1 callersMethod_set_parents
(self)
model/methods/ProtoTree/prototree.py:291
↓ 1 callersMethod_sqrtm
(self, x)
model/methods/MPNCOV.py:88
↓ 1 callersMethod_triuvec
(self, x)
model/methods/MPNCOV.py:91
↓ 1 callersMethodbatch_training
(self, data)
train.py:310
↓ 1 callersMethodbatch_validate
(self, data)
train.py:340
↓ 1 callersMethodbatch_validate
(self, data)
test.py:133
↓ 1 callersMethoddo_scheduler_step
(self)
train.py:347
↓ 1 callersFunctionfreeze
(m)
model/utils.py:31
↓ 1 callersMethodg
(self, xs: torch.Tensor, **kwargs)
model/methods/ProtoTree/branch.py:81
↓ 1 callersFunctiongenerate_anchors_single_pyramid
scales: 1D array of anchor sizes in pixels. Example: [32, 64, 128] ratios: 1D array of anchor ratios of width/height. Example: [0.5, 1, 2]
model/methods/APCNN.py:306
↓ 1 callersFunctiongenerate_default_anchor_maps
generate default anchor :param anchors_setting: all informations of anchors :param input_shape: shape of input images, e.g. (h, w) :
model/methods/NTS_Net/anchors.py:10
↓ 1 callersMethodgenerate_map
(self, input_x, class_response_maps, p)
model/methods/S3N.py:204
↓ 1 callersMethodget_average_meters
(self)
train.py:148
↓ 1 callersMethodget_average_meters
(self)
test.py:60
↓ 1 callersMethodget_collate_fn
(self)
train.py:185
↓ 1 callersMethodget_collate_fn
(self)
test.py:86
↓ 1 callersMethodget_criterion
(self, config)
train.py:211
next →1–100 of 503, ranked by callers