MCPcopy Create free account

hub / github.com/JiahuiYu/generative_inpainting / functions

Functions28 in github.com/JiahuiYu/generative_inpainting

↓ 39 callersFunctiongen_conv
Define conv for generator. Args: x: Input. cnum: Channel number. ksize: Kernel size. Stride: Convolution stride.
inpaint_ops.py:22
↓ 6 callersFunctiondis_conv
Define conv for discriminator. Activation is set to leaky_relu. Args: x: Input. cnum: Channel number. ksize: Kernel s
inpaint_ops.py:84
↓ 4 callersFunctiongen_deconv
Define deconv for generator. The deconv is defined to be a x2 resize_nearest_neighbor operation with additional gen_conv operation. Args:
inpaint_ops.py:60
↓ 3 callersMethodbuild_graph_with_losses
( self, FLAGS, batch_data, training=True, summary=False, reuse=False)
inpaint_model.py:131
↓ 3 callersMethodbuild_inpaint_net
Inpaint network. Args: x: incomplete image, [-1, 1] mask: mask region {0, 1} Returns: [-1, 1] as
inpaint_model.py:28
↓ 3 callersMethodbuild_server_graph
inpaint_model.py:272
↓ 2 callersFunctionbbox2mask
Generate mask tensor from bbox. Args: bbox: tuple, (top, left, height, width) Returns: tf.Tensor: output with shape [1, H, W
inpaint_ops.py:126
↓ 2 callersFunctionbrush_stroke_mask
Generate mask tensor from bbox. Returns: tf.Tensor: output with shape [1, H, W, 1]
inpaint_ops.py:156
↓ 2 callersFunctioncontextual_attention
Contextual attention layer implementation. Contextual attention is first introduced in publication: Generative Image Inpainting with Con
inpaint_ops.py:256
↓ 2 callersFunctionmake_color_wheel
()
inpaint_ops.py:405
↓ 1 callersMethodbuild_gan_discriminator
( self, batch, reuse=False, training=True)
inpaint_model.py:124
↓ 1 callersMethodbuild_infer_graph
inpaint_model.py:215
↓ 1 callersMethodbuild_sn_patch_gan_discriminator
(self, x, reuse=False, training=True)
inpaint_model.py:112
↓ 1 callersMethodbuild_static_infer_graph
inpaint_model.py:263
↓ 1 callersFunctioncompute_color
(u,v)
inpaint_ops.py:439
↓ 1 callersFunctionflow_to_image_tf
Tensorflow ops for computing flow to image.
inpaint_ops.py:498
↓ 1 callersFunctionrandom_bbox
Generate a random tlhw. Returns: tuple: (top, left, height, width)
inpaint_ops.py:105
↓ 1 callersFunctionresize_mask_like
Resize mask like shape of x. Args: mask: Original mask. x: To shape of x. Returns: tf.Tensor: resized mask
inpaint_ops.py:239
↓ 1 callersFunctiontest_contextual_attention
Test contextual attention layer with 3-channel image input (instead of n-channel feature).
inpaint_ops.py:367
Method__init__
(self)
inpaint_model.py:25
Functionflow_to_image
Transfer flow map to image. Part of code forked from flownet.
inpaint_ops.py:469
Functiongenerate_mask
(H, W)
inpaint_ops.py:169
Functionhighlight_flow
Convert flow into middlebury color code image.
inpaint_ops.py:508
Functionhighlight_flow_tf
Tensorflow ops for highlight flow.
inpaint_ops.py:526
Functionimage2edge
Convert image to edges.
inpaint_ops.py:536
Functionlocal_patch
Crop local patch according to bbox. Args: x: input bbox: (top, left, height, width) Returns: tf.Tensor: local patch
inpaint_ops.py:224
Functionmultigpu_graph_def
(model, FLAGS, data, gpu_id=0, loss_type='g')
train.py:10
Functionnpmask
(bbox, height, width, delta_h, delta_w)
inpaint_ops.py:136