MCPcopy Create free account

hub / github.com/YoungGod/sturcture-inpainting / functions

Functions209 in github.com/YoungGod/sturcture-inpainting

↓ 1 callersFunctionmrf_loss
(T_features, I_features, distance=Distance.DotProduct, nnsigma=float(1.0), args=None)
src/loss.py:462
↓ 1 callersFunctionmulti_gpu_setting
(model, args)
src/train_inpaint_model.py:20
↓ 1 callersFunctionnormalize
(x)
painter/ops.py:531
↓ 1 callersFunctionnp_free_form_mask
(maxVertex, maxLength, maxBrushWidth, maxAngle, h, w)
src/utils_fn.py:19
↓ 1 callersMethodpatch_decomposition
(self, T_features, args=None)
src/loss.py:435
↓ 1 callersFunctionpatch_gan_loss
patch gan loss
src/loss.py:143
↓ 1 callersFunctionrandom_interpolates
x: first dimension as batch_size y: first dimension as batch_size alpha: [BATCH_SIZE, 1]
src/loss.py:167
↓ 1 callersFunctionrandom_pooling
(feats, output_1d_size=100)
src/loss.py:491
↓ 1 callersFunctionresnet_block21
(x, cnum, ksize, stride, rate, name, IN=True, padding='SAME', activation=tf.nn.relu, traini
src/ops.py:139
↓ 1 callersFunctionresnet_block21
(x, cnum, ksize, stride, rate, name, IN=True, padding='SAME', activation=tf.nn.relu, traini
painter/ops.py:138
↓ 1 callersFunctionresnet_blocks
(x, cnum, ksize, stride, rate, block_num, name, IN=True, padding='REFLECT', activation=tf.n
src/ops.py:130
↓ 1 callersFunctionresnet_blocks
(x, cnum, ksize, stride, rate, block_num, name, IN=True, padding='REFLECT', activation=tf.n
painter/ops.py:129
↓ 1 callersFunctionselect_gpu
Finding the gpu number with min used memory. Args: None Returns: GPU number with min used memory (or with max free memo
src/config.py:110
↓ 1 callersMethodsetup
(self)
painter/painter.py:60
↓ 1 callersMethodshow
(self, cfg_dict=None, indent=0)
src/config.py:88
↓ 1 callersMethodshow
(self, cfg_dict=None, indent=0)
painter/config.py:87
↓ 1 callersFunctionsingle_gpu_setting
(model, args)
src/train_inpaint_model.py:113
↓ 1 callersMethodsum_normalize
(cs, axis=3)
src/loss.py:403
↓ 1 callersMethodtv_loss
(self, image)
src/loss.py:96
↓ 1 callersFunctionuqi_vif
(path_true, path_pred)
src/metrics.py:42
FunctionAtnConv
r""" Attention transfer networks implementation in tensorflow Attention transfer networks is introduced in publication: Learning Pyramid
painter/ops.py:340
Method__getattr__
(self, name)
src/config.py:45
Method__getattr__
(self, name)
src/config.py:82
Method__getattr__
(self, name)
painter/config.py:44
Method__getattr__
(self, name)
painter/config.py:81
Method__init__
(self, vgg_dir, real_image)
src/loss.py:31
Method__init__
(self, sigma=float(0.1), b=float(1.0))
src/loss.py:291
Method__init__
(self, stream)
src/config.py:23
Method__init__
(self, filename=None)
src/config.py:70
Method__init__
(self, data_path)
src/vgg_network.py:22
Method__init__
(self, args)
src/inpaint_model.py:11
Method__init__
(self, num_images, image_shape, image_dtype, minibatch_size)
src/frechet_inception_distance.py:252
Method__init__
image size
src/utils_fn.py:79
Method__init__
(self, sess, fetches)
src/utils/FetchManager.py:2
Method__init__
(self, stream)
painter/config.py:22
Method__init__
(self, filename=None)
painter/config.py:69
Method__init__
(self, args)
painter/inpaint_model.py:9
Method__init__
(self, config)
painter/painter.py:23
Method__new__
Add include constructer to class.
src/config.py:12
Method__new__
Add include constructer to class.
painter/config.py:11
Methodadversarial_loss
(self)
src/loss.py:121
Functionavg_pooling
(x, pool_size=2)
src/ops.py:332
Functionavg_pooling
(x, pool_size=2)
painter/ops.py:331
Functionbbox2mask
Generate mask tensor from bbox. Args: bbox: configuration tuple, (top, left, height, width) config: Config should have config
src/utils_fn.py:641
Methodbegin
(self, mode)
src/frechet_inception_distance.py:265
MethodbeginPaint
(self, event)
painter/painter.py:243
Functioncanny_edge
Extract edges in tensorflow. example: input = tf.placeholder(dtype=tf.float32, shape=[None, 900, 900, 3]) output = tf.py_func(canny_e
structure_loss.py:24
Functioncanny_edge
Extract edges in tensorflow. example: input = tf.placeholder(dtype=tf.float32, shape=[None, 900, 900, 3]) output = tf.py_func(canny_e
src/loss.py:591
Functioncanny_edge
Extract edges in tensorflow. example: input = tf.placeholder(dtype=tf.float32, shape=[None, 900, 900, 3]) output = tf.py_func(canny_e
painter/structure_loss.py:24
Methodconstruct_include
Include file referenced at node.
src/config.py:30
Methodconstruct_include
Include file referenced at node.
painter/config.py:29
Functiondis_conv
Define conv for discriminator. Activation is set to leaky_relu. Args: x: Input. cnum: Channel number. ksize: Ke
painter/ops.py:215
Methodend
(self, mode)
src/frechet_inception_distance.py:273
Methodevaluate
(self, x, mask, args, training=False, reuse=False)
src/inpaint_model.py:709
Methodfeed
(self, mode, minibatch)
src/frechet_inception_distance.py:269
Methodfetch
(self, feed_dictionary, additional_fetches=[])
src/utils/FetchManager.py:6
Methodfill
(self)
painter/painter.py:173
Functionflatten
Flatten wrapper.
src/ops.py:255
Functionflatten
Flatten wrapper.
painter/ops.py:255
Functionfocal_loss
r"""Compute focal loss for predictions. Multi-labels Focal loss formula: FL = -alpha * (z-p)^gamma * log(p) -(1-alpha) * p^gamma *
src/loss.py:194
Functionfree_form_mask_tf
Free form mask rf: NIPS multi-column conv
src/utils_fn.py:46
Functiongan_wgan_loss
wgan loss function for GANs. - Wasserstein GAN: https://arxiv.org/abs/1701.07875
src/loss.py:128
Methodget_metric_formatting
(self)
src/frechet_inception_distance.py:262
Methodget_metric_names
(self)
src/frechet_inception_distance.py:259
Methodicon2mice
(self, event)
painter/painter.py:284
Methodicon2pen
(self, event)
painter/painter.py:281
Methodimage_edge_processing
(self, filename)
src/utils_fn.py:114
Methodimage_edge_scale_processing
(self, filename)
src/utils_fn.py:134
Methodimage_processing
src/utils_fn.py:90
Methodimage_processing2
(self, filename)
src/utils_fn.py:99
Functionimsave
(images, size, path)
painter/ops.py:534
Functionload_data
Load image data
src/utils_fn.py:219
Functionload_img_edge
Load image data
src/utils_fn.py:459
Functionload_test_data
Load image data
src/utils_fn.py:353
Functionload_val_img_edge
Load image data
src/utils_fn.py:490
Functionload_validation_data
Load image data
src/utils_fn.py:291
Methodmask_processing
(self, filename)
src/utils_fn.py:160
Methodmask_processing2
For training
src/utils_fn.py:166
Methodmask_processing3
For validation and test
src/utils_fn.py:199
Functionmm_ssmi
MM-SSMI
src/metrics.py:17
Functionnormalize
(x)
src/ops.py:439
Functionnormalize
(x)
src/utils_fn.py:427
Functionnpmask
(bbox, height, width, delta_h, delta_w)
src/utils_fn.py:653
Functionout_complete
(out, x_incomplete, mask, res)
src/ops.py:261
Functionout_complete
(out, x_incomplete, mask, res)
painter/ops.py:261
Methodpaint
(self, event)
painter/painter.py:248
Methodpreprocess
(self, image)
src/vgg_network.py:31
Functionpyramid_structure_loss
(image, predicts, edge_alpha, grad_alpha)
structure_loss.py:54
Functionpyramid_structure_loss
(image, predicts, edge_alpha, grad_alpha)
src/loss.py:611
Functionpyramid_structure_loss
(image, predicts, edge_alpha, grad_alpha)
painter/structure_loss.py:54
Functionrandom_bbox
Generate a random tlhw with configuration. Args: config: Config should have configuration including IMG_SHAPES, VERTICAL_
src/utils_fn.py:612
Functionrandom_crop_together
(im1, im2, size)
src/utils/helper.py:32
Functionread_image
(file_name, resize=True, fliplr=False)
src/utils/helper.py:10
Methodreset
(self, event)
painter/painter.py:264
Functionresnet_block12
(x, cnum, ksize, stride, rate, name, IN=True, padding='REFLECT', activation=tf.nn.elu, trai
src/ops.py:172
Functionresnet_block12
(x, cnum, ksize, stride, rate, name, IN=True, padding='REFLECT', activation=tf.nn.elu, trai
painter/ops.py:171
Methodreversed_direction_CS
(self)
src/loss.py:300
Methodrevoke
(self)
painter/painter.py:207
Functionsave_image
(output, file_name)
src/utils/helper.py:20
Functionsave_images
(images, size, image_path)
src/utils_fn.py:430
← previousnext →101–200 of 209, ranked by callers