Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/a312863063/seeprettyface-generator-wanghong
/ functions
Functions
108 in github.com/a312863063/seeprettyface-generator-wanghong
⨍
Functions
108
◇
Types & classes
8
↓ 11 callers
Method
run
Run this network for the given NumPy array(s), and return the output(s) as NumPy array(s). Args: input_transform: A dict speci
dnnlib/tflib/network.py:354
↓ 5 callers
Method
update
Do general housekeeping and keep the state of the context up-to-date. Should be called often enough but not in a tight loop.
dnnlib/submission/run_context.py:61
↓ 4 callers
Function
assert_tf_initialized
Check that TensorFlow session has been initialized.
dnnlib/tflib/tfutil.py:122
↓ 3 callers
Method
_init_fields
(self)
dnnlib/tflib/network.py:101
↓ 3 callers
Method
_init_graph
(self)
dnnlib/tflib/network.py:126
↓ 3 callers
Method
close
Flush, close possible files, and remove stdout/stderr mirroring.
dnnlib/util.py:94
↓ 3 callers
Method
find_var
Find variable by local or global name.
dnnlib/tflib/network.py:241
↓ 3 callers
Method
get_loss_scaling_var
Get or create variable representing log2 of the current dynamic loss scaling factor.
dnnlib/tflib/optimizer.py:187
↓ 3 callers
Function
get_obj_from_module
Traverses the object name and returns the last (rightmost) python object.
dnnlib/util.py:236
↓ 3 callers
Function
get_path_from_template
Replace tags in the given path template and return either Windows or Linux formatted path.
dnnlib/submission/submit.py:101
↓ 3 callers
Function
run
Run the specified ops in the default session.
dnnlib/tflib/tfutil.py:23
↓ 2 callers
Function
_create_var
Internal helper for creating autosummary accumulators.
dnnlib/tflib/autosummary.py:42
↓ 2 callers
Function
_sanitize_tf_config
(config_dict: dict = None)
dnnlib/tflib/tfutil.py:79
↓ 2 callers
Function
absolute_name_scope
Forcefully enter the specified name scope, ignoring any surrounding scopes.
dnnlib/tflib/tfutil.py:69
↓ 2 callers
Method
close
Close the context and clean up. Should only be called once.
dnnlib/submission/run_context.py:90
↓ 2 callers
Method
copy_vars_from
Copy the values of all variables from the given network, including sub-networks.
dnnlib/tflib/network.py:322
↓ 2 callers
Method
flush
Flush written text to both stdout and a file, if open.
dnnlib/util.py:87
↓ 2 callers
Function
get_module_from_obj_name
Searches for the underlying module behind the name to some python object. Returns the module and the object name (original name with module part r
dnnlib/util.py:195
↓ 2 callers
Function
get_user_name
Get the current user name.
dnnlib/submission/submit.py:143
↓ 2 callers
Function
is_tf_expression
Check whether the input is a valid Tensorflow expression, i.e., Tensorflow Tensor, Variable, or Operation.
dnnlib/tflib/tfutil.py:29
↓ 2 callers
Method
reset_own_vars
Re-initialize all variables of this network, excluding sub-networks.
dnnlib/tflib/network.py:188
↓ 2 callers
Method
write
Write text to stdout (and a file) and optionally flush.
dnnlib/util.py:74
↓ 1 callers
Method
__enter__
(self)
dnnlib/submission/run_context.py:55
↓ 1 callers
Function
_create_run_dir_local
Create a new run dir with increasing ID number at the start.
dnnlib/submission/submit.py:159
↓ 1 callers
Function
_get_next_run_id_local
Reads all directory names in a given directory (non-recursive) and returns the next (increasing) run id. Assumes IDs are numbers at the start of the d
dnnlib/submission/submit.py:180
↓ 1 callers
Function
_handle_legacy_output_transforms
(output_transform, dynamic_kwargs)
dnnlib/tflib/network.py:577
↓ 1 callers
Function
_populate_run_dir
Copy all necessary files into the run dir. Assumes that the dir exists, is local, and is writable.
dnnlib/submission/submit.py:196
↓ 1 callers
Method
apply_loss_scaling
Apply dynamic loss scaling for the given expression.
dnnlib/tflib/optimizer.py:198
↓ 1 callers
Method
clone
Create a clone of this network with its own copy of the variables.
dnnlib/tflib/network.py:302
↓ 1 callers
Function
create_session
Create tf.Session based on config dict.
dnnlib/tflib/tfutil.py:128
↓ 1 callers
Function
finalize_autosummaries
Create the necessary ops to include autosummaries in TensorBoard report. Note: This should be done only once per graph.
dnnlib/tflib/autosummary.py:112
↓ 1 callers
Function
get_obj_by_name
Finds the python object with the given name.
dnnlib/util.py:246
↓ 1 callers
Method
get_output_for
Construct TensorFlow expression(s) for the output(s) of this network, given the input expression(s).
dnnlib/tflib/network.py:200
↓ 1 callers
Function
get_template_from_path
Convert a normal path back to its template representation.
dnnlib/submission/submit.py:123
↓ 1 callers
Function
is_top_level_function
Determine whether the given object is a top-level function, i.e., defined at module scope using 'def'.
dnnlib/util.py:266
↓ 1 callers
Function
is_url
Determine whether the given object is a valid URL string.
dnnlib/util.py:329
↓ 1 callers
Method
list_layers
Returns a list of (layer_name, output_expr, trainable_vars) tuples corresponding to individual layers of the network. Mainly intended to be us
dnnlib/tflib/network.py:465
↓ 1 callers
Method
list_ops
(self)
dnnlib/tflib/network.py:457
↓ 1 callers
Function
main
()
generate_wanghong.py:20
↓ 1 callers
Function
main
()
dnnlib/submission/_internal/run.py:22
↓ 1 callers
Method
print_layers
Print a summary table of the network structure.
dnnlib/tflib/network.py:508
↓ 1 callers
Method
reset_optimizer_state
Reset internal state of the underlying optimizer.
dnnlib/tflib/optimizer.py:182
↓ 1 callers
Function
run_wrapper
Wrap the actual run function call for handling logging, exceptions, typing, etc.
dnnlib/submission/submit.py:224
↓ 1 callers
Function
set_vars
Set the values of given tf.Variables. Equivalent to the following, but more efficient and does not bloat the tf graph: tflib.run([tf.assign(v
dnnlib/tflib/tfutil.py:182
↓ 1 callers
Function
text_save
(file, data)
generate_wanghong.py:15
↓ 1 callers
Method
undo_loss_scaling
Undo the effect of dynamic loss scaling for the given expression.
dnnlib/tflib/optimizer.py:207
Method
__delattr__
(self, name: str)
dnnlib/util.py:48
Method
__enter__
(self)
dnnlib/util.py:68
Method
__exit__
(self, exc_type: Any, exc_value: Any, traceback: Any)
dnnlib/util.py:71
Method
__exit__
(self, exc_type: Any, exc_value: Any, traceback: Any)
dnnlib/submission/run_context.py:58
Method
__getattr__
(self, name: str)
dnnlib/util.py:39
Method
__getstate__
Pickle export.
dnnlib/tflib/network.py:256
Method
__init__
(self, file_name: str = None, file_mode: str = "w", should_flush: bool = True)
dnnlib/util.py:55
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:597
Function
absolute_variable_scope
Forcefully enter the specified variable scope, ignoring any surrounding scopes.
dnnlib/tflib/tfutil.py:74
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
Method
convert
Create new network with the given parameters, and copy all variables from this network.
dnnlib/tflib/network.py:332
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
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_var_with_large_initial_value
Create tf.Variable with large initial value without bloating the tf graph.
dnnlib/tflib/tfutil.py:208
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
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_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
Get the value of a given variable as NumPy array. Note: This method is very inefficient -- prefer to use tflib.run(list_of_vars) whenever poss
dnnlib/tflib/network.py:246
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
open_url
Download the given URL and return a binary-mode file object to access the data.
dnnlib/util.py:345
Method
recurse
(scope, parent_ops, parent_vars, level)
dnnlib/tflib/network.py:470
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
Method
save_my_model
(self)
dnnlib/tflib/network.py:552
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
next →
1–100 of 108, ranked by callers