Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ansleliu/LightNetPlusPlus
/ functions
Functions
269 in github.com/ansleliu/LightNetPlusPlus
⨍
Functions
269
◇
Types & classes
87
↓ 9 callers
Method
__init__
(self, inplace=True)
models/mixnetseg.py:55
↓ 9 callers
Function
broadcast_to
modules/inplace_abn/src/inplace_abn_cpu.cpp:17
↓ 8 callers
Method
__init__
Dice Loss for Semantic Segmentation :param weight: <torch.Tensor, optional> A manual rescaling weight given to each class.
utils/losses.py:446
↓ 7 callers
Method
__init__
(self, channel, reduct_ratio=16)
modules/attentions.py:54
↓ 6 callers
Method
__init__
(self, inplace=True)
modules/efficient.py:45
↓ 4 callers
Function
reduce_sum
modules/inplace_abn/src/inplace_abn_cpu.cpp:8
↓ 3 callers
Method
__init__
(self, in_chs, out_chs, up_ratio=2, aspp_dilate=(4, 8, 12))
modules/aspp.py:10
↓ 3 callers
Function
shape_check
modules/deformable/src/deform_conv_cuda.cpp:61
↓ 3 callers
Method
update
(self, val, n=1)
utils/metrics.py:32
↓ 2 callers
Method
__init__
(self, channels, kernel_size=11, padding=5, sigma=1.0, amount=1.0, threshold=0, norm_act=ABN)
modules/usm.py:125
↓ 2 callers
Method
__init__
(self, spatial_scale, out_size, out_channels,
modules/deformable/modules/deform_pool.py:8
↓ 2 callers
Method
__init__
(self, in_channels, out_channels, kernel_size,
modules/deformable/modules/deform_conv.py:12
↓ 2 callers
Function
_act_backward
(ctx, x, dx)
modules/inplace_abn/functions.py:68
↓ 2 callers
Function
_act_forward
(ctx, x)
modules/inplace_abn/functions.py:59
↓ 2 callers
Method
_round_filters
(self, filters, width_multi)
models/mixnetseg.py:494
↓ 2 callers
Function
channel_shuffle
(x, groups)
modules/shuffle.py:6
↓ 2 callers
Function
count
modules/inplace_abn/src/inplace_abn_cpu.cpp:29
↓ 2 callers
Function
execute_replication_callbacks
Execute an replication callback `__data_parallel_replicate__` on each module created by original replication. The callback will be invok
utils/parallel.py:214
↓ 2 callers
Method
generate_new_target
(self, predict, target)
utils/losses.py:186
↓ 2 callers
Function
invert_affine
modules/inplace_abn/src/inplace_abn_cpu.cpp:37
↓ 1 callers
Method
__fast_hist
Collect values for Confusion Matrix For reference, please see: https://en.wikipedia.org/wiki/Confusion_matrix :param label_g
utils/metrics.py:55
↓ 1 callers
Method
__init__
InvertedResidual: Core block of the MobileNetV2 :param inp: (int) Number of the input channels :param oup: (int) Number
modules/mobile.py:7
↓ 1 callers
Method
__init__
(self, with_r=True)
modules/misc.py:8
↓ 1 callers
Method
__init__
(self, in_chns, out_chns, stride, dilate, branch_model)
modules/shuffle.py:22
↓ 1 callers
Method
__init__
Creates an Activated Batch Normalization module Parameters ---------- num_features : int Number of feature channe
modules/inplace_abn/iabn.py:19
↓ 1 callers
Method
__init__
(self, alphastd, eigval, eigvec)
datasets/cityscapes/cityscapes.py:28
↓ 1 callers
Method
__unique_encode
:param cls_targets: <torch.FloatTensor> Network Predictions of size [N, C, H, W], where C = number of classes :return:
utils/losses.py:407
↓ 1 callers
Method
_adjust_learning_rate
(self, optimizer, lr)
utils/lr_scheduler.py:67
↓ 1 callers
Function
_count_samples
(x)
modules/inplace_abn/functions.py:51
↓ 1 callers
Function
_criterion_parallel_apply
(modules, inputs, targets, kwargs_tup=None, devices=None)
utils/parallel.py:150
↓ 1 callers
Method
_infer_shape
(ctx, input, weight)
modules/deformable/functions/deform_conv.py:168
↓ 1 callers
Method
_initialize_weights
(self)
models/shufflenetv2plus.py:102
↓ 1 callers
Method
_initialize_weights
(self)
models/mixnetseg.py:470
↓ 1 callers
Method
_initialize_weights
(self)
models/mobilenetv2plus.py:105
↓ 1 callers
Method
_make_divisible
(value, divisor=8)
models/mixnetseg.py:488
↓ 1 callers
Method
_output_size
(input, weight, padding, dilation, stride)
modules/deformable/functions/deform_conv.py:92
↓ 1 callers
Method
_round_repeats
(repeats, depth_multi)
models/mixnetseg.py:500
↓ 1 callers
Method
_update_topk
(self, top_k)
utils/losses.py:319
↓ 1 callers
Function
_worker
(i, module, input, target, kwargs, device=None)
utils/parallel.py:168
↓ 1 callers
Method
backward
(ctx, dz)
modules/inplace_abn/functions.py:119
↓ 1 callers
Function
backward_cpu
modules/inplace_abn/src/inplace_abn_cpu.cpp:75
↓ 1 callers
Method
calculate_weights
(self)
modules/usm.py:95
↓ 1 callers
Function
data_preprocess
(check, mean_check, std_check)
netviz/feat_viz.py:62
↓ 1 callers
Function
decode_segmap
(pred, label_colours, num_classes)
deploy/cityscapes/video_demo/video_demo.py:24
↓ 1 callers
Function
edz_eydz_cpu
modules/inplace_abn/src/inplace_abn_cpu.cpp:66
↓ 1 callers
Function
elu_backward_cpu
modules/inplace_abn/src/inplace_abn_cpu.cpp:103
↓ 1 callers
Method
encode_segmap
(self, mask)
datasets/cityscapes/cityscapes.py:128
↓ 1 callers
Function
evaluate
(data_root, model, result_path, split)
deploy/cityscapes/evaluation/eval.py:22
↓ 1 callers
Method
find_threshold
(self, np_predict, np_target)
utils/losses.py:152
↓ 1 callers
Method
forward
(self, x)
modules/aspp.py:65
↓ 1 callers
Method
forward
(ctx, x, weight, bias, running_mean, running_var, training=True, momentum=0.1, eps=1e-05, acti
modules/inplace_abn/functions.py:79
↓ 1 callers
Method
forward
(self, x)
netviz/feat_viz.py:43
↓ 1 callers
Function
forward_cpu
modules/inplace_abn/src/inplace_abn_cpu.cpp:54
↓ 1 callers
Function
get_mean_and_std
Compute the mean and std value of dataset.
datasets/utils/get_mean_std.py:5
↓ 1 callers
Method
init_offset
(self)
modules/deformable/modules/deform_conv.py:132
↓ 1 callers
Function
leaky_relu_backward_cpu
modules/inplace_abn/src/inplace_abn_cpu.cpp:85
↓ 1 callers
Function
mean_var_cpu
modules/inplace_abn/src/inplace_abn_cpu.cpp:45
↓ 1 callers
Function
recursive_glob
Performs recursive glob with given suffix and rootdir :param rootdir is the root directory :param suffix is the suffix to be searched
utils/utils.py:7
↓ 1 callers
Function
recursive_glob
Performs recursive glob with given suffix and rootdir :param rootdir is the root directory :param suffix is the suffix to be searched
datasets/cityscapes/list/make_list.py:4
↓ 1 callers
Method
replicate
(self, module, device_ids)
utils/parallel.py:101
↓ 1 callers
Method
rescale_output_array
(self, newsize)
netviz/feat_viz.py:36
↓ 1 callers
Method
reset_parameters
(self)
modules/deformable/modules/deform_conv.py:46
↓ 1 callers
Method
reset_parameters
(self)
modules/deformable/modules/deform_conv.py:91
↓ 1 callers
Method
reset_parameters
(self)
modules/inplace_abn/iabn.py:54
↓ 1 callers
Function
usm
(x, kernel_size=(7, 7), amount=1.0, threshold=0)
models/mixnetseg.py:39
↓ 1 callers
Method
usm
(x, kernel_size=(7, 7), amount=1.0, threshold=0)
models/mixnetseg.py:506
↓ 1 callers
Function
video_demo
(data_root, model, method, result_path, split)
deploy/cityscapes/video_demo/video_demo.py:40
Function
PYBIND11_MODULE
modules/deformable/src/deform_pool_cuda.cpp:81
Function
PYBIND11_MODULE
modules/deformable/src/deform_conv_cuda.cpp:681
Function
PYBIND11_MODULE
modules/inplace_abn/src/inplace_abn.cpp:86
Method
__call__
(self, optimizer, i, epoch)
utils/lr_scheduler.py:37
Method
__call__
:param image: <PIL.Image> Image to be augmented, mode='RGB' :param mask: <PIL.Image> Mask to be augmented, mode='L' :return:
datasets/augmentations.py:21
Method
__call__
(self, image, mask)
datasets/augmentations.py:43
Method
__call__
(self, image, mask)
datasets/augmentations.py:69
Method
__call__
(self, image, mask)
datasets/augmentations.py:80
Method
__call__
(self, image, mask)
datasets/augmentations.py:90
Method
__call__
(self, image, mask)
datasets/augmentations.py:100
Method
__call__
(self, image, mask)
datasets/augmentations.py:120
Method
__call__
(self, image, mask)
datasets/augmentations.py:132
Method
__call__
(self, image, mask)
datasets/augmentations.py:167
Method
__call__
(self, img)
datasets/cityscapes/cityscapes.py:33
Method
__getitem__
__getitem__ :param index:
datasets/cityscapes/cityscapes.py:140
Method
__init__
InvertedResidual: Core block of the MobileNetV2 :param inp: (int) Number of the input channels :param oup: (int) Number
modules/mobile.py:50
Method
__init__
(self, in_chs, mid_chs=64, out_chs=256, kernel_size=15)
modules/misc.py:60
Method
__init__
(self, in_chs, mid_chs=64, out_chs=256, kernel_size=15, norm_act=InPlaceABN)
modules/attentions.py:13
Method
__init__
(self, channel, reduct_ratio=16, is_res=True)
modules/attentions.py:74
Method
__init__
(self, in_chns, reduct_ratio=16, is_res=True)
modules/attentions.py:101
Method
__init__
(self, in_chns, reduct_ratio=16, is_res=True)
modules/attentions.py:139
Method
__init__
(self, in_chns, reduct_ratio=16, dilation=4, use_res=True)
modules/attentions.py:187
Method
__init__
(self, in_chns, reduct_ratio=8)
modules/attentions.py:239
Method
__init__
(self)
modules/attentions.py:273
Method
__init__
(self, in_planes, out_planes, kernel_size=3, stride=1, dilate=1)
modules/efficient.py:21
Method
__init__
(self, in_planes, out_planes, kernel_size, stride=1, groups=1, dilate=1)
modules/efficient.py:54
Method
__init__
(self, in_planes, reduced_dim)
modules/efficient.py:78
Method
__init__
(self, feature_size=64, epsilon=0.0001)
modules/efficient.py:96
Method
__init__
(self, bone_feat_sizes, feature_size=64, fpn_repeats=2)
modules/efficient.py:138
Method
__init__
(self, in_planes, out_planes, expand_ratio, kernel_size, stride, dilate, re
modules/efficient.py:167
Method
__init__
(self, channel, kernel_size=7, padding=3, amount=1.0, threshold=0, norm_act=ABN)
modules/usm.py:60
Method
__init__
(self, channels, kernel_size=11, padding=5, sigma=1.6)
modules/usm.py:85
Method
__init__
(self, keep_prob=0.9, block_size=7)
modules/dropout.py:25
next →
1–100 of 269, ranked by callers