MCPcopy Create free account

hub / github.com/UBC-CIC/COVID19-L3-Net / functions

Functions166 in github.com/UBC-CIC/COVID19-L3-Net

Method__iter__
(self)
src/datasets/transformers/micnn_augmentor.py:164
Method__len__
(self)
src/datasets/open_source.py:99
Method__next__
(self)
src/datasets/transformers/micnn_augmentor.py:167
Functionapply_transform
(split, image, label=None, transform_name='basic', exp_dict=None)
src/datasets/transformers/__init__.py:13
Functioncollate_fn
(batch)
src/utils.py:3
Functioncompute_loss
(loss_name, logits, labels)
src/models/losses/__init__.py:6
Functionconfusion_binary_class
(prediction, truth)
src/models/metrics.py:108
Functiondice_loss
Dice loss. :param input: The input (predicted) :param target: The target (ground truth) :returns: the Dice score between 0 and 1.
src/models/losses/dice_loss.py:5
Methodforward
(self, x)
src/models/base_networks/unet2d.py:21
Methodforward
(self, x)
src/models/base_networks/unet2d.py:35
Methodforward
(self, x)
src/models/base_networks/unet2d.py:73
Methodforward
(self, x)
src/models/base_networks/unet2d.py:96
Methodforward
(self, x)
src/models/base_networks/segmentation_models_pytorch/encoders/xception.py:40
Methodforward
(self, x)
src/models/base_networks/segmentation_models_pytorch/encoders/inceptionv4.py:66
Methodforward
(self, x)
src/models/base_networks/segmentation_models_pytorch/encoders/inceptionresnetv2.py:67
Methodforward
(self, x)
src/models/base_networks/segmentation_models_pytorch/encoders/timm_efficientnet.py:75
Methodforward
(self, x)
src/models/base_networks/segmentation_models_pytorch/encoders/senet.py:59
Methodforward
(self, x)
src/models/base_networks/segmentation_models_pytorch/encoders/dpn.py:56
Methodforward
(self, x)
src/models/base_networks/segmentation_models_pytorch/encoders/densenet.py:41
Methodforward
(self, x)
src/models/base_networks/segmentation_models_pytorch/encoders/densenet.py:72
Methodforward
(self, x)
src/models/base_networks/segmentation_models_pytorch/encoders/mobilenet.py:51
Methodforward
(self, x)
src/models/base_networks/segmentation_models_pytorch/encoders/vgg.py:66
Methodforward
(self, x)
src/models/base_networks/segmentation_models_pytorch/encoders/efficientnet.py:55
Methodforward
(self, x)
src/models/base_networks/segmentation_models_pytorch/encoders/resnet.py:56
Methodforward
(self, x)
src/models/base_networks/segmentation_models_pytorch/pspnet/decoder.py:19
Methodforward
(self, x)
src/models/base_networks/segmentation_models_pytorch/pspnet/decoder.py:34
Methodforward
(self, *features)
src/models/base_networks/segmentation_models_pytorch/pspnet/decoder.py:66
Methodforward
(self, x)
src/models/base_networks/segmentation_models_pytorch/base/modules.py:62
Methodforward
(self, x)
src/models/base_networks/segmentation_models_pytorch/base/modules.py:72
Methodforward
(self, x)
src/models/base_networks/segmentation_models_pytorch/base/modules.py:101
Methodforward
(self, x)
src/models/base_networks/segmentation_models_pytorch/base/modules.py:117
Methodforward
(self, x)
src/models/base_networks/segmentation_models_pytorch/base/modules.py:122
Methodget_avg_score
(self)
src/models/metrics.py:69
Functionget_base
(base_name, exp_dict, n_classes)
src/models/base_networks/__init__.py:5
Functionget_class_map
(n_classes)
src/datasets/transformers/trans_utils.py:8
Functionget_dataset
(dataset_dict, split, datadir, exp_dict, dataset_size=None)
src/datasets/__init__.py:20
Functionget_encoder_names
()
src/models/base_networks/segmentation_models_pytorch/encoders/__init__.py:47
Functionget_model
(model_dict, exp_dict=None, train_set=None)
src/models/__init__.py:9
Functionget_normalization_stats
(windows)
src/datasets/transformers/trans_utils.py:63
Functionget_preprocessing_fn
(encoder_name, pretrained="imagenet")
src/models/base_networks/segmentation_models_pytorch/encoders/__init__.py:65
Functionget_thresholds_stats
(windows)
src/datasets/transformers/trans_utils.py:42
Functioninitialize_decoder
(module)
src/models/base_networks/segmentation_models_pytorch/base/initialization.py:4
Functioninitialize_head
(module)
src/models/base_networks/segmentation_models_pytorch/base/initialization.py:22
Methodload_state_dict
(self, state_dict)
src/models/base_networks/segmentation_models_pytorch/encoders/xception.py:50
Methodload_state_dict
(self, state_dict, **kwargs)
src/models/base_networks/segmentation_models_pytorch/encoders/inceptionv4.py:77
Methodload_state_dict
(self, state_dict, **kwargs)
src/models/base_networks/segmentation_models_pytorch/encoders/inceptionresnetv2.py:78
Methodload_state_dict
(self, state_dict, **kwargs)
src/models/base_networks/segmentation_models_pytorch/encoders/timm_efficientnet.py:85
Methodload_state_dict
(self, state_dict, **kwargs)
src/models/base_networks/segmentation_models_pytorch/encoders/senet.py:69
Methodload_state_dict
(self, state_dict, **kwargs)
src/models/base_networks/segmentation_models_pytorch/encoders/dpn.py:70
Methodload_state_dict
(self, state_dict)
src/models/base_networks/segmentation_models_pytorch/encoders/densenet.py:87
Methodload_state_dict
(self, state_dict, **kwargs)
src/models/base_networks/segmentation_models_pytorch/encoders/mobilenet.py:61
Methodload_state_dict
(self, state_dict, **kwargs)
src/models/base_networks/segmentation_models_pytorch/encoders/efficientnet.py:79
Methodload_state_dict
(self, state_dict, **kwargs)
src/models/base_networks/segmentation_models_pytorch/encoders/resnet.py:66
Methodmake_dilated
(self, stage_list, dilation_list)
src/models/base_networks/segmentation_models_pytorch/encoders/xception.py:25
Methodmake_dilated
(self, stage_list, dilation_list)
src/models/base_networks/segmentation_models_pytorch/encoders/inceptionv4.py:52
Methodmake_dilated
(self, stage_list, dilation_list)
src/models/base_networks/segmentation_models_pytorch/encoders/_base.py:35
Methodmake_dilated
(self, stage_list, dilation_list)
src/models/base_networks/segmentation_models_pytorch/encoders/inceptionresnetv2.py:53
Methodmake_dilated
(self, stage_list, dilation_list)
src/models/base_networks/segmentation_models_pytorch/encoders/densenet.py:57
Methodmake_dilated
(self, stage_list, dilation_list)
src/models/base_networks/segmentation_models_pytorch/encoders/vgg.py:51
Methodout_channels
Return channels dimensions for each tensor of forward output of encoder
src/models/base_networks/segmentation_models_pytorch/encoders/_base.py:16
Functionpatch_first_conv
Change first convolution layer input channels. In case: in_channels == 1 or in_channels == 2 -> reuse original weights in_channels
src/models/base_networks/segmentation_models_pytorch/encoders/_utils.py:5
Methodpredict
Inference method. Switch model to `eval` mode, call `.forward(x)` with `torch.no_grad()` Args: x: 4D torch tensor with shape (bat
src/models/base_networks/segmentation_models_pytorch/base/model.py:26
Functionpreprocess_input
( x, mean=None, std=None, input_space="RGB", input_range=None, **kwargs )
src/models/base_networks/segmentation_models_pytorch/encoders/_preprocessing.py:4
Functionreplace_strides_with_dilation
Patch Conv2d modules replacing strides with dilation
src/models/base_networks/segmentation_models_pytorch/encoders/_utils.py:39
Methodset_thread_id
(self, thread_id)
src/datasets/transformers/micnn_augmentor.py:172
Methodval_on_batch
(self, model, batch)
src/models/metrics.py:52
← previous101–166 of 166, ranked by callers