MCPcopy Create free account

hub / github.com/dbpprt/pytorch-licenseplate-segmentation / functions

Functions87 in github.com/dbpprt/pytorch-licenseplate-segmentation

↓ 5 callersFunctionmean
nanmean compatible with generators.
lovasz_losses.py:232
↓ 3 callersFunctionflatten_binary_scores
Flattens predictions in the batch (binary case) Remove labels equal to 'ignore'
lovasz_losses.py:114
↓ 2 callersFunctioncat_list
(images, fill_value=0)
utils.py:148
↓ 2 callersFunctioncriterion
(inputs, target)
train.py:84
↓ 2 callersFunctionevaluate
(model, data_loader, device, epoch = None, writer = None, print_freq = 1)
train.py:53
↓ 2 callersFunctionflatten_probas
Flattens predictions in the batch
lovasz_losses.py:202
↓ 2 callersFunctionget_dataset
(image_set, transform, dataset_dir)
train.py:25
↓ 2 callersMethodget_params
(width, height, distortion_scale)
transforms.py:49
↓ 2 callersFunctionget_transform
(train)
train.py:29
↓ 2 callersMethodlog_every
(self, iterable, print_freq, header=None)
utils.py:94
↓ 2 callersFunctionlovasz_grad
Computes gradient of the Lovasz extension w.r.t sorted errors See Alg. 1 in paper
lovasz_losses.py:18
↓ 2 callersFunctionlovasz_hinge_flat
Binary Lovasz hinge loss logits: [P] Variable, logits at each prediction (between -\infty and +\infty) labels: [P] Tensor, binary gro
lovasz_losses.py:94
↓ 2 callersFunctionlovasz_softmax_flat
Multi-class Lovasz-Softmax loss probas: [P, C] Variable, class probabilities at each prediction (between 0 and 1) labels: [P] Tensor,
lovasz_losses.py:171
↓ 2 callersFunctionpad_if_smaller
(img, size, fill=0)
transforms.py:11
↓ 2 callersMethodstate_dict
r"""Returns the state of SWA as a :class:`dict`. It contains three entries: * opt_state - a dict holding current optimization sta
swa.py:225
↓ 2 callersMethodstep
r"""Performs a single optimization step. In automatic mode also updates SWA running averages.
swa.py:210
↓ 2 callersMethodupdate
(self, value, n=1)
utils.py:27
↓ 2 callersMethodupdate
(self, **kwargs)
utils.py:68
↓ 2 callersMethodupdate_swa_group
r"""Updates the SWA running averages for the given parameter group. Arguments: param_group (dict): Specifies for what parameter g
swa.py:151
↓ 1 callersFunction_check_bn
(model)
swa.py:326
↓ 1 callersFunction_check_bn_apply
(module, flag)
swa.py:321
↓ 1 callersMethod_check_params
(self, swa_start, swa_freq)
swa.py:132
↓ 1 callersFunction_get_momenta
(module, momenta)
swa.py:338
↓ 1 callersMethod_reset_lr_to_swa
(self)
swa.py:144
↓ 1 callersFunction_set_momenta
(module, momenta)
swa.py:343
↓ 1 callersMethodadd_meter
(self, name, meter)
utils.py:91
↓ 1 callersFunctioncreate_model
(outputchannels=1, aux_loss=False, freeze_backbone=False)
model.py:5
↓ 1 callersFunctionimage_resize
(image, width=None, height=None, inter=cv2.INTER_CUBIC)
utils.py:184
↓ 1 callersMethodload_state_dict
r"""Loads the optimizer state. Args: state_dict (dict): SWA optimizer state. Should be an object returned from a
swa.py:244
↓ 1 callersFunctionmain
(args)
train.py:133
↓ 1 callersFunctionparse_args
()
train.py:215
↓ 1 callersMethodswap_swa_sgd
r"""Swaps the values of the optimized variables and swa buffers. It's meant to be called in the end of training to use the collected
swa.py:188
↓ 1 callersFunctiontrain_one_epoch
(model, criterion, optimizer, data_loader, lr_scheduler, device, epoch, writer, print_freq, use_swa)
train.py:97
↓ 1 callersFunctionunsharp_mask
(image, kernel_size=(5, 5), sigma=1.0, amount=1.0, threshold=0)
utils.py:172
Method__call__
(self, image, target)
transforms.py:25
Method__call__
(self, image, target)
transforms.py:37
Method__call__
(self, image, target)
transforms.py:68
Method__call__
(self, image, target)
transforms.py:80
Method__call__
(self, image, target)
transforms.py:105
Method__call__
(self, image, target)
transforms.py:119
Method__call__
(self, image, target)
transforms.py:132
Method__call__
(self, image, target)
transforms.py:143
Method__call__
(self, image, target)
transforms.py:155
Method__call__
(self, image, target)
transforms.py:168
Method__call__
(self, image, target)
transforms.py:175
Method__call__
(self, image, target)
transforms.py:186
Method__getattr__
(self, attr)
utils.py:75
Method__getitem__
(self, index)
dataloader.py:26
Method__init__
(self)
lovasz_losses.py:130
Method__init__
(self, transforms)
transforms.py:22
Method__init__
(self, distortion_scale=0.5, p=0.5, interpolation=Image.BICUBIC, fill=0)
transforms.py:31
Method__init__
(self, p=0.1)
transforms.py:65
Method__init__
(self, p=0.25, brightness=0, contrast=0, saturation=0, hue=0)
transforms.py:73
Method__init__
(self, radius, p=0.2)
transforms.py:87
Method__init__
(self, degrees, resample=False, expand=False, center=None, fill=None)
transforms.py:112
Method__init__
(self, min_size, max_size=None)
transforms.py:126
Method__init__
(self, flip_prob)
transforms.py:140
Method__init__
(self, size, fill)
transforms.py:151
Method__init__
(self, size)
transforms.py:165
Method__init__
(self, mean, std)
transforms.py:182
Method__init__
(self, window_size=20, fmt=None)
utils.py:19
Method__init__
(self, delimiter="\t")
utils.py:64
Method__init__
(self, folder_path, transforms)
dataloader.py:14
Method__init__
r"""Implements Stochastic Weight Averaging (SWA). Stochastic Weight Averaging was proposed in `Averaging Weights Leads to Wider Optim
swa.py:10
Method__len__
(self)
dataloader.py:43
Method__str__
(self)
utils.py:54
Method__str__
(self)
utils.py:83
Function_reset_bn
(module)
swa.py:332
Methodadd_param_group
r"""Add a param group to the :class:`Optimizer` s `param_groups`. This can be useful when fine tuning a pre-trained network as frozen
swa.py:259
Methodavg
(self)
utils.py:38
Functionbinary_xloss
Binary Cross entropy loss logits: [B, H, W] Variable, logits at each pixel (between -\infty and +\infty) labels: [B, H, W] Tensor, bi
lovasz_losses.py:138
Methodbn_update
r"""Updates BatchNorm running_mean, running_var buffers in the model. It performs one pass over data in `loader` to estimate the activation
swa.py:275
Functioncollate_fn
(batch)
utils.py:157
Functionextract_segmentation_results
(image, mask, resize_width=None, resize_height=256, sharpen_amount=10, crop_min_area_rect=False)
utils.py:204
Methodforward
(self, input, target)
lovasz_losses.py:132
Methodglobal_avg
(self)
utils.py:43
Functioniou
Array of IoU for each (non ignored) class
lovasz_losses.py:53
Functioniou_binary
IoU for foreground class binary: 1 foreground, 0 background
lovasz_losses.py:33
Functionisnan
(x)
lovasz_losses.py:228
Functionlovasz_hinge
Binary Lovasz hinge loss logits: [B, H, W] Variable, logits at each pixel (between -\infty and +\infty) labels: [B, H, W] Tensor, bin
lovasz_losses.py:78
Functionlovasz_softmax
Multi-class Lovasz-Softmax loss probas: [B, C, H, W] Variable, class probabilities at each prediction (between 0 and 1). Inte
lovasz_losses.py:153
Methodmax
(self)
utils.py:47
Methodmedian
(self)
utils.py:33
Functionmkdir
(path)
utils.py:164
Methodupdate_swa
r"""Updates the SWA running averages of all optimized parameters.
swa.py:182
Methodvalue
(self)
utils.py:51
Functionxloss
Cross entropy loss
lovasz_losses.py:220