MCPcopy Create free account

hub / github.com/XingangPan/DragGAN / functions

Functions1,199 in github.com/XingangPan/DragGAN

↓ 1 callersFunction_module_to_src
r"""Query the source code of a given Python module.
stylegan_human/torch_utils/persistence.py:208
↓ 1 callersMethod_set_args_async
(self, **args)
visualizer_drag.py:298
↓ 1 callersMethod_set_args_sync
(self, **args)
visualizer_drag.py:310
↓ 1 callersFunction_setup_circle
(hole)
gui_utils/gl_utils.py:410
↓ 1 callersFunction_setup_rect
(rx, ry)
gui_utils/gl_utils.py:394
↓ 1 callersFunction_should_use_custom_op
()
torch_utils/ops/grid_sample_gradfix.py:33
↓ 1 callersFunction_should_use_custom_op
()
stylegan_human/torch_utils/ops/grid_sample_gradfix.py:36
↓ 1 callersFunction_src_to_module
r"""Get or create a Python module for the given source code.
torch_utils/persistence.py:216
↓ 1 callersFunction_src_to_module
r"""Get or create a Python module for the given source code.
stylegan_human/torch_utils/persistence.py:218
↓ 1 callersFunction_sync
r"""Synchronize the global cumulative counters across devices and processes. Called internally by `Collector.update()`.
torch_utils/training_stats.py:234
↓ 1 callersFunction_sync
r"""Synchronize the global cumulative counters across devices and processes. Called internally by `Collector.update()`.
stylegan_human/torch_utils/training_stats.py:236
↓ 1 callersFunction_upfirdn2d_ref
Slow reference implementation of `upfirdn2d()` using standard PyTorch ops.
torch_utils/ops/upfirdn2d.py:167
↓ 1 callersFunction_upfirdn2d_ref
Slow reference implementation of `upfirdn2d()` using standard PyTorch ops.
stylegan_human/torch_utils/ops/upfirdn2d.py:171
↓ 1 callersMethodaccumulate_gradients
(self, phase, real_img, real_c, gen_z, gen_c, gain, cur_nimg)
stylegan_human/training/loss.py:20
↓ 1 callersMethodaccumulate_gradients
(self, phase, real_img, real_c, gen_z, gen_c, gain, cur_nimg)
training/loss.py:20
↓ 1 callersMethodaction
(self, click, down, x, y)
viz/drag_widget.py:32
↓ 1 callersMethodadd_point
(self, click, x, y)
viz/drag_widget.py:38
↓ 1 callersMethodadd_recent
(self, pkl, ignore_errors=False)
viz/pickle_widget.py:38
↓ 1 callersFunctionalign_face_for_insetgan
:param img: numpy array rgb :return: PIL Image
stylegan_human/utils/face_alignment.py:34
↓ 1 callersMethodapply_gradients
(self, grads_and_vars)
stylegan_human/dnnlib/tflib/optimizer.py:310
↓ 1 callersMethodapply_loss_scaling
Apply dynamic loss scaling for the given expression.
stylegan_human/dnnlib/tflib/optimizer.py:277
↓ 1 callersMethodas_dict
r"""Returns the averages accumulated between the last two calls to `update()` as an `dnnlib.EasyDict`. The contents are as follows:
torch_utils/training_stats.py:212
↓ 1 callersMethodas_dict
r"""Returns the averages accumulated between the last two calls to `update()` as an `dnnlib.EasyDict`. The contents are as follows:
stylegan_human/torch_utils/training_stats.py:214
↓ 1 callersMethodball_holder_loss_lazy
(self, new_G, num_of_sampled_latents, w_batch, use_wandb=False)
stylegan_human/pti/training/coaches/localitly_regulizer.py:31
↓ 1 callersFunctionbg_white
(seg, raw, blur_level=3, gaussian=81)
stylegan_human/bg_white.py:8
↓ 1 callersFunctioncall_func_by_name
Finds the python object with the given name and calls it as a function.
stylegan_human/dnnlib/util.py:280
↓ 1 callersFunctioncall_func_by_name
Finds the python object with the given name and calls it as a function.
dnnlib/util.py:293
↓ 1 callersMethodcheck_update_mask
(self, **args)
visualizer_drag.py:104
↓ 1 callersMethodclose
(self)
visualizer_drag.py:66
↓ 1 callersMethodclose
Flush, close possible files, and remove stdout/stderr mirroring.
dnnlib/util.py:100
↓ 1 callersMethodclose
(self)
gui_utils/glfw_window.py:45
↓ 1 callersMethodcompute_gradients
(self, loss, var_list, gate_gradients=tf.train.Optimizer.GATE_NONE)
stylegan_human/dnnlib/tflib/optimizer.py:306
↓ 1 callersMethodconfigure_optimizers
(self)
stylegan_human/pti/training/coaches/base_coach.py:101
↓ 1 callersFunctionconvert_blur_kernel
Not quite sure why there is a factor of 4 here
stylegan_human/legacy.py:143
↓ 1 callersFunctionconvert_network_pickle
Convert legacy network pickle into the native PyTorch format. The tool is able to load the main network configurations exported using the TensorF
legacy.py:297
↓ 1 callersFunctionconvert_tf_discriminator
(tf_D)
legacy.py:208
↓ 1 callersFunctioncreate_alongside_images
(images)
stylegan_human/utils/log_utils.py:71
↓ 1 callersFunctioncreate_session
Create tf.Session based on config dict.
stylegan_human/dnnlib/tflib/tfutil.py:143
↓ 1 callersFunctioncrop_img_with_padding
(img, keypoints, rect)
stylegan_human/alignment.py:36
↓ 1 callersMethoddelete
(self)
gui_utils/gl_utils.py:273
↓ 1 callersFunctiondetermine_config
(state_nv)
stylegan_human/legacy.py:150
↓ 1 callersFunctiondownload_file
Download a file if it does not already exist.
scripts/download_model.py:7
↓ 1 callersMethoddraw_frame
(self)
visualizer_drag.py:133
↓ 1 callersMethoddraw_mask
(self, x, y)
viz/drag_widget.py:56
↓ 1 callersFunctiondraw_mask_on_image
(image, mask)
gradio_utils/utils.py:112
↓ 1 callersFunctiondraw_points_on_image
(image, points, curr_point=None, hi
gradio_utils/utils.py:44
↓ 1 callersFunctiondraw_rect
(*, pos=0, pos2=None, size=None, align=0, rint=False, color=1, alpha=1, rounding=0)
gui_utils/gl_utils.py:377
↓ 1 callersMethoddual_optimizer
Given a face_w, optimize a body_w with suitable body pose & shape for face_w
stylegan_human/insetgan.py:117
↓ 1 callersFunctionfinalize_autosummaries
Create the necessary ops to include autosummaries in TensorBoard report. Note: This should be done only once per graph.
stylegan_human/dnnlib/tflib/autosummary.py:120
↓ 1 callersFunctionfunc
(x)
stylegan_human/dnnlib/tflib/ops/upfirdn_2d.py:133
↓ 1 callersFunctionfunc_nonzero_2nd_grad
(x, b)
stylegan_human/dnnlib/tflib/ops/fused_bias_act.py:178
↓ 1 callersFunctionfunc_zero_2nd_grad
(x, b)
stylegan_human/dnnlib/tflib/ops/fused_bias_act.py:164
↓ 1 callersFunctiongenerate_images
Generate images using pretrained network pickle. Examples: \b # Generate an image using pre-trained AFHQv2 model ("Ours" in Figure 1, le
gen_images.py:80
↓ 1 callersFunctiongenerate_images
( ctx: click.Context, network_pkl: str, seeds: Optional[List[int]], truncation_psi: float,
stylegan_human/generate.py:48
↓ 1 callersFunctiongenerate_style_mix
( network_pkl: str, row_seeds: List[int], col_seeds: List[int], col_styles: List[int], tru
stylegan_human/style_mixing.py:41
↓ 1 callersFunctionget_array
(string, *, dropshadow_radius: int=None, **kwargs)
gui_utils/text_utils.py:36
↓ 1 callersMethodget_border_mask
(A, x, spec)
stylegan_human/insetgan.py:67
↓ 1 callersFunctionget_default_font
()
gui_utils/text_utils.py:22
↓ 1 callersMethodget_details
(self, idx)
stylegan_human/training/dataset.py:105
↓ 1 callersMethodget_details
(self, idx)
training/dataset.py:105
↓ 1 callersMethodget_e4e_inversion
(self, image)
stylegan_human/pti/training/coaches/base_coach.py:143
↓ 1 callersMethodget_inversion
(self, w_path_dir, image_name, image)
stylegan_human/pti/training/coaches/base_coach.py:55
↓ 1 callersMethodget_label
(self, idx)
stylegan_human/training_scripts/sg2/training/dataset.py:103
↓ 1 callersMethodget_label
(self, idx)
stylegan_human/training_scripts/sg3/training/dataset.py:106
↓ 1 callersFunctionget_latest_points_pair
(points_dict)
gradio_utils/utils.py:149
↓ 1 callersMethodget_morphed_w_code
(self, new_w_code, fixed_w)
stylegan_human/pti/training/coaches/localitly_regulizer.py:19
↓ 1 callersMethodget_network
(self, pkl, key, **tweak_kwargs)
viz/renderer.py:133
↓ 1 callersFunctionget_obj_by_name
Finds the python object with the given name.
stylegan_human/dnnlib/util.py:274
↓ 1 callersFunctionget_obj_by_name
Finds the python object with the given name.
dnnlib/util.py:287
↓ 1 callersMethodget_output_for
Construct TensorFlow expression(s) for the output(s) of this network, given the input expression(s).
stylegan_human/dnnlib/tflib/network.py:201
↓ 1 callersMethodget_result
(self)
visualizer_drag.py:315
↓ 1 callersFunctionget_valid_mask
Convert mask from gr.Image(0 to 255, RGBA) to binary mask.
gradio_utils/utils.py:33
↓ 1 callersFunctiongrad2_d_x
(d_dx, d_db, x, y)
stylegan_human/dnnlib/tflib/ops/fused_bias_act.py:156
↓ 1 callersFunctiongrad_impl
(dy, x)
stylegan_human/dnnlib/tflib/ops/fused_bias_act.py:182
↓ 1 callersMethodhandle_w
(self, w, return_ws)
stylegan_human/pti/pti_models/e4e/latent_codes_pool.py:42
↓ 1 callersFunctionimresize
(image, size)
stylegan_human/training/networks_stylegan3.py:527
↓ 1 callersFunctionimresize
(image, size)
stylegan_human/training/networks_stylegan2.py:569
↓ 1 callersFunctionimresize
(image, size)
training/networks_stylegan3.py:537
↓ 1 callersFunctionimresize
(image, size)
training/networks_stylegan2.py:576
↓ 1 callersFunctioninit_dataset_kwargs
(data, square=False)
stylegan_human/training_scripts/sg3/train.py:104
↓ 1 callersMethodinitilize_e4e
(self)
stylegan_human/pti/training/coaches/base_coach.py:132
↓ 1 callersFunctionis_image_file
(filename)
stylegan_human/utils/data_utils.py:14
↓ 1 callersMethodis_skipping_frames
(self)
gui_utils/glfw_window.py:136
↓ 1 callersFunctionis_top_level_function
Determine whether the given object is a top-level function, i.e., defined at module scope using 'def'.
stylegan_human/dnnlib/util.py:300
↓ 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:312
↓ 1 callersFunctionis_url
Determine whether the given object is a valid URL string.
stylegan_human/dnnlib/util.py:366
↓ 1 callersFunctionis_url
Determine whether the given object is a valid URL string.
dnnlib/util.py:378
↓ 1 callersFunctionitem_width
(width=None)
gui_utils/imgui_utils.py:70
↓ 1 callersFunctionl2_loss
(real_images, generated_images)
stylegan_human/pti/training/coaches/localitly_regulizer.py:8
↓ 1 callersFunctionl2_norm
(input, axis=1)
stylegan_human/pti/pti_models/e4e/encoders/helpers.py:16
↓ 1 callersFunctionlaunch_training
(c, desc, outdir, dry_run)
stylegan_human/training_scripts/sg3/train.py:53
↓ 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
stylegan_human/dnnlib/tflib/network.py:465
↓ 1 callersMethodlist_ops
(self)
stylegan_human/dnnlib/tflib/network.py:457
↓ 1 callersMethodlist_runs_and_pkls
(self, parents)
viz/pickle_widget.py:136
↓ 1 callersFunctionload_network_pkl
(f, force_fp16=False)
legacy.py:22
↓ 1 callersFunctionload_network_pkl
(f, force_fp16=False, G_only=False)
stylegan_human/legacy.py:22
↓ 1 callersMethodload_pickle
(self, pkl, ignore_errors=False)
visualizer_drag.py:75
↓ 1 callersMethodload_weights
(self)
stylegan_human/pti/pti_models/e4e/psp.py:40
↓ 1 callersFunctionmain
Interactive model visualizer. Optional PATH argument can be used specify which .pkl file to load.
visualizer_drag.py:353
↓ 1 callersFunctionmain
( ctx: click.Context, network_pkl: str, seeds: Optional[List[int]], truncation_psi: float,
stylegan_human/interpolation.py:106
← previousnext →301–400 of 1,199, ranked by callers