MCPcopy Create free account

hub / github.com/ZHKKKe/MODNet / functions

Functions73 in github.com/ZHKKKe/MODNet

↓ 6 callersMethod__init__
(self, in_channels)
torchscript/modnet_torchscript.py:24
↓ 6 callersMethod__init__
(self, in_channels)
src/models/modnet.py:16
↓ 6 callersMethod__init__
(self, in_channels)
onnx/modnet_onnx.py:24
↓ 3 callersFunction_make_divisible
(v, divisor, min_value=None)
src/models/backbones/mobilenetv2.py:15
↓ 3 callersMethodload_pretrained_ckpt
(self)
src/models/backbones/wrapper.py:24
↓ 1 callersMethod__init__
(self, in_channels)
src/models/backbones/wrapper.py:14
↓ 1 callersMethod__init__
(self, in_channels, alpha=1.0, expansion=6, num_classes=1000)
src/models/backbones/mobilenetv2.py:91
↓ 1 callersMethod_init_conv
(self, conv)
torchscript/modnet_torchscript.py:249
↓ 1 callersMethod_init_conv
(self, conv)
src/models/modnet.py:246
↓ 1 callersMethod_init_conv
(self, conv)
onnx/modnet_onnx.py:243
↓ 1 callersMethod_init_kernel
(self)
src/trainer.py:65
↓ 1 callersMethod_init_norm
(self, norm)
torchscript/modnet_torchscript.py:255
↓ 1 callersMethod_init_norm
(self, norm)
src/models/modnet.py:252
↓ 1 callersMethod_init_norm
(self, norm)
onnx/modnet_onnx.py:249
↓ 1 callersMethod_init_weights
(self)
src/models/backbones/mobilenetv2.py:186
↓ 1 callersFunctionconv_1x1_bn
(inp, oup)
src/models/backbones/mobilenetv2.py:33
↓ 1 callersFunctionconv_bn
(inp, oup, stride)
src/models/backbones/mobilenetv2.py:25
↓ 1 callersMethodforward
(self, x)
torchscript/modnet_torchscript.py:33
↓ 1 callersMethodforward
(self, x)
src/models/modnet.py:25
↓ 1 callersMethodforward
(self, x)
onnx/modnet_onnx.py:33
↓ 1 callersMethodfreeze_norm
(self)
src/models/modnet.py:238
↓ 1 callersFunctionget_scale_factor
(im_h, im_w, ref_size)
onnx/inference_onnx.py:43
↓ 1 callersFunctionmatting
(video, result, alpha_matte=False, fps=30)
demo/video_matting/custom/run.py:23
Method__init__
(self, in_channels, out_channels, kernel_size, stride=1, padding=0, dilation=1, groups=1, b
torchscript/modnet_torchscript.py:44
Method__init__
(self, in_channels, out_channels, reduction=1)
torchscript/modnet_torchscript.py:70
Method__init__
(self, backbone)
torchscript/modnet_torchscript.py:96
Method__init__
(self, hr_channels, enc_channels)
torchscript/modnet_torchscript.py:124
Method__init__
(self, hr_channels, enc_channels)
torchscript/modnet_torchscript.py:174
Method__init__
(self, in_channels=3, hr_channels=32, backbone_arch='mobilenetv2', backbone_pretrained=True)
torchscript/modnet_torchscript.py:205
Method__init__
Arguments: channels (int): Channel for input tensor kernel_size (int): Size of the kernel used in blurring
src/trainer.py:27
Method__init__
(self, in_channels, out_channels, kernel_size, stride=1, padding=0, dilation=1, groups=1, bi
src/models/modnet.py:36
Method__init__
(self, in_channels, out_channels, reduction=1)
src/models/modnet.py:62
Method__init__
(self, backbone)
src/models/modnet.py:88
Method__init__
(self, hr_channels, enc_channels)
src/models/modnet.py:121
Method__init__
(self, hr_channels, enc_channels)
src/models/modnet.py:177
Method__init__
(self, in_channels=3, hr_channels=32, backbone_arch='mobilenetv2', backbone_pretrained=True)
src/models/modnet.py:208
Method__init__
(self, in_channels)
src/models/backbones/wrapper.py:32
Method__init__
(self, inp, oup, stride, expansion, dilation=1)
src/models/backbones/mobilenetv2.py:46
Method__init__
(self, in_channels, out_channels, kernel_size, stride=1, padding=0, dilation=1, groups=1, bia
onnx/modnet_onnx.py:44
Method__init__
(self, in_channels, out_channels, reduction=1)
onnx/modnet_onnx.py:70
Method__init__
(self, backbone)
onnx/modnet_onnx.py:96
Method__init__
(self, hr_channels, enc_channels)
onnx/modnet_onnx.py:124
Method__init__
(self, hr_channels, enc_channels)
onnx/modnet_onnx.py:174
Method__init__
(self, in_channels=3, hr_channels=32, backbone_arch='mobilenetv2', backbone_pretrained=True)
onnx/modnet_onnx.py:205
Method_load_pretrained_model
(self, pretrained_file)
src/models/backbones/mobilenetv2.py:173
Methodforward
(self, x)
torchscript/modnet_torchscript.py:62
Methodforward
(self, x)
torchscript/modnet_torchscript.py:80
Methodforward
(self, img)
torchscript/modnet_torchscript.py:107
Methodforward
(self, img, enc2x, enc4x, lr8x)
torchscript/modnet_torchscript.py:151
Methodforward
(self, img, lr8x, hr2x)
torchscript/modnet_torchscript.py:184
Methodforward
(self, img)
torchscript/modnet_torchscript.py:228
Methodforward
Arguments: x (torch.Tensor): input 4D tensor Returns: torch.Tensor: Blurred version of the input
src/trainer.py:47
Methodforward
(self, x)
src/models/modnet.py:54
Methodforward
(self, x)
src/models/modnet.py:72
Methodforward
(self, img, inference)
src/models/modnet.py:99
Methodforward
(self, img, enc2x, enc4x, lr8x, inference)
src/models/modnet.py:148
Methodforward
(self, img, lr8x, hr2x)
src/models/modnet.py:187
Methodforward
(self, img, inference)
src/models/modnet.py:231
Methodforward
(self, x)
src/models/backbones/wrapper.py:21
Methodforward
(self, x)
src/models/backbones/wrapper.py:38
Methodforward
(self, x)
src/models/backbones/mobilenetv2.py:79
Methodforward
(self, x)
src/models/backbones/mobilenetv2.py:139
Methodforward
(self, x)
onnx/modnet_onnx.py:62
Methodforward
(self, x)
onnx/modnet_onnx.py:80
Methodforward
(self, img)
onnx/modnet_onnx.py:107
Methodforward
(self, img, enc2x, enc4x, lr8x)
onnx/modnet_onnx.py:151
Methodforward
(self, img, lr8x, hr2x)
onnx/modnet_onnx.py:184
Methodforward
(self, img)
onnx/modnet_onnx.py:228
Methodfreeze_norm
(self)
torchscript/modnet_torchscript.py:241
Methodfreeze_norm
(self)
onnx/modnet_onnx.py:235
Methodload_pretrained_ckpt
(self)
src/models/backbones/wrapper.py:74
Functionsoc_adaptation_iter
Self-Supervised sub-objective consistency (SOC) adaptation iteration of MODNet This function fine-tunes MODNet for one iteration in an unlabeled
src/trainer.py:177
Functionsupervised_training_iter
Supervised training iteration of MODNet This function trains MODNet for one iteration in a labeled dataset. Arguments: modnet (torch
src/trainer.py:86