Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ChrisChen1023/SEM-Net
/ functions
Functions
87 in github.com/ChrisChen1023/SEM-Net
⨍
Functions
87
◇
Types & classes
24
↓ 14 callers
Method
postprocess
(self, img)
src/sem.py:300
↓ 11 callers
Method
__init__
(self, inp_channels=4, out_channels=3, dim=48,
src/networks.py:296
↓ 8 callers
Method
compute_gram
(self, x)
src/loss.py:57
↓ 8 callers
Function
create_dir
(dir)
src/utils.py:12
↓ 6 callers
Method
cuda
(self, *args)
src/sem.py:297
↓ 6 callers
Method
log
(self, logs)
src/sem.py:291
↓ 5 callers
Function
PositionalEncoding
(d_model, max_len=5000)
src/models.py:227
↓ 5 callers
Method
resize
(self, img, height, width, centerCrop=True)
src/dataset.py:164
↓ 5 callers
Function
spectral_norm
(module, mode=True)
src/networks.py:47
↓ 4 callers
Method
__init__
(self)
src/loss.py:110
↓ 4 callers
Function
imsave
(img, path)
src/utils.py:53
↓ 4 callers
Method
save
(self)
src/sem.py:75
↓ 3 callers
Method
backward
(self, gen_loss = None, dis_loss = None)
src/models.py:199
↓ 3 callers
Function
main
r"""starts the model Args: mode (int): 1: train, 2: test, reads from config file if not specified
main.py:12
↓ 2 callers
Function
create_mask
(width, height, mask_width, mask_height, x=None, y=None)
src/utils.py:17
↓ 2 callers
Method
load_flist
(self, flist)
src/dataset.py:178
↓ 2 callers
Method
load_name
(self, index)
src/dataset.py:40
↓ 2 callers
Function
stitch_images
(inputs, *outputs, img_per_row=2)
src/utils.py:25
↓ 2 callers
Method
to_tensor
(self, img)
src/dataset.py:159
↓ 2 callers
Method
update
Updates the progress bar. Arguments: current: Index of current step. values: List of tuples: `(name,
src/utils.py:98
↓ 1 callers
Method
__init__
(self, name, config)
src/models.py:12
↓ 1 callers
Method
add
(self, n, values=None)
src/utils.py:219
↓ 1 callers
Function
generate_stroke_mask
(im_size, max_parts=15, maxVertex=25, maxLength=100, maxBrushWidth=24, maxAngle=360)
src/dataset.py:210
↓ 1 callers
Method
init_weights
initialize network's weights init_type: normal | xavier | kaiming | orthogonal https://github.com/junyanz/pytorch-CycleGAN-an
src/networks.py:19
↓ 1 callers
Method
load
(self)
src/sem.py:68
↓ 1 callers
Function
load_config
r"""loads model config Args: mode (int): 1: train, 2: test, reads from config file if not specified
main.py:64
↓ 1 callers
Method
load_item
(self, index)
src/dataset.py:44
↓ 1 callers
Method
load_mask
(self, img, index)
src/dataset.py:80
↓ 1 callers
Method
metric
(self, gt, pre)
src/sem.py:306
↓ 1 callers
Function
np_free_form_mask
(maxVertex, maxLength, maxBrushWidth, maxAngle, h, w)
src/dataset.py:218
↓ 1 callers
Method
print
(self)
src/config.py:20
↓ 1 callers
Method
process
(self, images, masks)
src/models.py:108
↓ 1 callers
Method
test
(self)
src/sem.py:193
↓ 1 callers
Function
to_3d
(x)
src/networks.py:99
↓ 1 callers
Function
to_4d
(x, h, w)
src/networks.py:103
↓ 1 callers
Method
train
(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
Function
abs_smooth
(x)
src/models.py:221
Method
backward_joint
(self, gen_loss = None, dis_loss = None)
src/models.py:212
Method
create_iterator
(self, batch_size)
src/dataset.py:198
Method
forward
(self, x)
src/loss.py:186
Method
forward
(self, x)
src/loss.py:236
Method
forward
(self, images, masks)
src/models.py:175
Method
forward
(self, x)
src/networks.py:85
Method
forward
(self, x)
src/networks.py:119
Method
forward
(self, x)
src/networks.py:137
Method
forward
(self, x)
src/networks.py:151
Method
forward
(self, x, spatial)
src/networks.py:188
Method
forward
(self, x)
src/networks.py:237
Method
forward
(self, x)
src/networks.py:257
Method
forward
(self, x, mask)
src/networks.py:274
Method
forward
(self, x, mask)
src/networks.py:289
Method
forward
(self, inp_img, mask_whole, mask_half, mask_quarter,mask_tiny, pos1, pos2, pos3, pos4, pos1_dec)
src/networks.py:362
Method
forward
(self, x, pe, mask)
src/networks.py:427
Function
image_transforms
(load_size)
src/dataset.py:241
Function
imshow
(img, title='')
src/utils.py:45
Method
init_func
(m)
src/networks.py:26
Method
load
(self)
src/models.py:22
Method
load_edge
(self, img, index, mask)
src/dataset.py:127
Method
save
(self)
src/models.py:49