MCPcopy Create free account

hub / github.com/Tete-Xiao/ReSim / functions

Functions67 in github.com/Tete-Xiao/ReSim

↓ 9 callersFunction_resnet
(arch, block, layers, pretrained, progress, **kwargs)
moco/models.py:309
↓ 9 callersMethodupdate
(self, val, n=1)
main_moco.py:392
↓ 4 callersMethod_make_layer
(self, block, planes, blocks, stride=1, dilate=False)
moco/models.py:239
↓ 4 callersFunctionconcat_all_gather
Performs all_gather operation on the provided tensors. *** Warning ***: torch.distributed.all_gather has no gradient.
moco/builder.py:230
↓ 3 callersMethod_batch_unshuffle_ddp
Undo batch shuffle. *** Only support DistributedDataParallel (DDP) model. ***
moco/builder.py:100
↓ 3 callersFunctionaccuracy
Computes the accuracy over the k top predictions for the specified values of k
main_moco.py:432
↓ 3 callersFunctionconv1x1
1x1 convolution
moco/models.py:31
↓ 3 callersFunctionconv3x3
3x3 convolution with padding
moco/models.py:25
↓ 2 callersMethod__init__
(self, block, layers, num_classes=1000, zero_init_residual=False, groups=1, width_per_group=6
moco/models.py:141
↓ 2 callersFunction_import_prroi_pooling
()
lib/prroi_pool/functional.py:21
↓ 2 callersMethodanchor_mapping
Args: anchor: (x0, y0, x1, y1) The coordinates of anchors in image q loc_q: (x0, y0, x1, y1) The cropped region of im
moco/datasets.py:132
↓ 2 callersFunctionc2_xavier_fill
Initialize `module.weight` using the "XavierFill" implemented in Caffe2. Also initializes `module.bias` to 0. Args: module (torch
moco/models.py:36
↓ 1 callersMethod_batch_shuffle_ddp
Batch shuffle, for making use of BatchNorm. *** Only support DistributedDataParallel (DDP) model. ***
moco/builder.py:72
↓ 1 callersMethod_dequeue_and_enqueue
(self, keys)
moco/builder.py:56
↓ 1 callersMethod_forward_impl
(self, x, return_mocodet_feats=False)
moco/models.py:263
↓ 1 callersMethod_get_batch_fmtstr
(self, num_batches)
main_moco.py:414
↓ 1 callersMethod_momentum_update_key_encoder
Momentum update of the key encoder
moco/builder.py:48
↓ 1 callersFunctionadjust_learning_rate
Decay the learning rate based on schedule
main_moco.py:420
↓ 1 callersMethodbackward
(ctx, grad_output)
lib/prroi_pool/functional.py:68
↓ 1 callersMethoddisplay
(self, batch)
main_moco.py:409
↓ 1 callersMethodget_params
Get parameters for ``crop`` for a random sized crop. Args: img (PIL Image): Image to be cropped. scale (tuple): range
moco/transforms.py:45
↓ 1 callersFunctionmain
()
main_moco.py:105
↓ 1 callersFunctionmain_worker
(gpu, ngpus_per_node, args)
main_moco.py:140
↓ 1 callersMethodreset
(self)
main_moco.py:386
↓ 1 callersFunctionsave_checkpoint
(state, is_best, filename='checkpoint.pth.tar')
main_moco.py:372
↓ 1 callersFunctionsetup
(args)
detection/train_net.py:40
↓ 1 callersFunctiontrain
(train_loader, model, criterion, optimizer, epoch, args)
main_moco.py:286
Method__call__
(self, x)
moco/loader.py:12
Method__call__
(self, x)
moco/loader.py:24
Method__call__
Args: img (PIL Image): Image to be cropped and resized. Returns: PIL Image: Randomly cropped and resized imag
moco/transforms.py:86
Method__call__
Args: img (PIL Image): Image to be flipped. Returns: PIL Image: Randomly flipped image.
moco/transforms.py:115
Method__getitem__
Args: index (int): Index Returns: tuple: (sample, target) where target is class_index of the target class.
moco/datasets.py:51
Method__init__
(self, name, fmt=':f')
main_moco.py:381
Method__init__
(self, num_batches, meters, prefix="")
main_moco.py:404
Method__init__
(self, pooled_height, pooled_width, spatial_scale)
lib/prroi_pool/prroi_pool.py:20
Method__init__
(self, base_transform)
moco/loader.py:9
Method__init__
(self, sigma=[.1, 2.])
moco/loader.py:21
Method__init__
(self, size, scale=(0.08, 1.0), ratio=(3. / 4., 4. / 3.), interpolation=Image.BILINEAR)
moco/transforms.py:32
Method__init__
(self, p=0.5)
moco/transforms.py:112
Method__init__
(self, inplanes, planes, stride=1, downsample=None, groups=1, base_width=64, dilation=1, norm
moco/models.py:53
Method__init__
(self, inplanes, planes, stride=1, downsample=None, groups=1, base_width=64, dilation=1, norm
moco/models.py:99
Method__init__
(self, root, transform=None, target_transform=None, crop_transform=None, flip_transform=None,
moco/datasets.py:37
Method__init__
dim: feature dimension (default: 128) K: queue size; number of negative keys (default: 65536) m: moco momentum of updating ke
moco/builder.py:12
Method__repr__
(self)
moco/transforms.py:97
Method__repr__
(self)
moco/transforms.py:126
Method__str__
(self)
main_moco.py:398
Method_build_res5_block
(self, cfg)
detection/train_net.py:20
Methodbuild_evaluator
(cls, cfg, dataset_name, output_folder=None)
detection/train_net.py:30
Methodextra_repr
(self)
lib/prroi_pool/prroi_pool.py:30
Methodforward
(self, features, rois)
lib/prroi_pool/prroi_pool.py:27
Methodforward
(ctx, features, rois, pooled_height, pooled_width, spatial_scale)
lib/prroi_pool/functional.py:43
Methodforward
(self, x)
moco/models.py:71
Methodforward
(self, x)
moco/models.py:116
Methodforward
(self, x, return_mocodet_feats=False)
moco/models.py:305
Methodforward
Input: im_q: a batch of query images im_k: a batch of key images Output: logits, targets
moco/builder.py:118
Functionmain
(args)
detection/train_net.py:49
Functionprint_pass
(*args)
main_moco.py:145
Functionresnet101
r"""ResNet-101 model from `"Deep Residual Learning for Image Recognition" <https://arxiv.org/pdf/1512.03385.pdf>`_ Args: pretrained (b
moco/models.py:351
Functionresnet152
r"""ResNet-152 model from `"Deep Residual Learning for Image Recognition" <https://arxiv.org/pdf/1512.03385.pdf>`_ Args: pretrained (b
moco/models.py:362
Functionresnet18
r"""ResNet-18 model from `"Deep Residual Learning for Image Recognition" <https://arxiv.org/pdf/1512.03385.pdf>`_ Args: pretrained (bo
moco/models.py:318
Functionresnet34
r"""ResNet-34 model from `"Deep Residual Learning for Image Recognition" <https://arxiv.org/pdf/1512.03385.pdf>`_ Args: pretrained (bo
moco/models.py:329
Functionresnet50
r"""ResNet-50 model from `"Deep Residual Learning for Image Recognition" <https://arxiv.org/pdf/1512.03385.pdf>`_ Args: pretrained (bo
moco/models.py:340
Functionresnext101_32x8d
r"""ResNeXt-101 32x8d model from `"Aggregated Residual Transformation for Deep Neural Networks" <https://arxiv.org/pdf/1611.05431.pdf>`_ Args:
moco/models.py:386
Functionresnext50_32x4d
r"""ResNeXt-50 32x4d model from `"Aggregated Residual Transformation for Deep Neural Networks" <https://arxiv.org/pdf/1611.05431.pdf>`_ Args:
moco/models.py:373
Functionwide_resnet101_2
r"""Wide ResNet-101-2 model from `"Wide Residual Networks" <https://arxiv.org/pdf/1605.07146.pdf>`_ The model is the same as ResNet except for
moco/models.py:415
Functionwide_resnet50_2
r"""Wide ResNet-50-2 model from `"Wide Residual Networks" <https://arxiv.org/pdf/1605.07146.pdf>`_ The model is the same as ResNet except for
moco/models.py:399
Functionzeros
lib/prroi_pool/src/prroi_pooling_gpu.c:28