MCPcopy Create free account

hub / github.com/ChunmingHe/WS-SAM / functions

Functions357 in github.com/ChunmingHe/WS-SAM

↓ 35 callersMethod__init__
(self, in_channels)
lib/Modules.py:76
↓ 11 callersMethod__init__
(self, in_features, hidden_features=None, out_features=None, act_layer=nn.GELU, drop=0.)
lib/VIT/encoder/pvtv2_encoder.py:18
↓ 9 callersFunction_resnet
(arch, block, layers, backbone_path, pretrained, **kwargs)
lib/resnet.py:231
↓ 8 callersMethod__init__
(self, channels)
lib/VIT/decoder/decoder_p.py:221
↓ 8 callersMethodresize
(self, img, gt)
utils/dataloader.py:59
↓ 8 callersFunctionweight_init
(module)
lib/VIT/decoder/decoder_p.py:17
↓ 6 callersMethod__init__
(self, in_features, hidden_features=None, out_features=None, act_layer=nn.GELU, drop=0.)
lib/VIT/encoder/swin_encoder.py:18
↓ 6 callersFunctioncolorEnhance
(image)
utils/data_val.py:72
↓ 6 callersFunctionfind
A utility function to find set of an element i (uses path compression technique)
losses/kernels/lib_tree_filter/src/mst/boruvka.cpp:126
↓ 6 callersFunctionpartial_cross_entropy
(pred, label, weight=None, re
losses/cross_entropy_loss.py:67
↓ 6 callersFunctionrandomPeper
(img)
utils/data_val.py:97
↓ 5 callersFunctionstructure_loss
loss function (ref: F3Net-AAAI-2020)
Train.py:19
↓ 5 callersFunctionweight_reduce_loss
Apply element-wise weight and reduce loss. Args: loss (Tensor): Element-wise loss. weight (Tensor): Element-wise weights.
losses/utils.py:26
↓ 5 callersFunctionweighted_structure_loss
(pred, mask)
Train.py:35
↓ 4 callersMethod_make_layer
(self, block, planes, blocks, stride=1)
lib/Res2Net_v1b.py:127
↓ 4 callersMethod_make_layer
(self, block, planes, blocks, stride=1, dilate=False)
lib/resnet.py:185
↓ 4 callersMethodload_data
(self)
utils/data_val.py:734
↓ 4 callersFunctionspatial_broadcast
Broadcast slot features to a 2D grid and collapse slot dimension.
lib/Slot.py:40
↓ 4 callersFunctionspatial_flatten
(x)
lib/Slot.py:57
↓ 3 callersFunction_expand_binary_labels
(labels, label_weights, label_channels)
losses/cross_entropy_loss.py:35
↓ 3 callersFunctionconv1x1
1x1 convolution
lib/resnet.py:42
↓ 3 callersFunctionconv3x3
3x3 convolution with padding
lib/resnet.py:36
↓ 3 callersFunctioncv_random_flip
(img, label, edge)
utils/data_val.py:15
↓ 3 callersFunctioncv_random_flip_noEdge
(img, label)
utils/data_val.py:25
↓ 3 callersMethodflops
(self)
lib/VIT/encoder/swin_encoder.py:404
↓ 3 callersMethodinitialize
(self)
lib/VIT/CamoFormer.py:91
↓ 3 callersFunctionrandomCrop
(image, label, edge)
utils/data_val.py:33
↓ 3 callersFunctionrandomCrop_noEdge
(image, label)
utils/data_val.py:44
↓ 3 callersFunctionrandomRotation
(image, label, edge)
utils/data_val.py:55
↓ 3 callersFunctionrandomRotation_noEdge
(image, label)
utils/data_val.py:64
↓ 2 callersMethod__init__
Builds the Slot Attention module. Args: iters: Number of iterations. num_slots: Number of slots. encoder_d
lib/Slot.py:71
↓ 2 callersMethod__init__
(self, block, layers, num_classes=1000, zero_init_residual=False, groups=1, width_per_group=6
lib/resnet.py:134
↓ 2 callersMethod__init__
(self, configer=None)
losses/TreeLoss.py:9
↓ 2 callersMethodbatch_index_opr
(data, index)
losses/kernels/lib_tree_filter/modules/tree_filter.py:84
↓ 2 callersMethodbinary_loader
(self, path)
utils/data_val.py:529
↓ 2 callersMethodbinary_loader
(self, path)
utils/data_val.py:646
↓ 2 callersMethodgated
(self, mask)
lib/GatedConv.py:23
↓ 2 callersMethodinitialize
(self)
lib/VIT/decoder/decoder_p.py:293
↓ 2 callersMethodresize_feat
(self, x, num_passed)
lib/VIT/encoder/swin_encoder.py:584
↓ 2 callersMethodrgb_loader
(self, path)
utils/data_val.py:754
↓ 2 callersFunctionunstack_and_split
Unstack batch dimension and split into channels and alpha mask.
lib/Slot.py:61
↓ 2 callersFunctionweight_init
(module)
lib/VIT/CamoFormer.py:37
↓ 2 callersFunctionwindow_partition
Args: x: (B, H, W, C) window_size (int): window size Returns: windows: (num_windows*B, window_size, window_size, C)
lib/VIT/encoder/swin_encoder.py:36
↓ 1 callersMethodThreshold_process
(self, a)
utils/data_val.py:215
↓ 1 callersFunctionUnion
A function that does union of two sets of x and y (uses union by rank)
losses/kernels/lib_tree_filter/src/mst/boruvka.cpp:139
↓ 1 callersMethod__init__
(self, channels=128, imagenet_pretrained=True)
lib/Network.py:20
↓ 1 callersMethod__init__
(self, block, layers, baseWidth=26, scale=4, num_classes=1000)
lib/Res2Net_v1b.py:96
↓ 1 callersMethod__init__
(self, groups=1, sigma=0.02, distance_func=None, enable_log=False)
losses/kernels/lib_tree_filter/modules/tree_filter.py:66
↓ 1 callersMethod_build_feature_weight
(self, fm)
losses/kernels/lib_tree_filter/modules/tree_filter.py:27
↓ 1 callersMethod_build_label_weight
(self, fm)
losses/kernels/lib_tree_filter/modules/tree_filter.py:36
↓ 1 callersMethod_build_matrix_index
(fm)
losses/kernels/lib_tree_filter/modules/tree_filter.py:15
↓ 1 callersMethod_forward_impl
(self, x)
lib/resnet.py:209
↓ 1 callersFunction_squeeze_binary_labels
(label)
losses/cross_entropy_loss.py:10
↓ 1 callersMethodbackward
(ctx, grad_output)
losses/kernels/lib_tree_filter/functions/mst.py:17
↓ 1 callersMethodbinary_loader
(self, path)
utils/dataloader.py:53
↓ 1 callersMethodbinary_loader
(self, path)
utils/dataloader.py:115
↓ 1 callersMethodbinary_loader
(self, path)
utils/data_val.py:210
↓ 1 callersMethodbinary_loader
(self, path)
utils/data_val.py:312
↓ 1 callersMethodbinary_loader
(self, path)
utils/data_val.py:414
↓ 1 callersMethodbinary_loader
(self, path)
utils/data_val.py:759
↓ 1 callersMethodbinary_loader
(self, path)
utils/data_val.py:819
↓ 1 callersMethodbuild_edge_weight
(self, fm, sorted_index, sorted_parent, low_tree)
losses/kernels/lib_tree_filter/modules/tree_filter.py:91
↓ 1 callersFunctionbuild_grid
(resolution)
lib/Slot.py:9
↓ 1 callersFunctioncal_ual
(seg_logits, seg_gts)
utils/utils.py:29
↓ 1 callersFunctionclip_gradient
For calibrating misalignment gradient via cliping gradient technique :param optimizer: :param grad_clip: :return:
utils/utils.py:35
↓ 1 callersMethoddefault_conv
(self, in_channels, out_channels, kernel_size, bias=True)
lib/Modules.py:701
↓ 1 callersMethodfilter_files
(self)
utils/dataloader.py:35
↓ 1 callersMethodfilter_files
(self)
utils/data_val.py:187
↓ 1 callersMethodfilter_files
(self)
utils/data_val.py:291
↓ 1 callersMethodfilter_files
(self)
utils/data_val.py:393
↓ 1 callersMethodfilter_files
(self)
utils/data_val.py:508
↓ 1 callersMethodfilter_files
(self)
utils/data_val.py:625
↓ 1 callersMethodforward_features
(self, x)
lib/VIT/encoder/pvtv2_encoder.py:319
↓ 1 callersMethodforward_features
(self, x)
lib/VIT/encoder/swin_encoder.py:563
↓ 1 callersFunctiongaussianNoisy
(im, mean=mean, sigma=sigma)
utils/data_val.py:85
↓ 1 callersFunctiongenerate_benchmark_table
()
utils/generate_LaTeX.py:4
↓ 1 callersFunctionget_coef
(iter_percentage, method)
utils/utils.py:6
↓ 1 callersFunctionget_loader_Scribble
(image_root, scribble_root, batchsize, trainsize, shuffle=True, num_workers=12, pin_memory=True)
utils/data_val.py:832
↓ 1 callersFunctionget_loader_scribble_noEdge_3326
(image_root, gt_root, scribble_root, imgname_root, batchsize, trainsize, shuffle=True, num_workers=12, pin_mem
utils/data_val.py:701
↓ 1 callersFunctionheatmap
(feat_viz, ori_img, save_path=None)
utils/FeatureViz.py:8
↓ 1 callersMethodinitialize
(self)
lib/VIT/encoder/pvtv2_encoder.py:367
↓ 1 callersMethodinitialize
(self)
lib/VIT/encoder/swin_encoder.py:605
↓ 1 callersFunctioninverse_sigmoid
(Y)
losses/cross_entropy_loss.py:169
↓ 1 callersMethodmake_encoder
(self, in_channels, encoder_arch)
lib/Slot.py:214
↓ 1 callersMethodprint_info
(self, edge_weight)
losses/kernels/lib_tree_filter/modules/tree_filter.py:121
↓ 1 callersFunctionreduce_loss
Reduce loss as specified. Args: loss (Tensor): Elementwise loss tensor. reduction (str): Options are "none", "mean" and "sum"
losses/utils.py:6
↓ 1 callersFunctionres2net50_v1b_26w_4s
Constructs a Res2Net-50_v1b_26w_4s lib. Args: pretrained (bool): If True, returns a lib pre-trained on ImageNet
lib/Res2Net_v1b.py:188
↓ 1 callersMethodreset
(self)
utils/utils.py:66
↓ 1 callersMethodrgb_loader
(self, path)
utils/dataloader.py:48
↓ 1 callersMethodrgb_loader
(self, path)
utils/dataloader.py:110
↓ 1 callersMethodrgb_loader
(self, path)
utils/data_val.py:205
↓ 1 callersMethodrgb_loader
(self, path)
utils/data_val.py:307
↓ 1 callersMethodrgb_loader
(self, path)
utils/data_val.py:409
↓ 1 callersMethodrgb_loader
(self, path)
utils/data_val.py:524
↓ 1 callersMethodrgb_loader
(self, path)
utils/data_val.py:641
↓ 1 callersMethodrgb_loader
(self, path)
utils/data_val.py:814
↓ 1 callersFunctionspatial_broadcast2
Broadcast slot features to a 2D grid and collapse slot dimension.
lib/Slot.py:49
↓ 1 callersMethodsplit_group
(self, feature_in, *tree_orders)
losses/kernels/lib_tree_filter/modules/tree_filter.py:110
↓ 1 callersFunctionsplit_pred
()
utils/cod10k_subclass_split.py:19
↓ 1 callersFunctiontif2png
Usage: formatting `tif/tiff` files to `jpg/png` files :param _src_path: :param _dst_path: :return:
utils/tif2png.py:8
next →1–100 of 357, ranked by callers