MCPcopy Create free account

hub / github.com/TJUMMG/3DFP_FCGAN / functions

Functions67 in github.com/TJUMMG/3DFP_FCGAN

↓ 46 callersFunctiongen_conv
Define conv for generator. Args: x: Input. cnum: Channel number. ksize: Kernel size. Stride: Convolution stride.
inpaint_ops.py:19
↓ 11 callersFunctionconv2d
(inputs, name, out_channels, bn = False, is_training = False ,activation=False, ksize=3, stride = 1)
util/util.py:17
↓ 10 callersFunctionresBlock
(x, num_outputs, kernel_size = 4, stride=1, activation_fn=tf.nn.relu, normalizer_fn=tcl.batch_norm, scope=None
predictor.py:6
↓ 8 callersFunctiondis_conv
Define conv for discriminator. Activation is set to leaky_relu. Args: x: Input. cnum: Channel number. ksize: Kernel s
inpaint_ops.py:74
↓ 7 callersFunctionconv2d
(inputs, name, out_channels, bn = False, is_training = False ,activation=False, ksize=3, stride = 1)
util/util_bn.py:17
↓ 6 callersFunctionlocal_patch
Crop local patch according to bbox. Args: x: input bbox: (top, left, height, width) Returns: tf.Tensor: local patch
inpaint_ops.py:152
↓ 5 callersFunctionconv
(x, channels, kernel=4, stride=2, pad=0, pad_type='zero', use_bias=True, sn=False, scope='saconv_0')
ops.py:17
↓ 4 callersFunctionconv_block
(x,output_num,is_training,name)
util/util_bn.py:72
↓ 4 callersFunctionconv_block
(x,output_num,is_training,name)
util/util.py:66
↓ 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:50
↓ 4 callersFunctionspectral_norm
(w, iteration=1)
ops.py:152
↓ 3 callersMethodbuild_inpaint_net
Inpaint network. Args: x: incomplete image, [-1, 1] mask: mask region {0, 1} Returns: [-1, 1] as
Model.py:30
↓ 3 callersFunctionflatten
(x)
ops.py:90
↓ 3 callersFunctionhw_flatten
(x)
ops.py:93
↓ 3 callersFunctionrelu
(x)
ops.py:135
↓ 2 callersFunctionbatch_norm
(x, is_training=True, scope='sabatch_norm')
ops.py:146
↓ 2 callersFunctionbbox2mask
Generate mask tensor from bbox. Args: bbox: configuration tuple, (top, left, height, width) config: Config should have configurat
inpaint_ops.py:120
↓ 2 callersMethodbuild_wgan_discriminator
(self, batch_local, batch_global, reuse=False, training=True)
Model.py:159
↓ 2 callersFunctioncontextual_attention
Contextual attention layer implementation. Contextual attention is first introduced in publication: Generative Image Inpainting with Con
inpaint_ops.py:216
↓ 2 callersMethodfind_eye_nose_mouth
(self, pos_map,config)
Model.py:413
↓ 2 callersFunctionhour_glass
(x, output_num, depth, is_training, name)
util/util.py:88
↓ 2 callersFunctionl2_norm
(v, eps=1e-12)
ops.py:179
↓ 2 callersFunctionmake_color_wheel
()
inpaint_ops.py:387
↓ 2 callersFunctionrandom_bbox
Generate a random tlhw with configuration. Args: config: Config should have configuration including IMG_SHAPES, VERTICAL_MARG
inpaint_ops.py:95
↓ 2 callersFunctionspatial_discounting_mask
Generate spatial discounting mask constant. Spatial discounting mask is first introduced in publication: Generative Image Inpainting with
inpaint_ops.py:184
↓ 1 callersMethodbuild_infer_graph
Model.py:351
↓ 1 callersMethodbuild_server_graph
Model.py:394
↓ 1 callersMethodbuild_wgan_global_discriminator
(self, x, reuse=False, training=True)
Model.py:149
↓ 1 callersMethodbuild_wgan_local_discriminator
(self, x, reuse=False, training=True)
Model.py:139
↓ 1 callersFunctioncompute_color
(u,v)
inpaint_ops.py:421
↓ 1 callersFunctionflow_to_image_tf
Tensorflow ops for computing flow to image.
inpaint_ops.py:480
↓ 1 callersFunctionmain
(args)
cropped_image.py:12
↓ 1 callersFunctionresblock
(x_init, channels, use_bias=True, is_training=True, sn=False, scope='saresblock')
ops.py:100
↓ 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:167
↓ 1 callersFunctiontest_contextual_attention
Test contextual attention layer with 3-channel image input (instead of n-channel feature).
inpaint_ops.py:349
Method__call__
(self, x, is_training = True)
predictor.py:30
Method__init__
(self)
Model.py:27
Method__init__
(self, resolution_inp = 256, resolution_op = 256, channel = 3, name = 'resfcn256')
predictor.py:24
Method__init__
(self, resolution_inp = 256, resolution_op = 256)
predictor.py:80
Functionattention
(x, ch, sn=False, scope = 'attention',reuse=False)
inpaint_ops.py:329
Methodbuild_graph_with_losses
(self, batch_data, config, training=True, summary=False, reuse=False)
Model.py:170
Methodbuild_static_infer_graph
Model.py:385
Functiondeconv
(x, channels, kernel=4, stride=2, padding='SAME', use_bias=True, sn=False, scope='sadeconv_0')
ops.py:43
Functiondeconv2d
(inputs, name, out_channels, bn = False, is_training = False ,activation=False, ksize = 4, stride = 2)
util/util_bn.py:35
Functiondeconv2d
(inputs, name, out_channels, bn = False, is_training = False ,activation=False, ksize = 4, stride = 2)
util/util.py:33
Functiondiscriminator_loss
(loss_func, real, fake)
ops.py:186
Functionflow_to_image
Transfer flow map to image. Part of code forked from flownet.
inpaint_ops.py:451
Functionfully_conneted
(x, units, use_bias=True, sn=False, scope='safully_0')
ops.py:68
Functiongenerator_loss
(loss_func, fake)
ops.py:210
Functionglobal_avg_pooling
(x)
ops.py:117
Functionhighlight_flow
Convert flow into middlebury color code image.
inpaint_ops.py:490
Functionhighlight_flow_tf
Tensorflow ops for highlight flow.
inpaint_ops.py:508
Functionhour_glass
(x, output_num, depth, is_training, name)
util/util_bn.py:98
Functionim2uint8
(x)
util/util_bn.py:9
Functionim2uint8
(x)
util/util.py:9
Functionimage2edge
Convert image to edges.
inpaint_ops.py:518
Functionlrelu
(x, alpha=0.2)
ops.py:131
Functionnpmask
(bbox, height, width, delta_h, delta_w)
inpaint_ops.py:132
Methodpredict
(self, image)
predictor.py:100
Methodpredict_batch
(self, images)
predictor.py:109
Functionresblock
(inputs,out_channels,is_training,name)
util/util_bn.py:57
Functionresblock
(inputs,out_channels,is_training,name)
util/util.py:53
Methodrestore
(self, model_path)
predictor.py:97
Functionstr2bool
(x)
inpaint_ops.py:326
Functiontanh
(x)
ops.py:139
Functionup_sample
(x, scale_factor=2)
ops.py:122
Methodvars
(self)
predictor.py:73