MCPcopy Create free account

hub / github.com/a312863063/Model-Swap-Face / functions

Functions183 in github.com/a312863063/Model-Swap-Face

Method__init__
(self, name: str = None, func_name: Any = None, **static_kwargs)
dnnlib/tflib/network.py:74
Method__init__
(self, name: str = "Train", tf_optimizer: str = "tf.train.AdamOptimizer",
dnnlib/tflib/optimizer.py:40
Method__init__
(self, submit_config: submit.SubmitConfig, config_module: types.ModuleType = None, max_epoch: Any = None)
dnnlib/submission/run_context.py:35
Method__init__
(self)
dnnlib/submission/submit.py:75
Method__setattr__
(self, name: str, value: Any)
dnnlib/util.py:45
Method__setstate__
Pickle import.
dnnlib/tflib/network.py:268
Function_legacy_output_transform_func
(*expr, out_mul=1.0, out_add=0.0, out_shrink=1, out_dtype=None)
dnnlib/tflib/network.py:613
Functionabsolute_variable_scope
Forcefully enter the specified variable scope, ignoring any surrounding scopes.
dnnlib/tflib/tfutil.py:74
Methodapply_swa
Perform stochastic weight averaging on the compatible values of all trainable variables from the given network, including sub-networks
dnnlib/tflib/network.py:346
Methodapply_updates
Construct training op to update the registered variables based on their gradients.
dnnlib/tflib/optimizer.py:102
Functionask_yes_no
Ask the user the question until the user inputs a valid answer.
dnnlib/util.py:126
Functionautosummary
Create a new autosummary. Args: name: Name to use in TensorBoard value: TensorFlow expression or python value to track
dnnlib/tflib/autosummary.py:74
Functioncall_func_by_name
Finds the python object with the given name and calls it as a function.
dnnlib/util.py:252
Functionconvert_images_from_uint8
Convert a minibatch of images from uint8 to float32 with configurable dynamic range. Can be used as an input transformation for Network.run().
dnnlib/tflib/tfutil.py:218
Functionconvert_images_to_uint8
Convert a minibatch of images from float32 to uint8 with configurable dynamic range. Can be used as an output transformation for Network.run().
dnnlib/tflib/tfutil.py:228
Functionconvert_path
Convert a normal path to template and the convert it back to a normal path with given path type.
dnnlib/submission/submit.py:130
Methodcopy_compatible_trainables_from
Copy the compatible values of all trainable variables from the given network, including sub-networks
dnnlib/tflib/network.py:332
Functioncopy_files_and_create_dirs
Takes in a list of tuples of (src, dst) paths and copies files. Will create all necessary directories.
dnnlib/util.py:313
Methodcopy_own_vars_from
Copy the values of all variables from the given network, excluding sub-networks.
dnnlib/tflib/network.py:317
Methodcopy_trainables_from
Copy the values of all trainable variables from the given network, including sub-networks.
dnnlib/tflib/network.py:327
Functioncreate_stub
(name, batch_size)
encoder/generator_model.py:8
Functioncreate_var_with_large_initial_value
Create tf.Variable with large initial value without bloating the tf graph.
dnnlib/tflib/tfutil.py:208
Functioncreate_variable_for_generator
(name, batch_size, tiled_dlatent, model_scale=18, tile_size = 1)
encoder/generator_model.py:12
Functionexp2
Exponent in base 2.
dnnlib/tflib/tfutil.py:51
Functionflatten
Shortcut function for flattening a tensor.
dnnlib/tflib/tfutil.py:39
Functionformat_time
Convert the seconds to human readable string with days, hours, minutes and seconds.
dnnlib/util.py:112
Methodforward
(self, x)
encoder/model.py:26
Methodforward
(self, x)
encoder/model.py:47
Methodforward
(self, x)
encoder/model.py:81
Methodforward
(self, x)
encoder/model.py:110
Methodforward
(self, x)
encoder/model.py:162
Methodforward
(self, fsp, fcp)
encoder/model.py:208
Methodforward
(self, x)
encoder/model.py:250
Methodforward
(self, x)
encoder/resnet.py:36
Methodforward
(self, x)
encoder/resnet.py:71
Functiongenerate_face_mask
(im, landmarks_detector)
tools/functions.py:64
Methodgenerate_face_mask
(self, im)
encoder/perceptual_model.py:181
Functiongenerate_face_mask_without_hair
(im, landmarks_detector, ie_polys=None)
tools/functions.py:93
Functionget_dtype_and_ctype
Given a type name string (or an object having a __name__ attribute), return matching Numpy and ctypes types that have the same size in bytes.
dnnlib/util.py:160
Methodget_last_update_interval
How much time passed between the previous two calls to update.
dnnlib/submission/run_context.py:86
Functionget_module_dir_by_obj_name
Get the directory path of the module containing the given object name.
dnnlib/util.py:260
Methodget_params
(self)
encoder/model.py:59
Methodget_params
(self)
encoder/model.py:140
Methodget_params
(self)
encoder/model.py:176
Methodget_params
(self)
encoder/model.py:227
Methodget_tensor
(name)
encoder/generator_model.py:63
Methodget_time_since_last_update
How much time has passed since the last call to update.
dnnlib/submission/run_context.py:82
Methodget_time_since_start
How much time has passed since the creation of the context.
dnnlib/submission/run_context.py:78
Functionget_top_level_function_name
Return the fully-qualified name of a top-level function.
dnnlib/util.py:271
Methodget_var_local_name
Get the local name of a given variable, without any surrounding name scopes.
dnnlib/tflib/network.py:235
Functionimport_handler
Function decorator for declaring custom import handlers.
dnnlib/tflib/network.py:30
Functioninit_tf
Initialize TensorFlow session using good default settings.
dnnlib/tflib/tfutil.py:94
Functioninit_uninitialized_vars
Initialize all tf.Variables that have not already been initialized. Equivalent to the following, but more efficient and does not bloat the tf gra
dnnlib/tflib/tfutil.py:152
Functionis_pickleable
(obj: Any)
dnnlib/util.py:183
Functionlerp
Linear interpolation.
dnnlib/tflib/tfutil.py:57
Functionlerp_clip
Linear interpolation with clip.
dnnlib/tflib/tfutil.py:63
Functionlist_dir_recursively_with_ignore
List all files recursively in a given directory while ignoring given file and directory names. Returns list of tuples containing both absolute and
dnnlib/util.py:280
Functionlog2
Logarithm in base 2.
dnnlib/tflib/tfutil.py:45
Functionmerge_image
(bg_img, fg_img, mask, crop, quad, pad)
tools/functions.py:16
Functionopen_url
Download the given URL and return a binary-mode file object to access the data.
dnnlib/util.py:345
Methodprint_layers
Print a summary table of the network structure.
dnnlib/tflib/network.py:544
Functionproject
(images, masks, projector_name)
project_image.py:32
Functionproject
(images, masks, projector_name)
project_image_without_optimizer.py:29
Methodrecurse
(scope, parent_ops, parent_vars, level)
dnnlib/tflib/network.py:506
Methodregister_gradients
Register the gradients of the given loss function with respect to the given variables. Intended to be called once per GPU.
dnnlib/tflib/optimizer.py:67
Methodreset_trainables
Re-initialize all trainable variables of this network, including sub-networks.
dnnlib/tflib/network.py:196
Methodreset_vars
Re-initialize all variables of this network, including sub-networks.
dnnlib/tflib/network.py:192
Functionsave_summaries
Call FileWriter.add_summary() with all summaries in the default graph, automatically finalizing and merging them on the first call.
dnnlib/tflib/autosummary.py:170
Functionset_user_name_override
Set the global username override value.
dnnlib/submission/submit.py:137
Methodset_var
Set the value of a given variable based on the given NumPy array. Note: This method is very inefficient -- prefer to use tflib.set_vars() when
dnnlib/tflib/network.py:251
Methodsetup_as_moving_average_of
Construct a TensorFlow op that updates the variables of this network to be slightly closer to those of the given network.
dnnlib/tflib/network.py:372
Methodsetup_weight_histograms
Construct summary ops to include histograms of all trainable parameters in TensorBoard.
dnnlib/tflib/network.py:573
Functionshape_to_list
Convert a Tensorflow shape to a list of ints.
dnnlib/tflib/tfutil.py:34
Methodshould_stop
Tell whether a stopping condition has been triggered one way or another.
dnnlib/submission/run_context.py:74
Functionsplit_to_batches
(l, n)
project_image.py:18
Functionsplit_to_batches
(l, n)
project_image_without_optimizer.py:15
Functionstr2bool
(v)
project_image.py:22
Functionstr2bool
(v)
project_image_without_optimizer.py:19
Functionsubmit_run
Create a run dir, gather files related to the run, copy files to the run dir, and launch the run in appropriate place.
dnnlib/submission/submit.py:263
Functiontf_custom_l1_loss
(img1,img2)
encoder/perceptual_model.py:45
Functiontuple_product
Calculate the product of the tuple elements.
dnnlib/util.py:136
Functionunpack_bz2
(src_path)
encoder/perceptual_model.py:54
Methodunwind_key
(obj)
dnnlib/tflib/network.py:423
← previous101–183 of 183, ranked by callers