Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/a312863063/Model-Swap-Face
/ functions
Functions
183 in github.com/a312863063/Model-Swap-Face
⨍
Functions
183
◇
Types & classes
20
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
Function
absolute_variable_scope
Forcefully enter the specified variable scope, ignoring any surrounding scopes.
dnnlib/tflib/tfutil.py:74
Method
apply_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
Method
apply_updates
Construct training op to update the registered variables based on their gradients.
dnnlib/tflib/optimizer.py:102
Function
ask_yes_no
Ask the user the question until the user inputs a valid answer.
dnnlib/util.py:126
Function
autosummary
Create a new autosummary. Args: name: Name to use in TensorBoard value: TensorFlow expression or python value to track
dnnlib/tflib/autosummary.py:74
Function
call_func_by_name
Finds the python object with the given name and calls it as a function.
dnnlib/util.py:252
Function
convert_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
Function
convert_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
Function
convert_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
Method
copy_compatible_trainables_from
Copy the compatible values of all trainable variables from the given network, including sub-networks
dnnlib/tflib/network.py:332
Function
copy_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
Method
copy_own_vars_from
Copy the values of all variables from the given network, excluding sub-networks.
dnnlib/tflib/network.py:317
Method
copy_trainables_from
Copy the values of all trainable variables from the given network, including sub-networks.
dnnlib/tflib/network.py:327
Function
create_stub
(name, batch_size)
encoder/generator_model.py:8
Function
create_var_with_large_initial_value
Create tf.Variable with large initial value without bloating the tf graph.
dnnlib/tflib/tfutil.py:208
Function
create_variable_for_generator
(name, batch_size, tiled_dlatent, model_scale=18, tile_size = 1)
encoder/generator_model.py:12
Function
exp2
Exponent in base 2.
dnnlib/tflib/tfutil.py:51
Function
flatten
Shortcut function for flattening a tensor.
dnnlib/tflib/tfutil.py:39
Function
format_time
Convert the seconds to human readable string with days, hours, minutes and seconds.
dnnlib/util.py:112
Method
forward
(self, x)
encoder/model.py:26
Method
forward
(self, x)
encoder/model.py:47
Method
forward
(self, x)
encoder/model.py:81
Method
forward
(self, x)
encoder/model.py:110
Method
forward
(self, x)
encoder/model.py:162
Method
forward
(self, fsp, fcp)
encoder/model.py:208
Method
forward
(self, x)
encoder/model.py:250
Method
forward
(self, x)
encoder/resnet.py:36
Method
forward
(self, x)
encoder/resnet.py:71
Function
generate_face_mask
(im, landmarks_detector)
tools/functions.py:64
Method
generate_face_mask
(self, im)
encoder/perceptual_model.py:181
Function
generate_face_mask_without_hair
(im, landmarks_detector, ie_polys=None)
tools/functions.py:93
Function
get_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
Method
get_last_update_interval
How much time passed between the previous two calls to update.
dnnlib/submission/run_context.py:86
Function
get_module_dir_by_obj_name
Get the directory path of the module containing the given object name.
dnnlib/util.py:260
Method
get_params
(self)
encoder/model.py:59
Method
get_params
(self)
encoder/model.py:140
Method
get_params
(self)
encoder/model.py:176
Method
get_params
(self)
encoder/model.py:227
Method
get_tensor
(name)
encoder/generator_model.py:63
Method
get_time_since_last_update
How much time has passed since the last call to update.
dnnlib/submission/run_context.py:82
Method
get_time_since_start
How much time has passed since the creation of the context.
dnnlib/submission/run_context.py:78
Function
get_top_level_function_name
Return the fully-qualified name of a top-level function.
dnnlib/util.py:271
Method
get_var_local_name
Get the local name of a given variable, without any surrounding name scopes.
dnnlib/tflib/network.py:235
Function
import_handler
Function decorator for declaring custom import handlers.
dnnlib/tflib/network.py:30
Function
init_tf
Initialize TensorFlow session using good default settings.
dnnlib/tflib/tfutil.py:94
Function
init_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
Function
is_pickleable
(obj: Any)
dnnlib/util.py:183
Function
lerp
Linear interpolation.
dnnlib/tflib/tfutil.py:57
Function
lerp_clip
Linear interpolation with clip.
dnnlib/tflib/tfutil.py:63
Function
list_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
Function
log2
Logarithm in base 2.
dnnlib/tflib/tfutil.py:45
Function
merge_image
(bg_img, fg_img, mask, crop, quad, pad)
tools/functions.py:16
Function
open_url
Download the given URL and return a binary-mode file object to access the data.
dnnlib/util.py:345
Method
print_layers
Print a summary table of the network structure.
dnnlib/tflib/network.py:544
Function
project
(images, masks, projector_name)
project_image.py:32
Function
project
(images, masks, projector_name)
project_image_without_optimizer.py:29
Method
recurse
(scope, parent_ops, parent_vars, level)
dnnlib/tflib/network.py:506
Method
register_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
Method
reset_trainables
Re-initialize all trainable variables of this network, including sub-networks.
dnnlib/tflib/network.py:196
Method
reset_vars
Re-initialize all variables of this network, including sub-networks.
dnnlib/tflib/network.py:192
Function
save_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
Function
set_user_name_override
Set the global username override value.
dnnlib/submission/submit.py:137
Method
set_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
Method
setup_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
Method
setup_weight_histograms
Construct summary ops to include histograms of all trainable parameters in TensorBoard.
dnnlib/tflib/network.py:573
Function
shape_to_list
Convert a Tensorflow shape to a list of ints.
dnnlib/tflib/tfutil.py:34
Method
should_stop
Tell whether a stopping condition has been triggered one way or another.
dnnlib/submission/run_context.py:74
Function
split_to_batches
(l, n)
project_image.py:18
Function
split_to_batches
(l, n)
project_image_without_optimizer.py:15
Function
str2bool
(v)
project_image.py:22
Function
str2bool
(v)
project_image_without_optimizer.py:19
Function
submit_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
Function
tf_custom_l1_loss
(img1,img2)
encoder/perceptual_model.py:45
Function
tuple_product
Calculate the product of the tuple elements.
dnnlib/util.py:136
Function
unpack_bz2
(src_path)
encoder/perceptual_model.py:54
Method
unwind_key
(obj)
dnnlib/tflib/network.py:423
← previous
101–183 of 183, ranked by callers