MCPcopy Create free account

hub / github.com/a312863063/seeprettyface-generator-wanghong / functions

Functions108 in github.com/a312863063/seeprettyface-generator-wanghong

↓ 11 callersMethodrun
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 callersMethodupdate
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 callersFunctionassert_tf_initialized
Check that TensorFlow session has been initialized.
dnnlib/tflib/tfutil.py:122
↓ 3 callersMethod_init_fields
(self)
dnnlib/tflib/network.py:101
↓ 3 callersMethod_init_graph
(self)
dnnlib/tflib/network.py:126
↓ 3 callersMethodclose
Flush, close possible files, and remove stdout/stderr mirroring.
dnnlib/util.py:94
↓ 3 callersMethodfind_var
Find variable by local or global name.
dnnlib/tflib/network.py:241
↓ 3 callersMethodget_loss_scaling_var
Get or create variable representing log2 of the current dynamic loss scaling factor.
dnnlib/tflib/optimizer.py:187
↓ 3 callersFunctionget_obj_from_module
Traverses the object name and returns the last (rightmost) python object.
dnnlib/util.py:236
↓ 3 callersFunctionget_path_from_template
Replace tags in the given path template and return either Windows or Linux formatted path.
dnnlib/submission/submit.py:101
↓ 3 callersFunctionrun
Run the specified ops in the default session.
dnnlib/tflib/tfutil.py:23
↓ 2 callersFunction_create_var
Internal helper for creating autosummary accumulators.
dnnlib/tflib/autosummary.py:42
↓ 2 callersFunction_sanitize_tf_config
(config_dict: dict = None)
dnnlib/tflib/tfutil.py:79
↓ 2 callersFunctionabsolute_name_scope
Forcefully enter the specified name scope, ignoring any surrounding scopes.
dnnlib/tflib/tfutil.py:69
↓ 2 callersMethodclose
Close the context and clean up. Should only be called once.
dnnlib/submission/run_context.py:90
↓ 2 callersMethodcopy_vars_from
Copy the values of all variables from the given network, including sub-networks.
dnnlib/tflib/network.py:322
↓ 2 callersMethodflush
Flush written text to both stdout and a file, if open.
dnnlib/util.py:87
↓ 2 callersFunctionget_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 callersFunctionget_user_name
Get the current user name.
dnnlib/submission/submit.py:143
↓ 2 callersFunctionis_tf_expression
Check whether the input is a valid Tensorflow expression, i.e., Tensorflow Tensor, Variable, or Operation.
dnnlib/tflib/tfutil.py:29
↓ 2 callersMethodreset_own_vars
Re-initialize all variables of this network, excluding sub-networks.
dnnlib/tflib/network.py:188
↓ 2 callersMethodwrite
Write text to stdout (and a file) and optionally flush.
dnnlib/util.py:74
↓ 1 callersMethod__enter__
(self)
dnnlib/submission/run_context.py:55
↓ 1 callersFunction_create_run_dir_local
Create a new run dir with increasing ID number at the start.
dnnlib/submission/submit.py:159
↓ 1 callersFunction_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 callersFunction_handle_legacy_output_transforms
(output_transform, dynamic_kwargs)
dnnlib/tflib/network.py:577
↓ 1 callersFunction_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 callersMethodapply_loss_scaling
Apply dynamic loss scaling for the given expression.
dnnlib/tflib/optimizer.py:198
↓ 1 callersMethodclone
Create a clone of this network with its own copy of the variables.
dnnlib/tflib/network.py:302
↓ 1 callersFunctioncreate_session
Create tf.Session based on config dict.
dnnlib/tflib/tfutil.py:128
↓ 1 callersFunctionfinalize_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 callersFunctionget_obj_by_name
Finds the python object with the given name.
dnnlib/util.py:246
↓ 1 callersMethodget_output_for
Construct TensorFlow expression(s) for the output(s) of this network, given the input expression(s).
dnnlib/tflib/network.py:200
↓ 1 callersFunctionget_template_from_path
Convert a normal path back to its template representation.
dnnlib/submission/submit.py:123
↓ 1 callersFunctionis_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 callersFunctionis_url
Determine whether the given object is a valid URL string.
dnnlib/util.py:329
↓ 1 callersMethodlist_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 callersMethodlist_ops
(self)
dnnlib/tflib/network.py:457
↓ 1 callersFunctionmain
()
generate_wanghong.py:20
↓ 1 callersFunctionmain
()
dnnlib/submission/_internal/run.py:22
↓ 1 callersMethodprint_layers
Print a summary table of the network structure.
dnnlib/tflib/network.py:508
↓ 1 callersMethodreset_optimizer_state
Reset internal state of the underlying optimizer.
dnnlib/tflib/optimizer.py:182
↓ 1 callersFunctionrun_wrapper
Wrap the actual run function call for handling logging, exceptions, typing, etc.
dnnlib/submission/submit.py:224
↓ 1 callersFunctionset_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 callersFunctiontext_save
(file, data)
generate_wanghong.py:15
↓ 1 callersMethodundo_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
Functionabsolute_variable_scope
Forcefully enter the specified variable scope, ignoring any surrounding scopes.
dnnlib/tflib/tfutil.py:74
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
Methodconvert
Create new network with the given parameters, and copy all variables from this network.
dnnlib/tflib/network.py:332
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
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_var_with_large_initial_value
Create tf.Variable with large initial value without bloating the tf graph.
dnnlib/tflib/tfutil.py:208
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
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_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
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
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
Functionopen_url
Download the given URL and return a binary-mode file object to access the data.
dnnlib/util.py:345
Methodrecurse
(scope, parent_ops, parent_vars, level)
dnnlib/tflib/network.py:470
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
Methodsave_my_model
(self)
dnnlib/tflib/network.py:552
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
next →1–100 of 108, ranked by callers