MCPcopy Create free account

hub / github.com/ZhengPeng7/BiRefNet / functions

Functions221 in github.com/ZhengPeng7/BiRefNet

Method__init__
(self)
loss.py:158
Method__init__
(self, window_size=11, size_average=True)
loss.py:194
Method__init__
(self)
config.py:6
Method__init__
( self, data_loaders, model_opt_lrsch, )
train.py:135
Method__init__
(self, path="log.txt")
utils.py:43
Method__init__
(self)
utils.py:64
Method__init__
(self, datasets, image_size, is_train=True)
dataset.py:35
Method__init__
(self, bb_pretrained=True)
models/birefnet.py:23
Method__init__
( self, in_channels: int, out_channels: int, inter_channels=64 )
models/birefnet.py:309
Method__init__
(self, channels, reduction=16)
models/modules/attentions.py:8
Method__init__
(self, groups)
models/modules/attentions.py:67
Method__init__
(self, in_channels=64, out_channels=64, inter_channels=64, mlp_ratio=4.)
models/modules/ing.py:6
Method__init__
(self)
models/modules/utils.py:41
Method__init__
(self, in_channels, planes, kernel_size, padding, dilation)
models/modules/aspp.py:12
Method__init__
(self, in_channels, planes, kernel_size, padding)
models/modules/aspp.py:72
Method__init__
(self, in_channels, out_channels=None, parallel_block_sizes=[1, 3, 7])
models/modules/aspp.py:87
Method__init__
(self, in_channels=64, out_channels=64, inter_channels=64)
models/modules/lateral_blocks.py:14
Method__init__
(self, in_channels, out_channels, kernel_size=3,
models/modules/deform_conv.py:7
Method__init__
(self, in_features, hidden_features=None, out_features=None, act_layer=nn.GELU, drop=0.)
models/modules/mlp.py:12
Method__init__
(self, dim, num_heads=8, qkv_bias=False, qk_scale=None, attn_drop=0., proj_drop=0., sr_ratio=1)
models/modules/mlp.py:31
Method__init__
(self, img_size=224, patch_size=7, stride=4, in_channels=3, embed_dim=768)
models/modules/mlp.py:99
Method__init__
(self, in_channels=64, out_channels=64, inter_channels=64)
models/modules/decoder_blocks.py:12
Method__init__
(self, in_channels=64, out_channels=None, inter_channels=64)
models/modules/decoder_blocks.py:70
Method__init__
(self, dim, window_size, num_heads, qkv_bias=True, qk_scale=None, attn_drop=0., proj_drop=0.)
models/backbones/swin_v1.py:87
Method__init__
(self, dim, num_heads, window_size=7, shift_size=0, mlp_ratio=4., qkv_bias=True, qk_scale=Non
models/backbones/swin_v1.py:182
Method__init__
(self, dim, norm_layer=nn.LayerNorm)
models/backbones/swin_v1.py:273
Method__init__
(self, dim, depth, num_heads, window_size=
models/backbones/swin_v1.py:328
Method__init__
(self, patch_size=4, in_channels=3, embed_dim=96, norm_layer=None)
models/backbones/swin_v1.py:423
Method__init__
(self, pretrain_img_size=224, patch_size=4, in_channels=3,
models/backbones/swin_v1.py:485
Method__init__
(self, dim, num_heads=8, qkv_bias=False, qk_scale=None, attn_drop=0., proj_drop=0., sr_ratio=1)
models/backbones/pvt_v2.py:53
Method__init__
(self, dim, num_heads, mlp_ratio=4., qkv_bias=False, qk_scale=None, drop=0., attn_drop=0., dr
models/backbones/pvt_v2.py:123
Method__init__
(self, img_size=224, patch_size=7, stride=4, in_channels=3, embed_dim=768)
models/backbones/pvt_v2.py:165
Method__init__
(self, img_size=224, patch_size=16, in_channels=3, num_classes=1000, embed_dims=[64, 128, 256, 512],
models/backbones/pvt_v2.py:205
Method__init__
(self, dim=768)
models/backbones/pvt_v2.py:362
Method__init__
(self, **kwargs)
models/backbones/pvt_v2.py:388
Method__init__
(self, **kwargs)
models/backbones/pvt_v2.py:398
Method__init__
(self, in_channels=3, **kwargs)
models/backbones/pvt_v2.py:406
Method__init__
(self, **kwargs)
models/backbones/pvt_v2.py:414
Method__init__
(self, **kwargs)
models/backbones/pvt_v2.py:422
Method__init__
(self, **kwargs)
models/backbones/pvt_v2.py:431
Method__init__
(self, in_channels=3+1)
models/refinement/refiner.py:20
Method__init__
(self, channels)
models/refinement/refiner.py:110
Method__init__
(self, in_channels=3+1)
models/refinement/refiner.py:160
Method__init__
(self, in_channels=3+1, inter_channels=48, out_channels=96,
models/refinement/stem_layer.py:14
Method__init__
(self, beta: float = 0.3)
evaluation/metrics.py:111
Method__init__
(self)
evaluation/metrics.py:169
Method__init__
(self, alpha: float = 0.5)
evaluation/metrics.py:188
Method__init__
(self)
evaluation/metrics.py:297
Method__init__
(self, beta: float = 1)
evaluation/metrics.py:410
Method__init__
(self)
evaluation/metrics.py:477
Method__len__
(self)
dataset.py:112
Function_conv_filter
convert patch embedding weight from manual patchify + linear proj to conv
models/backbones/pvt_v2.py:375
Method_init_weights
(self, m)
models/backbones/pvt_v2.py:27
Method_init_weights
(self, m)
models/backbones/pvt_v2.py:76
Method_init_weights
(self, m)
models/backbones/pvt_v2.py:139
Method_init_weights
(self, m)
models/backbones/pvt_v2.py:180
Method_init_weights
(self, m)
models/backbones/pvt_v2.py:262
Methoddiscriminator_block
(in_filters, out_filters, bn=Config().batch_size > 1)
loss.py:13
Methodforward
(self, img)
loss.py:30
Methodforward
target, pred: tensor of shape (B, C, H, W), where target[:,:,region_in_contour] == 1, target[:,:,region_out_contour]
loss.py:42
Methodforward
(self, pred, target)
loss.py:75
Methodforward
(self, pred, target)
loss.py:93
Methodforward
(self, pred, target)
loss.py:111
Methodforward
(self, pred, gt=None)
loss.py:127
Methodforward
(self, preds, gt)
loss.py:144
Methodforward
(self, scaled_preds, gt)
loss.py:181
Methodforward
(self, img1, img2)
loss.py:201
Methodforward
(self, x)
models/birefnet.py:143
Methodforward
(self, features)
models/birefnet.py:212
Methodforward
(self, x)
models/birefnet.py:316
Methodforward
(self, x)
models/modules/attentions.py:16
Methodforward
(self, x)
models/modules/attentions.py:40
Methodforward
(self, x)
models/modules/attentions.py:75
Methodforward
(self, x)
models/modules/ing.py:17
Methodforward
(self, x)
models/modules/utils.py:44
Methodforward
(self, x)
models/modules/utils.py:53
Methodforward
(self, x)
models/modules/aspp.py:19
Methodforward
(self, x)
models/modules/aspp.py:54
Methodforward
(self, x)
models/modules/aspp.py:79
Methodforward
(self, x)
models/modules/aspp.py:108
Methodforward
(self, x)
models/modules/lateral_blocks.py:19
Methodforward
(self, x)
models/modules/deform_conv.py:50
Methodforward
(self, x)
models/modules/mlp.py:21
Methodforward
(self, x, H, W)
models/modules/mlp.py:51
Methodforward
(self, x, H, W)
models/modules/mlp.py:89
Methodforward
(self, x)
models/modules/mlp.py:112
Methodforward
(self, x)
models/modules/decoder_blocks.py:25
Methodforward
(self, x)
models/modules/decoder_blocks.py:57
Methodforward
(self, x)
models/modules/decoder_blocks.py:89
Methodforward
(self, x)
models/backbones/swin_v1.py:32
Methodforward
Forward function. Args: x: input features with shape of (num_windows*B, N, C) mask: (0/-inf) mask with shape of (num
models/backbones/swin_v1.py:122
Methodforward
Forward function. Args: x: Input feature, tensor size (B, H*W, C). H, W: Spatial resolution of the input feature.
models/backbones/swin_v1.py:206
Methodforward
Forward function. Args: x: Input feature, tensor size (B, H*W, C). H, W: Spatial resolution of the input feature.
models/backbones/swin_v1.py:279
Methodforward
Forward function. Args: x: Input feature, tensor size (B, H*W, C). H, W: Spatial resolution of the input feature.
models/backbones/swin_v1.py:370
Methodforward
Forward function.
models/backbones/swin_v1.py:437
Methodforward
Forward function.
models/backbones/swin_v1.py:582
Methodforward
(self, x, H, W)
models/backbones/pvt_v2.py:42
Methodforward
(self, x, H, W)
models/backbones/pvt_v2.py:91
Methodforward
(self, x, H, W)
models/backbones/pvt_v2.py:154
Methodforward
(self, x)
models/backbones/pvt_v2.py:195
← previousnext →101–200 of 221, ranked by callers