MCPcopy Create free account

hub / github.com/cchen-cc/SFDA-DPL / functions

Functions215 in github.com/cchen-cc/SFDA-DPL

↓ 12 callersMethodtrain
(self)
train_process/Trainer.py:308
↓ 8 callersMethod_make_layer
(self, block, planes, blocks, stride=1, dilation=1, new_level=True, residual=True, BatchNo
networks/backbone/drn.py:172
↓ 8 callersFunctionget_largest_fillhole
(binary)
utils/Utils.py:102
↓ 8 callersFunctionget_lr
(optimizer)
train_process/Trainer.py:23
↓ 6 callersMethodget
(self)
networks/sync_batchnorm/comm.py:32
↓ 5 callersFunction_unsqueeze_ft
add new dementions at the front and the tail
networks/sync_batchnorm/batchnorm.py:29
↓ 5 callersFunctionconstruct_color_img
(prob_per_slice)
utils/Utils.py:24
↓ 5 callersFunctiondice_coefficient_numpy
Compute the Dice coefficient between two binary segmentation. Dice coefficient is defined as here: https://en.wikipedia.org/wiki/S%C3%B8rense
utils/metrics.py:16
↓ 4 callersMethod__init__
(self, )
networks/GAN.py:9
↓ 4 callersMethod_make_conv_layers
(self, channels, convs, stride=1, dilation=1, BatchNorm=None)
networks/backbone/drn.py:196
↓ 4 callersMethod_make_layer
(self, block, planes, blocks, stride=1, dilation=1, BatchNorm=None)
networks/backbone/drn.py:269
↓ 4 callersFunctionnorm_layer
(x)
networks/models.py:32
↓ 3 callersMethod__init__
Initialize the GANLoss class. Parameters: gan_mode (str) - - the type of GAN objective. It currently supports vanilla, lsgan, an
networks/models.py:202
↓ 3 callersMethod__init__
(self, block, layers, arch='D', channels=(16, 32, 64, 128, 256, 512, 512, 512),
networks/backbone/drn.py:104
↓ 3 callersMethod_make_layer
(self, block, planes, blocks, stride=1, dilation=1, BatchNorm=None)
networks/backbone/resnet.py:77
↓ 3 callersMethodput
(self, result)
networks/sync_batchnorm/comm.py:26
↓ 2 callersMethod__init__
(self, inplanes, planes, reps, stride=1, dilation=1, BatchNorm=None, start_with_relu=True, gr
networks/backbone/xception.py:35
↓ 2 callersMethod_check_input_dim
(self, input)
networks/sync_batchnorm/batchnorm.py:172
↓ 2 callersFunction_sum_ft
sum over the first and last dimention
networks/sync_batchnorm/batchnorm.py:24
↓ 2 callersFunctionbuild_backbone
(backbone, output_stride, BatchNorm)
networks/backbone/__init__.py:3
↓ 2 callersFunctionbuild_decoder
(num_classes, backbone, BatchNorm)
networks/decoder.py:68
↓ 2 callersFunctionconv3x3
(in_planes, out_planes, stride=1, padding=1, dilation=1)
networks/backbone/drn.py:20
↓ 2 callersFunctionget_norm_layer
Return a normalization layer Parameters: norm_type (str) -- the name of the normalization layer: batch | instance | none For BatchNo
networks/models.py:18
↓ 2 callersFunctionhd_numpy
(binary_segmentation, binary_gt_label, get_hd)
utils/metrics.py:69
↓ 2 callersFunctioninit_net
Initialize a network: 1. register CPU/GPU device (with multi-GPU support); 2. initialize the network weights Parameters: net (network)
networks/models.py:101
↓ 2 callersFunctionnormalize_ent
Normalizate ent to 0 - 1 :param ent: :return:
utils/Utils.py:35
↓ 1 callersFunctionResNet101
Constructs a ResNet-101 model. Args: pretrained (bool): If True, returns a model pre-trained on ImageNet
networks/backbone/resnet.py:148
↓ 1 callersMethod__init__
(self, weight=None, size_average=None, ignore_index=-100, reduce=None, reduction='mean')
utils/losses.py:13
↓ 1 callersMethod__init__
(self, backbone, output_stride, BatchNorm)
networks/aspp_eval.py:35
↓ 1 callersMethod__init__
(self, backbone, output_stride, BatchNorm)
networks/aspp.py:35
↓ 1 callersMethod__init__
(self, output_stride=8, BatchNorm=None, width_mult=1., pretrained=True)
networks/backbone/mobilenet.py:71
↓ 1 callersMethod__init__
(self, block, layers, output_stride, BatchNorm, pretrained=True)
networks/backbone/resnet.py:47
↓ 1 callersMethod__init__
Args: master_callback: a callback to be invoked after having collected messages from slave devices.
networks/sync_batchnorm/comm.py:66
↓ 1 callersMethod_compute_mean_std
Compute the mean and standard-deviation with sum and square-sum. This method also maintains the moving average on the master device.
networks/sync_batchnorm/batchnorm.py:113
↓ 1 callersMethod_init_weight
(self)
networks/aspp_eval.py:23
↓ 1 callersMethod_init_weight
(self)
networks/aspp_eval.py:83
↓ 1 callersMethod_init_weight
(self)
networks/decoder.py:57
↓ 1 callersMethod_init_weight
(self)
networks/aspp.py:23
↓ 1 callersMethod_init_weight
(self)
networks/aspp.py:83
↓ 1 callersMethod_init_weight
(self)
networks/backbone/xception.py:234
↓ 1 callersMethod_init_weight
(self)
networks/backbone/drn.py:159
↓ 1 callersMethod_init_weight
(self)
networks/backbone/drn.py:257
↓ 1 callersMethod_init_weight
(self)
networks/backbone/resnet.py:126
↓ 1 callersMethod_initialize_weights
(self)
networks/GAN.py:24
↓ 1 callersMethod_initialize_weights
(self)
networks/GAN.py:69
↓ 1 callersMethod_initialize_weights
(self)
networks/GAN.py:102
↓ 1 callersMethod_initialize_weights
(self)
networks/GAN.py:134
↓ 1 callersMethod_initialize_weights
(self)
networks/GAN.py:166
↓ 1 callersMethod_initialize_weights
(self)
networks/backbone/mobilenet.py:133
↓ 1 callersMethod_load_pretrained_model
(self)
networks/backbone/xception.py:247
↓ 1 callersMethod_load_pretrained_model
(self)
networks/backbone/mobilenet.py:123
↓ 1 callersMethod_load_pretrained_model
(self)
networks/backbone/resnet.py:138
↓ 1 callersMethod_make_MG_unit
(self, block, planes, blocks, stride=1, dilation=1, BatchNorm=None)
networks/backbone/resnet.py:94
↓ 1 callersFunctionbuild_aspp
(backbone, output_stride, BatchNorm)
networks/aspp_eval.py:97
↓ 1 callersFunctionbuild_aspp
(backbone, output_stride, BatchNorm)
networks/aspp.py:97
↓ 1 callersFunctionconv_bn
(inp, oup, stride, BatchNorm)
networks/backbone/mobilenet.py:8
↓ 1 callersMethoddb_root_dir
(database)
mypath.py:3
↓ 1 callersFunctiondice_coeff_2label
This definition generalize to real valued pred and target vector. This should be differentiable. pred: tensor with first dimension as batch
utils/metrics.py:100
↓ 1 callersFunctiondrn_a_50
(BatchNorm, pretrained=True)
networks/backbone/drn.py:300
↓ 1 callersFunctionfixed_padding
(inputs, kernel_size, dilation)
networks/backbone/xception.py:8
↓ 1 callersFunctionfixed_padding
(inputs, kernel_size, dilation)
networks/backbone/mobilenet.py:16
↓ 1 callersMethodfixed_re_parametrization_trick
(dist, num_samples)
utils/losses.py:26
↓ 1 callersMethodfreeze_bn
(self)
networks/deeplabv3_eval.py:39
↓ 1 callersMethodfreeze_bn
(self)
networks/deeplabv3.py:39
↓ 1 callersMethodget_target_tensor
Create label tensors with the same size as the input. Parameters: prediction (tensor) - - tpyically the prediction from a discrim
networks/models.py:226
↓ 1 callersFunctioninit_weights
Initialize network weights. Parameters: net (network) -- network to be initialized init_type (str) -- the name of an initializa
networks/models.py:67
↓ 1 callersFunctionmain
()
train_source.py:22
↓ 1 callersMethodregister_slave
Register an slave device. Args: identifier: an identifier, usually is the device id. Returns: a `SlavePipe` objec
networks/sync_batchnorm/comm.py:82
↓ 1 callersMethodrun_master
Main entry for the master device in each forward pass. The messages were first collected from each devices (including the master devi
networks/sync_batchnorm/comm.py:97
↓ 1 callersMethodrun_slave
(self, msg)
networks/sync_batchnorm/comm.py:49
↓ 1 callersFunctionto_multilabel
(pre_mask, classes = 2)
dataloaders/custom_transforms.py:15
↓ 1 callersMethodtrain_epoch
(self)
train_process/Trainer.py:191
↓ 1 callersMethodvalidate
(self)
train_process/Trainer.py:95
FunctionDiceLoss
in tensor fomate :param input: :param target: :return:
utils/metrics.py:117
Method__call__
Calculate loss given Discriminator's output and grount truth labels. Parameters: prediction (tensor) - - tpyically the prediction
networks/models.py:243
Method__call__
(self, sample)
dataloaders/custom_transforms.py:23
Method__call__
(self, sample)
dataloaders/custom_transforms.py:50
Method__call__
(self, sample, s_l=0.02, s_h=0.06, r_1=0.3, r_2=0.6, v_l=0, v_h=255, pixel_level=False)
dataloaders/custom_transforms.py:66
Method__call__
(self, sample)
dataloaders/custom_transforms.py:106
Method__call__
(self, sample)
dataloaders/custom_transforms.py:161
Method__call__
(self, sample)
dataloaders/custom_transforms.py:193
Method__call__
(self, sample)
dataloaders/custom_transforms.py:210
Method__call__
(self, sample)
dataloaders/custom_transforms.py:231
Method__call__
(self, sample)
dataloaders/custom_transforms.py:253
Method__call__
(self, sample)
dataloaders/custom_transforms.py:277
Method__call__
(self, sample)
dataloaders/custom_transforms.py:321
Method__call__
(self, sample)
dataloaders/custom_transforms.py:340
Method__call__
(self, sample)
dataloaders/custom_transforms.py:363
Method__call__
(self, sample)
dataloaders/custom_transforms.py:380
Method__call__
(self, sample)
dataloaders/custom_transforms.py:403
Method__call__
(self, mask)
dataloaders/custom_transforms.py:418
Method__call__
(self, sample)
dataloaders/custom_transforms.py:444
Method__call__
(self, sample)
dataloaders/custom_transforms.py:479
Method__call__
(self, sample)
dataloaders/custom_transforms.py:493
Method__data_parallel_replicate__
(self, ctx, copy_id)
networks/sync_batchnorm/batchnorm.py:80
Method__getitem__
(self, index)
dataloaders/fundus_dataloader.py:54
Method__getstate__
(self)
networks/sync_batchnorm/comm.py:76
Method__init__
(self, num_mc_samples: int = 1)
utils/losses.py:21
Method__init__
(self, cuda, model_gen, model_dis, model_uncertainty_dis, optimizer_gen, optimizer_dis, optimizer_uncertainty_
train_process/Trainer.py:29
Method__init__
(self, inplanes, planes, kernel_size, padding, dilation, BatchNorm)
networks/aspp_eval.py:8
next →1–100 of 215, ranked by callers