MCPcopy Create free account

hub / github.com/NVIDIA/semantic-segmentation / functions

Functions433 in github.com/NVIDIA/semantic-segmentation

↓ 53 callersFunctionscale_as
scale x to the same size as y
network/mynn.py:70
↓ 41 callersFunctionNorm2d
Custom Norm Function to allow flexible switching
network/mynn.py:18
↓ 32 callersFunctioninitialize_weights
Initialize Model Weights
network/mynn.py:27
↓ 21 callersFunctionUpsample
Wrapper Around the Upsample Call
network/mynn.py:43
↓ 16 callersFunctionget_trunk
Retrieve the network trunk and channel counts.
network/utils.py:102
↓ 12 callersFunctionget_aspp
Create aspp block
network/utils.py:301
↓ 10 callersFunctionResizeX
scale x by some factor
network/mynn.py:102
↓ 9 callersFunctionBNReLU
(ch)
network/utils.py:314
↓ 8 callersMethodimmutable
Set immutability to is_immutable and recursively apply the setting to all nested AttrDicts.
utils/attr_dict.py:58
↓ 7 callersFunctionUpsample2
Wrapper Around the Upsample Call
network/mynn.py:52
↓ 6 callersFunctionaffine_transform
(pair, affine_params)
datasets/randaugment.py:16
↓ 6 callersFunctionmake_attn_head
(in_ch, out_ch)
network/utils.py:343
↓ 6 callersFunctionmake_seg_head
(in_ch, out_ch)
network/utils.py:320
↓ 6 callersMethodupdate
(self, val, n=1)
utils/misc.py:496
↓ 5 callersMethod__init__
(self, pretrained=True)
network/wider_resnet.py:403
↓ 5 callersMethodbuild_epoch
For class uniform sampling ... every epoch, we want to recompute which tiles from which images we want to sample from, so that the
datasets/base_loader.py:62
↓ 5 callersFunctiondpc_conv
(in_dim, reduction_dim, dil, separable)
network/utils.py:249
↓ 5 callersFunctionfmt_scale
format scale name :prefix: a string that is the beginning of the field name :scale: a scale value (0.25, 0.5, 1.0, 2.0)
utils/misc.py:503
↓ 4 callersMethod__init__
(self, in_dim, reduction_dim=256, output_stride=16, rates=[(1, 6), (18, 15), (6, 21), (1, 1),
network/utils.py:268
↓ 4 callersMethod__init__
(self, num_classes, trunk='hrnetv2', criterion=None)
network/mscale.py:483
↓ 4 callersMethod__init__
Parameters ---------- block (nn.Module): Bottleneck class. - For SENet154: SEBottleneck - For SE-ResN
network/SEresnext.py:199
↓ 4 callersMethod__init__
(self, classes, ignore_index=cfg.DATASET.IGNORE_LABEL, weights=None, upper_bound=1.0, norm=Fa
loss/utils.py:154
↓ 4 callersMethod_fwd
(self, x, aspp_in=None)
network/mscale.py:50
↓ 4 callersFunction_is_pil_image
(img)
transforms/transforms.py:185
↓ 4 callersMethod_make_layer
(self, block, planes, blocks, groups, reduction, stride=1, downsample_kernel_size=1, downs
network/SEresnext.py:317
↓ 4 callersMethod_make_layer
(self, block, planes, blocks, stride=1)
network/Resnet.py:162
↓ 3 callersMethod__init__
(self, inplanes, planes, stride=1, downsample=None)
network/hrnetv2.py:40
↓ 3 callersMethod__init__
(self, num_classes, trunk='hrnetv2', criterion=None)
network/ocrnet.py:98
↓ 3 callersMethod_fwd
(self, x)
network/mscale2.py:52
↓ 3 callersMethod_fwd
(self, x)
network/ocrnet.py:170
↓ 3 callersMethod_make_stage
(self, layer_config, num_inchannels, multi_scale_output=True)
network/hrnetv2.py:370
↓ 3 callersMethod_make_transition_layer
( self, num_channels_pre_layer, num_channels_cur_layer)
network/hrnetv2.py:317
↓ 3 callersMethodadd_table
:img_label_pairs: A list of pairs of [img,label]
utils/results_page.py:135
↓ 3 callersFunctionforgiving_state_restore
Handle partial loading when some tensors don't match up in size. Because we want to use models that were trained off a different number o
loss/optimizer.py:137
↓ 3 callersMethodstep
(self, closure=None)
loss/radam.py:29
↓ 3 callersFunctionvalidate
Run validation for one epoch :val_loader: data loader for validation :net: the network :criterion: loss fn :optimizer: optimizer
train.py:536
↓ 3 callersMethodwrite_page
(self)
utils/results_page.py:148
↓ 2 callersMethod__init__
(self, inplanes, planes, reps, stride=1, dilation=1, BatchNorm=None, start_with_relu=True, gr
network/xception.py:44
↓ 2 callersMethod__init__
(self, num_classes, trunk='hrnetv2', criterion=None)
network/mscale2.py:234
↓ 2 callersMethod__init__
(self, in_channels, key_channels, out_channels, scale=1, dropout=0.1)
network/ocr_utils.py:128
↓ 2 callersMethod__init__
(self, block, layers, num_classes=1000)
network/Resnet.py:140
↓ 2 callersMethod_forward_paired
Hierarchical form of attention where we only predict attention for pairs of scales at a time. At inference time we can combi
network/attnscale.py:292
↓ 2 callersMethod_fwd
(self, x, aspp_lo=None, aspp_attn=None, scale_float=None)
network/mscale2.py:272
↓ 2 callersMethod_fwd
Run the network, and return final feature and logit predictions
network/attnscale.py:106
↓ 2 callersMethod_fwd
Run the network, and return final feature and logit predictions
network/attnscale.py:268
↓ 2 callersMethod_pad
(self, img, mask)
transforms/joint_transforms.py:480
↓ 2 callersMethod_pad
(self, img, mask)
transforms/joint_transforms.py:532
↓ 2 callersFunctionadd_margin
Add margin around an image top, right, bottom, left are the margin widths, in pixels margin_color is what to use for the margins
transforms/joint_transforms.py:48
↓ 2 callersMethodcalculateWeights
(self, target)
loss/utils.py:332
↓ 2 callersFunctioncalculate_iou
(hist_data)
utils/misc.py:78
↓ 2 callersMethodcalculate_weights
Calculate weights of classes based on the training crop
loss/utils.py:87
↓ 2 callersMethodcalculate_weights
Calculate weights of the classes based on training crop
loss/utils.py:165
↓ 2 callersFunctionconv3x3
3x3 convolution with padding
network/hrnetv2.py:31
↓ 2 callersFunctionconv3x3
3x3 convolution with padding
network/Resnet.py:53
↓ 2 callersMethodcrop_in_image
(centroid, target_w, target_h, w, h, img, mask)
transforms/joint_transforms.py:102
↓ 2 callersFunctioncustomsoftmax
Custom Softmax
loss/utils.py:137
↓ 2 callersMethoddump
dump a single batch of images :dump_dict: a dictionary containing elements to dump out 'input_images': source image
utils/misc.py:279
↓ 2 callersFunctioneval_metrics
Modified IOU mechanism for on-the-fly IOU calculations ( prevents memory overflow for large dataset) Only applies to eval/eval.py
utils/misc.py:101
↓ 2 callersMethodfind_cityscapes_images
Find image and segmentation mask files and return a list of tuples of them. Inputs: img_root: path to parent directo
datasets/cityscapes.py:182
↓ 2 callersFunctionflip_tensor
Flip Tensor along a dimension
utils/trnval_utils.py:41
↓ 2 callersMethodforward_sigmoid
Using the sigmiod operation both. Args: logits_4D : [N, C, H, W], dtype=float32 labels_4D : [N, H,
loss/rmi.py:82
↓ 2 callersFunctioninitialize_pretrained_model
Initialize Pretrain Model Information, Dowload weights, load weights, set variables
network/SEresnext.py:365
↓ 2 callersMethodinverse
(self, x)
loss/rmi.py:136
↓ 2 callersFunctionmake_dataset_folder
Create Filename list for images in the provided path input: path to directory with *only* images files returns: items list with None fil
datasets/utils.py:4
↓ 2 callersMethodnew_one_hot_converter
(self,a)
transforms/transforms.py:83
↓ 2 callersFunctionrandom_sampling
Randomly sample num items from the list alist: list of centroids to sample from num: can be larger than the list and if so, then wrap aro
datasets/uniform.py:200
↓ 2 callersFunctionresize_tensor
(inputs, target_size)
utils/trnval_utils.py:51
↓ 2 callersFunctionseg2bmap
From a segmentation, compute a binary boundary map with 1 pixel wide boundaries. The boundary pixels are offset by 1/2 pixel towards the origin f
utils/f_boundary.py:175
↓ 2 callersFunctionset_crop_size
(crop_size)
transforms/joint_transforms.py:63
↓ 2 callersMethodset_num_samples
(self)
datasets/sampler.py:108
↓ 2 callersFunctionstr2list
(s)
config.py:280
↓ 2 callersFunctionwarn_imbalance
(get_prop)
utils/my_data_parallel.py:55
↓ 1 callersFunctionCutoutAbs
(img, v)
datasets/randaugment.py:154
↓ 1 callersMethod__init__
(self, num_classes, trunk='wrn38', criterion=None, use_dpc=False, fuse_aspp=False, attn_2b=Fa
network/attnscale.py:51
↓ 1 callersMethod__init__
(self, num_classes, trunk='resnet-50', criterion=None, use_dpc=False, init_all=False, output_
network/deepv3.py:130
↓ 1 callersMethod__init__
(self, num_classes, trunk='hrnetv2', criterion=None)
network/basic.py:71
↓ 1 callersMethod_assertNoGrad
(self, variable)
loss/utils.py:250
↓ 1 callersFunction_check_balance
(device_ids)
utils/my_data_parallel.py:46
↓ 1 callersMethod_check_branches
(self, num_branches, blocks, num_blocks, num_inchannels, num_channels)
network/hrnetv2.py:127
↓ 1 callersMethod_forward_fused
Combine multiple scales of predictions together with attention predicted jointly off of multi-scale features.
network/attnscale.py:130
↓ 1 callersMethod_init_weight
(self)
network/xception.py:258
↓ 1 callersMethod_load_pretrained_model
(self)
network/xception.py:270
↓ 1 callersMethod_make_branches
(self, num_branches, block, num_blocks, num_channels)
network/hrnetv2.py:172
↓ 1 callersMethod_make_fuse_layers
(self)
network/hrnetv2.py:181
↓ 1 callersMethod_make_layer
(self, block, inplanes, planes, blocks, stride=1)
network/hrnetv2.py:353
↓ 1 callersMethod_make_one_branch
(self, branch_index, block, num_blocks, num_channels, stride=1)
network/hrnetv2.py:147
↓ 1 callersMethod_print_footer
(self)
utils/results_page.py:109
↓ 1 callersMethod_print_header
(self)
utils/results_page.py:100
↓ 1 callersMethod_print_page_end
(self)
utils/results_page.py:199
↓ 1 callersMethod_print_page_start
(self)
utils/results_page.py:156
↓ 1 callersMethod_print_table_end
(self)
utils/results_page.py:196
↓ 1 callersMethod_print_table_footer
(self)
utils/results_page.py:119
↓ 1 callersMethod_print_table_guts
(self, img_fn, descr)
utils/results_page.py:124
↓ 1 callersMethod_print_table_header
(self, table_name)
utils/results_page.py:113
↓ 1 callersMethod_print_table_row
(self, row)
utils/results_page.py:183
↓ 1 callersMethod_print_table_start
(self, caption, hdr)
utils/results_page.py:175
↓ 1 callersMethod_write_table
(self, table, heading)
utils/results_page.py:141
↓ 1 callersFunctionadjust_brightness
Adjust brightness of an Image. Args: img (PIL Image): PIL Image to be adjusted. brightness_factor (float): How much to adjust th
transforms/transforms.py:192
↓ 1 callersFunctionadjust_contrast
Adjust contrast of an Image. Args: img (PIL Image): PIL Image to be adjusted. contrast_factor (float): How much to adjust the con
transforms/transforms.py:212
↓ 1 callersFunctionadjust_hue
Adjust hue of an image. The image hue is adjusted by converting the image to HSV and cyclically shifting the intensities in the hue channel (
transforms/transforms.py:252
next →1–100 of 433, ranked by callers