MCPcopy Create free account

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

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

↓ 26 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:384
↓ 8 callersMethodset_dlatents
(self, dlatents)
encoder/generator_model.py:98
↓ 6 callersMethod__init__
(self, n_classes, *args, **kwargs)
encoder/model.py:240
↓ 6 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
↓ 5 callersFunctionload_image
(image, image_size=256, sharpen=False)
encoder/perceptual_model.py:18
↓ 4 callersMethodadd_placeholder
(self, var_name)
encoder/perceptual_model.py:106
↓ 4 callersFunctionassert_tf_initialized
Check that TensorFlow session has been initialized.
dnnlib/tflib/tfutil.py:122
↓ 4 callersMethodassign_placeholder
(self, var_name, var_val)
encoder/perceptual_model.py:111
↓ 4 callersFunctioncreate_layer_basic
(in_chan, out_chan, bnum, stride=1)
encoder/resnet.py:51
↓ 3 callersMethod_init_fields
(self)
dnnlib/tflib/network.py:101
↓ 3 callersMethod_init_graph
(self)
dnnlib/tflib/network.py:126
↓ 3 callersMethodconvert
Create new network with the given parameters, and copy all variables from this network.
dnnlib/tflib/network.py:362
↓ 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 callersMethodget_output_for
Construct TensorFlow expression(s) for the output(s) of this network, given the input expression(s).
dnnlib/tflib/network.py:200
↓ 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
Flush, close possible files, and remove stdout/stderr mirroring.
dnnlib/util.py:94
↓ 2 callersMethodclose
Close the context and clean up. Should only be called once.
dnnlib/submission/run_context.py:90
↓ 2 callersFunctionconv3x3
3x3 convolution with padding
encoder/resnet.py:14
↓ 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 callersMethodgenerate_images
(self, dlatents=None)
encoder/generator_model.py:134
↓ 2 callersMethodget_dlatents
(self)
encoder/generator_model.py:122
↓ 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 callersFunctionis_url
Determine whether the given object is a valid URL string.
dnnlib/util.py:329
↓ 2 callersMethodreset_own_vars
Re-initialize all variables of this network, excluding sub-networks.
dnnlib/tflib/network.py:188
↓ 2 callersFunctionrotate
(img, degree)
tools/functions.py:6
↓ 2 callersMethodset_dlatent_avg
(self, dlatent_avg)
encoder/generator_model.py:128
↓ 2 callersFunctiontf_custom_logcosh_loss
(img1,img2)
encoder/perceptual_model.py:48
↓ 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 callersMethod__init__
(self)
encoder/resnet.py:59
↓ 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:593
↓ 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 callersMethodbuild_perceptual_model
(self, generator, discriminator=None)
encoder/perceptual_model.py:114
↓ 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 callersFunctioncreate_stub
(batch_size)
encoder/perceptual_model.py:51
↓ 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 callersFunctionfind_max_region
(bw_img)
main.py:48
↓ 1 callersMethodget_dlatent_avg
(self)
encoder/generator_model.py:125
↓ 1 callersMethodget_landmarks
(self, image)
tools/landmarks_detector.py:12
↓ 1 callersFunctionget_obj_by_name
Finds the python object with the given name.
dnnlib/util.py:246
↓ 1 callersMethodget_params
(self)
encoder/model.py:276
↓ 1 callersMethodget_params
(self)
encoder/resnet.py:90
↓ 1 callersFunctionget_template_from_path
Convert a normal path back to its template representation.
dnnlib/submission/submit.py:123
↓ 1 callersMethodget_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
↓ 1 callersFunctionimage_align
(src_file, face_landmarks, output_size=1024, transform_size=4096, enable_padding=True, x_scale=1, y_scale=1, e
tools/face_alignment.py:8
↓ 1 callersMethodinit_weight
(self)
encoder/model.py:31
↓ 1 callersMethodinit_weight
(self)
encoder/model.py:52
↓ 1 callersMethodinit_weight
(self)
encoder/model.py:90
↓ 1 callersMethodinit_weight
(self)
encoder/model.py:133
↓ 1 callersMethodinit_weight
(self)
encoder/model.py:169
↓ 1 callersMethodinit_weight
(self)
encoder/model.py:220
↓ 1 callersMethodinit_weight
(self)
encoder/model.py:269
↓ 1 callersMethodinit_weight
(self)
encoder/resnet.py:82
↓ 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 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:501
↓ 1 callersMethodlist_ops
(self)
dnnlib/tflib/network.py:493
↓ 1 callersFunctionmain
Extracts and aligns all faces from images using DLib and a function from original FFHQ dataset preparation step
main.py:60
↓ 1 callersFunctionmain
()
dnnlib/submission/_internal/run.py:22
↓ 1 callersMethodoptimize
(self, vars_to_optimize, iterations=200, use_optimizer='adam')
encoder/perceptual_model.py:223
↓ 1 callersMethodreset_dlatent_avg
(self)
encoder/generator_model.py:131
↓ 1 callersMethodreset_dlatents
(self)
encoder/generator_model.py:95
↓ 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 callersMethodset_reference_image
(self, image)
encoder/perceptual_model.py:210
↓ 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 callersMethodstochastic_clip_dlatents
(self)
encoder/generator_model.py:119
↓ 1 callersFunctiontf_custom_adaptive_loss
(a,b)
encoder/perceptual_model.py:31
↓ 1 callersFunctiontf_custom_adaptive_rgb_loss
(a,b)
encoder/perceptual_model.py:40
↓ 1 callersMethodundo_loss_scaling
Undo the effect of dynamic loss scaling for the given expression.
dnnlib/tflib/optimizer.py:207
↓ 1 callersFunctionvis_parsing_maps
(im, parsing_anno, stride, save_im=False, save_path='vis_results/parsing_map_on_im.jpg')
main.py:17
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__
:param predictor_model_path: path to shape_predictor_68_face_landmarks.dat file
tools/landmarks_detector.py:5
Method__init__
(self, args, batch_size=1, perc_model=None, sess=None)
encoder/perceptual_model.py:62
Method__init__
(self, model, batch_size, custom_input=None, clipping_threshold=2, tiled_dlatent=False, model_res=1024, random
encoder/generator_model.py:27
Method__init__
(self, in_chan, out_chan, ks=3, stride=1, padding=1, *args, **kwargs)
encoder/model.py:15
Method__init__
(self, in_chan, mid_chan, n_classes, *args, **kwargs)
encoder/model.py:40
Method__init__
(self, in_chan, out_chan, *args, **kwargs)
encoder/model.py:72
Method__init__
(self, *args, **kwargs)
encoder/model.py:99
Method__init__
(self, *args, **kwargs)
encoder/model.py:154
Method__init__
(self, in_chan, out_chan, *args, **kwargs)
encoder/model.py:189
Method__init__
(self, in_chan, out_chan, stride=1)
encoder/resnet.py:21
Method__init__
(self, file_name: str = None, file_mode: str = "w", should_flush: bool = True)
dnnlib/util.py:55
next →1–100 of 183, ranked by callers