MCPcopy Create free account

hub / github.com/ChrisChen1023/SEM-Net / functions

Functions87 in github.com/ChrisChen1023/SEM-Net

↓ 14 callersMethodpostprocess
(self, img)
src/sem.py:300
↓ 11 callersMethod__init__
(self, inp_channels=4, out_channels=3, dim=48,
src/networks.py:296
↓ 8 callersMethodcompute_gram
(self, x)
src/loss.py:57
↓ 8 callersFunctioncreate_dir
(dir)
src/utils.py:12
↓ 6 callersMethodcuda
(self, *args)
src/sem.py:297
↓ 6 callersMethodlog
(self, logs)
src/sem.py:291
↓ 5 callersFunctionPositionalEncoding
(d_model, max_len=5000)
src/models.py:227
↓ 5 callersMethodresize
(self, img, height, width, centerCrop=True)
src/dataset.py:164
↓ 5 callersFunctionspectral_norm
(module, mode=True)
src/networks.py:47
↓ 4 callersMethod__init__
(self)
src/loss.py:110
↓ 4 callersFunctionimsave
(img, path)
src/utils.py:53
↓ 4 callersMethodsave
(self)
src/sem.py:75
↓ 3 callersMethodbackward
(self, gen_loss = None, dis_loss = None)
src/models.py:199
↓ 3 callersFunctionmain
r"""starts the model Args: mode (int): 1: train, 2: test, reads from config file if not specified
main.py:12
↓ 2 callersFunctioncreate_mask
(width, height, mask_width, mask_height, x=None, y=None)
src/utils.py:17
↓ 2 callersMethodload_flist
(self, flist)
src/dataset.py:178
↓ 2 callersMethodload_name
(self, index)
src/dataset.py:40
↓ 2 callersFunctionstitch_images
(inputs, *outputs, img_per_row=2)
src/utils.py:25
↓ 2 callersMethodto_tensor
(self, img)
src/dataset.py:159
↓ 2 callersMethodupdate
Updates the progress bar. Arguments: current: Index of current step. values: List of tuples: `(name,
src/utils.py:98
↓ 1 callersMethod__init__
(self, name, config)
src/models.py:12
↓ 1 callersMethodadd
(self, n, values=None)
src/utils.py:219
↓ 1 callersFunctiongenerate_stroke_mask
(im_size, max_parts=15, maxVertex=25, maxLength=100, maxBrushWidth=24, maxAngle=360)
src/dataset.py:210
↓ 1 callersMethodinit_weights
initialize network's weights init_type: normal | xavier | kaiming | orthogonal https://github.com/junyanz/pytorch-CycleGAN-an
src/networks.py:19
↓ 1 callersMethodload
(self)
src/sem.py:68
↓ 1 callersFunctionload_config
r"""loads model config Args: mode (int): 1: train, 2: test, reads from config file if not specified
main.py:64
↓ 1 callersMethodload_item
(self, index)
src/dataset.py:44
↓ 1 callersMethodload_mask
(self, img, index)
src/dataset.py:80
↓ 1 callersMethodmetric
(self, gt, pre)
src/sem.py:306
↓ 1 callersFunctionnp_free_form_mask
(maxVertex, maxLength, maxBrushWidth, maxAngle, h, w)
src/dataset.py:218
↓ 1 callersMethodprint
(self)
src/config.py:20
↓ 1 callersMethodprocess
(self, images, masks)
src/models.py:108
↓ 1 callersMethodtest
(self)
src/sem.py:193
↓ 1 callersFunctionto_3d
(x)
src/networks.py:99
↓ 1 callersFunctionto_4d
(x, h, w)
src/networks.py:103
↓ 1 callersMethodtrain
(self)
src/sem.py:81
Method__call__
(self, outputs, is_real, is_disc=None)
src/loss.py:30
Method__call__
(self, x, y)
src/loss.py:65
Method__call__
(self, x, y)
src/loss.py:93
Method__call__
(self, a, b)
src/metrics.py:15
Method__getattr__
(self, name)
src/config.py:11
Method__getitem__
(self, index)
src/dataset.py:35
Method__init__
r""" type = nsgan | lsgan | hinge
src/loss.py:11
Method__init__
(self)
src/loss.py:52
Method__init__
(self, weights=[1.0, 1.0, 1.0, 1.0, 1.0])
src/loss.py:87
Method__init__
(self)
src/loss.py:233
Method__init__
(self, config_path)
src/config.py:5
Method__init__
(self, target, width=25, verbose=1, interval=0.05, stateful_metrics=None)
src/utils.py:74
Method__init__
(self, config)
src/models.py:63
Method__init__
(self, config, flist, mask_flist, augment=True, training=True)
src/dataset.py:18
Method__init__
(self, config)
src/sem.py:25
Method__init__
(self, max_val)
src/metrics.py:6
Method__init__
(self)
src/networks.py:16
Method__init__
(self, in_channels, use_sigmoid=True, use_spectral_norm=True, init_weights=True)
src/networks.py:54
Method__init__
(self, normalized_shape)
src/networks.py:108
Method__init__
(self, normalized_shape)
src/networks.py:125
Method__init__
(self, dim, LayerNorm_type)
src/networks.py:144
Method__init__
(self, dim, ffn_expansion_factor, bias)
src/networks.py:159
Method__init__
(self, dim, num_heads, ffn_expansion_factor, bias, LayerNorm_type)
src/networks.py:218
Method__init__
(self, in_c=3, embed_dim=48, bias=False)
src/networks.py:252
Method__init__
(self, n_feat)
src/networks.py:266
Method__init__
(self, n_feat)
src/networks.py:283
Method__init__
(self, dim, d_state = 16, d_conv = 4, expand = 2)
src/networks.py:406
Method__len__
(self)
src/dataset.py:32
Functionabs_smooth
(x)
src/models.py:221
Methodbackward_joint
(self, gen_loss = None, dis_loss = None)
src/models.py:212
Methodcreate_iterator
(self, batch_size)
src/dataset.py:198
Methodforward
(self, x)
src/loss.py:186
Methodforward
(self, x)
src/loss.py:236
Methodforward
(self, images, masks)
src/models.py:175
Methodforward
(self, x)
src/networks.py:85
Methodforward
(self, x)
src/networks.py:119
Methodforward
(self, x)
src/networks.py:137
Methodforward
(self, x)
src/networks.py:151
Methodforward
(self, x, spatial)
src/networks.py:188
Methodforward
(self, x)
src/networks.py:237
Methodforward
(self, x)
src/networks.py:257
Methodforward
(self, x, mask)
src/networks.py:274
Methodforward
(self, x, mask)
src/networks.py:289
Methodforward
(self, inp_img, mask_whole, mask_half, mask_quarter,mask_tiny, pos1, pos2, pos3, pos4, pos1_dec)
src/networks.py:362
Methodforward
(self, x, pe, mask)
src/networks.py:427
Functionimage_transforms
(load_size)
src/dataset.py:241
Functionimshow
(img, title='')
src/utils.py:45
Methodinit_func
(m)
src/networks.py:26
Methodload
(self)
src/models.py:22
Methodload_edge
(self, img, index, mask)
src/dataset.py:127
Methodsave
(self)
src/models.py:49