Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/HighwayWu/ImageInpainting
/ functions
Functions
106 in github.com/HighwayWu/ImageInpainting
⨍
Functions
106
◇
Types & classes
16
↓ 36 callers
Function
spectral_norm
(module, mode=True)
networks.py:265
↓ 31 callers
Method
mean
(self)
util.py:57
↓ 8 callers
Method
get_pixel
(self, img, center, x, y)
main.py:50
↓ 4 callers
Function
postprocess
(img)
main.py:113
↓ 4 callers
Method
set_requires_grad
Set requies_grad=Fasle for all the networks to avoid unnecessary computations Parameters: nets (network list) -- a list of netwo
model.py:122
↓ 3 callers
Method
backward
(ctx, grad_output)
attention.py:76
↓ 3 callers
Function
init_net
(net, init_type='normal', init_gain=0.02, device='')
networks.py:325
↓ 3 callers
Function
metrics
(real, fake)
main.py:120
↓ 3 callers
Method
optimize_parameters
(self, val=False)
model.py:268
↓ 3 callers
Method
set_input
(self, input)
model.py:164
↓ 2 callers
Function
MyUnfold
(input, patch_size, stride)
attention.py:94
↓ 2 callers
Method
__init__
(self, tv_loss_weight=1)
losses.py:98
↓ 2 callers
Method
__init__
(self)
networks.py:13
↓ 2 callers
Method
_tensor_size
(t)
losses.py:111
↓ 2 callers
Method
backward_G
(self, val=False)
model.py:187
↓ 2 callers
Method
initialize
(self, opt)
model.py:137
↓ 2 callers
Function
mkdir
(path)
util.py:294
↓ 1 callers
Method
__init__
(self, masks, stop_criteria=0.85)
util.py:34
↓ 1 callers
Method
__patch_instance_norm_state_dict
(self, state_dict, module, keys, i=0)
model.py:78
↓ 1 callers
Method
_assert_no_grad
(self, variable)
losses.py:66
↓ 1 callers
Method
_get_next_indexes
(self)
util.py:61
↓ 1 callers
Method
_is_finished
(self)
util.py:46
↓ 1 callers
Method
_solve
(self)
util.py:67
↓ 1 callers
Method
backward_D
(self)
model.py:232
↓ 1 callers
Method
backward_D2
(self)
model.py:250
↓ 1 callers
Function
compute_color
(u,v)
util.py:405
↓ 1 callers
Function
create_gMask
(gMask_opts, limit_cnt=1)
util.py:145
↓ 1 callers
Method
forward
(self)
model.py:29
↓ 1 callers
Method
forward
(self)
model.py:182
↓ 1 callers
Method
gather_options
(self, options=None)
options.py:53
↓ 1 callers
Function
get_norm_layer
(norm_type='instance')
networks.py:272
↓ 1 callers
Method
get_target_tensor
(self, prediction, target_is_real)
losses.py:32
↓ 1 callers
Function
init_weights
(net, init_type='normal', gain=0.02)
networks.py:303
↓ 1 callers
Method
initialize
(self, parser)
options.py:10
↓ 1 callers
Method
lbp_calculated_pixel
64 | 128 | 1 ---------------- 32 | 0 | 2 ---------------- 16 | 8 | 4
main.py:59
↓ 1 callers
Method
load_lbp
(self, img)
main.py:84
↓ 1 callers
Method
load_networks
(self, which_epoch)
model.py:89
↓ 1 callers
Function
make_color_wheel
()
util.py:433
↓ 1 callers
Method
parse
(self, options=None)
options.py:87
↓ 1 callers
Function
random_walk
(canvas, ini_x, ini_y, length)
util.py:182
↓ 1 callers
Method
save_networks
(self, which_epoch)
model.py:62
↓ 1 callers
Function
spatial_discounting_mask
Generate spatial discounting mask constant. Spatial discounting mask is first introduced in publication: Generative Image Inpainting with
losses.py:72
↓ 1 callers
Function
test
()
main.py:185
↓ 1 callers
Function
train
()
main.py:135
↓ 1 callers
Function
wrapper_gmask
(opt)
util.py:121
Method
__call__
(self, prediction, target_is_real)
losses.py:39
Method
__getitem__
(self, index)
main.py:29
Method
__init__
(self)
options.py:7
Method
__init__
(self, gan_type='wgan_gp', target_real_label=1.0, target_fake_label=0.0)
losses.py:10
Method
__init__
(self, opt)
losses.py:53
Method
__init__
(self, opt)
networks.py:114
Method
__init__
(self, input_nc, ndf=64, n_layers=3, norm_layer=nn.BatchNorm2d, use_sigmoid=False, use_spectral_norm=True)
networks.py:220
Method
__init__
(self, opt)
attention.py:8
Method
__init__
(self)
util.py:466
Method
__init__
(self, opt)
main.py:21
Method
__init__
(self, opt)
main.py:94
Method
__iter__
(self)
main.py:106
Method
__len__
(self)
main.py:47
Method
__len__
(self)
main.py:103
Function
cal_feat_mask
(inMask, nlayers)
util.py:206
Function
cal_flag_given_mask_thred
(mask, patch_size, stride, mask_thred)
util.py:218
Function
cal_gradient_penalty
Calculate the gradient penalty loss, used in WGAN-GP paper https://arxiv.org/abs/1704.00028 Arguments: netD (network) -- disc
util.py:504
Function
create_mask
()
util.py:197
Function
create_masks
(opt, N=10)
util.py:16
Function
create_rand_mask
(opt)
util.py:169
Function
define_D
(input_nc, ndf, device='')
networks.py:342
Function
define_G
(opt)
networks.py:332
Function
define_LBP
(opt)
networks.py:337
Function
diagnose_network
(net, name='network')
util.py:107
Function
flow_to_image
Transfer flow map to image. Part of code forked from flownet.
util.py:343
Method
forward
(self, input, target)
losses.py:59
Method
forward
(self, x)
losses.py:102
Method
forward
(self, lbp, mask)
networks.py:93
Method
forward
(self, x, lbp, mask, second=False)
networks.py:197
Method
forward
(self, input)
networks.py:261
Method
forward
(self, generated, known, mask)
attention.py:12
Method
forward
(ctx, generated, known, mask, device)
attention.py:20
Method
forward
(self, image)
util.py:483
Method
get_current_losses
(self)
model.py:53
Method
get_image_paths
(self)
model.py:39
Method
get_iou
(self)
util.py:39
Method
get_masks
(self)
util.py:73
Function
get_scheduler
(optimizer, opt)
networks.py:286
Function
gram_matrix
(feat)
util.py:497
Function
highlight_flow
Convert flow into middlebury color code image.
util.py:377
Function
hist_match
Adjust the pixel values of a grayscale image such that its histogram matches that of a target image Arguments: ----------- s
util.py:298
Function
info
Print methods and doc strings. Takes module, class, list, dictionary, or string.
util.py:260
Function
init_func
(m)
networks.py:304
Method
initialize
(self, parser)
options.py:102
Method
initialize
(self, opt)
model.py:17
Function
lambda_rule
(epoch)
networks.py:288
Function
mkdirs
(paths)
util.py:286
Method
name
(self)
model.py:14
Method
optimize_parameters
(self)
model.py:42
Method
print_networks
(self, verbose)
model.py:109
Function
print_numpy
(x, val=True, shp=False)
util.py:276
Method
print_options
(self, opt)
options.py:67
Function
rm_extra_dim
(image)
util.py:98
Function
save_image
(image_numpy, image_path)
util.py:256
Method
set_input
(self, input)
model.py:26
next →
1–100 of 106, ranked by callers