Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/JiahuiYu/generative_inpainting
/ functions
Functions
28 in github.com/JiahuiYu/generative_inpainting
⨍
Functions
28
◇
Types & classes
1
↓ 39 callers
Function
gen_conv
Define conv for generator. Args: x: Input. cnum: Channel number. ksize: Kernel size. Stride: Convolution stride.
inpaint_ops.py:22
↓ 6 callers
Function
dis_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 callers
Function
gen_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 callers
Method
build_graph_with_losses
( self, FLAGS, batch_data, training=True, summary=False, reuse=False)
inpaint_model.py:131
↓ 3 callers
Method
build_inpaint_net
Inpaint network. Args: x: incomplete image, [-1, 1] mask: mask region {0, 1} Returns: [-1, 1] as
inpaint_model.py:28
↓ 3 callers
Method
build_server_graph
inpaint_model.py:272
↓ 2 callers
Function
bbox2mask
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 callers
Function
brush_stroke_mask
Generate mask tensor from bbox. Returns: tf.Tensor: output with shape [1, H, W, 1]
inpaint_ops.py:156
↓ 2 callers
Function
contextual_attention
Contextual attention layer implementation. Contextual attention is first introduced in publication: Generative Image Inpainting with Con
inpaint_ops.py:256
↓ 2 callers
Function
make_color_wheel
()
inpaint_ops.py:405
↓ 1 callers
Method
build_gan_discriminator
( self, batch, reuse=False, training=True)
inpaint_model.py:124
↓ 1 callers
Method
build_infer_graph
inpaint_model.py:215
↓ 1 callers
Method
build_sn_patch_gan_discriminator
(self, x, reuse=False, training=True)
inpaint_model.py:112
↓ 1 callers
Method
build_static_infer_graph
inpaint_model.py:263
↓ 1 callers
Function
compute_color
(u,v)
inpaint_ops.py:439
↓ 1 callers
Function
flow_to_image_tf
Tensorflow ops for computing flow to image.
inpaint_ops.py:498
↓ 1 callers
Function
random_bbox
Generate a random tlhw. Returns: tuple: (top, left, height, width)
inpaint_ops.py:105
↓ 1 callers
Function
resize_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 callers
Function
test_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
Function
flow_to_image
Transfer flow map to image. Part of code forked from flownet.
inpaint_ops.py:469
Function
generate_mask
(H, W)
inpaint_ops.py:169
Function
highlight_flow
Convert flow into middlebury color code image.
inpaint_ops.py:508
Function
highlight_flow_tf
Tensorflow ops for highlight flow.
inpaint_ops.py:526
Function
image2edge
Convert image to edges.
inpaint_ops.py:536
Function
local_patch
Crop local patch according to bbox. Args: x: input bbox: (top, left, height, width) Returns: tf.Tensor: local patch
inpaint_ops.py:224
Function
multigpu_graph_def
(model, FLAGS, data, gpu_id=0, loss_type='g')
train.py:10
Function
npmask
(bbox, height, width, delta_h, delta_w)
inpaint_ops.py:136