MCPcopy Create free account

hub / github.com/OpenGVLab/DragGAN / functions

Functions447 in github.com/OpenGVLab/DragGAN

Methodforward
(ctx, input, weight, bias)
draggan/deprecated/stylegan2/op/conv2d_gradfix.py:138
Methodforward
(ctx, grad_output, input)
draggan/deprecated/stylegan2/op/conv2d_gradfix.py:181
Methodforward
(self)
draggan/deprecated/stylegan2/lpips/base_model.py:19
Methodforward
(self, X)
draggan/deprecated/stylegan2/lpips/pretrained_networks.py:36
Methodforward
(self, X)
draggan/deprecated/stylegan2/lpips/pretrained_networks.py:81
Methodforward
(self, X)
draggan/deprecated/stylegan2/lpips/pretrained_networks.py:121
Methodforward
(self, X)
draggan/deprecated/stylegan2/lpips/pretrained_networks.py:163
Methodforward
Pred and target are Variables. If normalize is True, assumes the images are between [0,1] and then scales them between [-1,+1]
draggan/deprecated/stylegan2/lpips/util.py:26
Methodforward
(self, in0, in1, retPerLayer=False)
draggan/deprecated/stylegan2/lpips/networks_basic.py:65
Methodforward
(self, inp)
draggan/deprecated/stylegan2/lpips/networks_basic.py:101
Methodforward
(self,d0,d1,eps=0.1)
draggan/deprecated/stylegan2/lpips/networks_basic.py:129
Methodforward
(self, d0, d1, judge)
draggan/deprecated/stylegan2/lpips/networks_basic.py:139
Methodforward
(self, in0, in1, retPerLayer=None)
draggan/deprecated/stylegan2/lpips/networks_basic.py:170
Methodforward
(ctx, input, grid)
draggan/stylegan2/torch_utils/ops/grid_sample_gradfix.py:46
Methodforward
(ctx, grad_output, input, grid)
draggan/stylegan2/torch_utils/ops/grid_sample_gradfix.py:63
Methodforward
(ctx, x, b)
draggan/stylegan2/torch_utils/ops/bias_act.py:147
Methodforward
(ctx, dy, x, b, y)
draggan/stylegan2/torch_utils/ops/bias_act.py:180
Methodforward
(ctx, x, f)
draggan/stylegan2/torch_utils/ops/upfirdn2d.py:230
Methodforward
(ctx, a, b, c)
draggan/stylegan2/torch_utils/ops/fma.py:22
Methodforward
(ctx, input, weight, bias)
draggan/stylegan2/torch_utils/ops/conv2d_gradfix.py:109
Methodforward
(ctx, grad_output, input)
draggan/stylegan2/torch_utils/ops/conv2d_gradfix.py:142
Methodforward
(self, x)
draggan/stylegan2/training/networks_stylegan3.py:90
Methodforward
(self, z, c, truncation_psi=1, truncation_cutoff=None, update_emas=False)
draggan/stylegan2/training/networks_stylegan3.py:136
Methodforward
(self, w)
draggan/stylegan2/training/networks_stylegan3.py:199
Methodforward
(self, x, w, noise_mode='random', force_fp32=False, update_emas=False)
draggan/stylegan2/training/networks_stylegan3.py:330
Methodforward
(self, ws, return_feature=False, **layer_kwargs)
draggan/stylegan2/training/networks_stylegan3.py:465
Methodforward
(self, z, c, truncation_psi=1, truncation_cutoff=None, update_emas=False, input_is_w=False, return_feature=Fal
draggan/stylegan2/training/networks_stylegan3.py:518
Methodforward
(self, x)
draggan/stylegan2/training/networks.py:113
Methodforward
(self, x, gain=1)
draggan/stylegan2/training/networks.py:173
Methodforward
(self, z, c, truncation_psi=1, truncation_cutoff=None, update_emas=False)
draggan/stylegan2/training/networks.py:232
Methodforward
(self, x, w, noise_mode='random', fused_modconv=True, gain=1)
draggan/stylegan2/training/networks.py:310
Methodforward
(self, x, w, fused_modconv=True)
draggan/stylegan2/training/networks.py:352
Methodforward
(self, x, img, ws, force_fp32=False, fused_modconv=None, update_emas=False, **layer_kwargs)
draggan/stylegan2/training/networks.py:416
Methodforward
(self, ws, return_feature=False, **block_kwargs)
draggan/stylegan2/training/networks.py:502
Methodforward
(self, z, c, truncation_psi=1, truncation_cutoff=None, update_emas=False, input_is_w=False, return_feature=Fal
draggan/stylegan2/training/networks.py:558
Methodforward
(self, x, img, force_fp32=False)
draggan/stylegan2/training/networks.py:643
Methodforward
(self, x)
draggan/stylegan2/training/networks.py:687
Methodforward
(self, x, img, cmap, force_fp32=False)
draggan/stylegan2/training/networks.py:737
Methodforward
(self, img, c, update_emas=False, **block_kwargs)
draggan/stylegan2/training/networks.py:815
Methodforward
(self, images, debug_percentile=None)
draggan/stylegan2/training/augment.py:186
Functiongenerate_W
Generates a latent code tensor in W+ space from a pretrained StyleGAN2-ADA generator network. Args: _G (torch.nn.Module): The genera
draggan/draggan.py:77
Functiongenerate_image
Generates an image using a pretrained generator network. Args: W (torch.Tensor): A tensor of latent codes of shape [batch_size, late
draggan/draggan.py:143
Methodget_current_errors
(self)
draggan/deprecated/stylegan2/lpips/dist_model.py:199
Methodget_current_errors
(self)
draggan/deprecated/stylegan2/lpips/base_model.py:31
Methodget_current_visuals
(self)
draggan/deprecated/stylegan2/lpips/dist_model.py:208
Methodget_current_visuals
(self)
draggan/deprecated/stylegan2/lpips/base_model.py:28
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.
draggan/stylegan2/dnnlib/util.py:187
Methodget_image_paths
(self)
draggan/deprecated/stylegan2/lpips/base_model.py:22
Methodget_latent
(self, input)
draggan/deprecated/stylegan2/model.py:512
Functionget_module_dir_by_obj_name
Get the directory path of the module containing the given object name.
draggan/stylegan2/dnnlib/util.py:292
Functionget_path
(base_path)
draggan/utils.py:36
Functionget_path
(base_path)
draggan/deprecated/utils.py:36
Functionget_plugin
(module_name, sources, **build_kwargs)
draggan/stylegan2/torch_utils/custom_ops.py:46
Functionget_top_level_function_name
Return the fully-qualified name of a top-level function.
draggan/stylegan2/dnnlib/util.py:303
Functiongrid_sample
(input, grid)
draggan/stylegan2/torch_utils/ops/grid_sample_gradfix.py:27
Methodhas_labels
(self)
draggan/stylegan2/training/dataset.py:147
Methodhas_onehot_labels
(self)
draggan/stylegan2/training/dataset.py:151
Methodimage_shape
(self)
draggan/stylegan2/training/dataset.py:117
Functionimport_hook
r"""Register an import hook that is called whenever a persistent object is being unpickled. A typical use case is to patch the pickled source
draggan/stylegan2/torch_utils/persistence.py:147
Methodinit_args
(self)
draggan/stylegan2/torch_utils/persistence.py:111
Methodinit_kwargs
(self)
draggan/stylegan2/torch_utils/persistence.py:115
Functioninit_multiprocessing
r"""Initializes `torch_utils.training_stats` for collecting statistics across multiple processes. This function must be called after `tor
draggan/stylegan2/torch_utils/training_stats.py:34
Methodinitialize
(self, use_gpu=True, gpu_ids=[0])
draggan/deprecated/stylegan2/lpips/base_model.py:15
Functionis_pickleable
(obj: Any)
draggan/stylegan2/dnnlib/util.py:210
Functionl2
(p0, p1, range=255.)
draggan/deprecated/stylegan2/lpips/util.py:46
Methodlabel_dim
(self)
draggan/stylegan2/training/dataset.py:142
Methodlabel_shape
(self)
draggan/stylegan2/training/dataset.py:132
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
draggan/stylegan2/dnnlib/util.py:315
Methodload_network
(self, network, network_label, epoch_label)
draggan/deprecated/stylegan2/lpips/base_model.py:44
Methodmean_latent
(self, n_latent)
draggan/deprecated/stylegan2/model.py:504
Methodname
(self)
draggan/deprecated/stylegan2/lpips/base_model.py:12
Methodname
(self)
draggan/stylegan2/training/dataset.py:113
Functionno_weight_gradients
()
draggan/deprecated/stylegan2/op/conv2d_gradfix.py:13
Functionno_weight_gradients
()
draggan/stylegan2/torch_utils/ops/conv2d_gradfix.py:26
Functionnormalize_tensor
(in_feat,eps=1e-10)
draggan/deprecated/stylegan2/lpips/util.py:42
Methodnum_channels
(self)
draggan/stylegan2/training/dataset.py:121
Functionon_change_model
(selected, model)
gradio_app.py:119
Functionon_change_model
(selected, model)
draggan/web.py:120
Functionon_change_model
(selected, model)
draggan/deprecated/web.py:131
Functionon_click
(image, target_point, points, size, evt: gr.SelectData)
gradio_app.py:60
Functionon_click
(image, target_point, points, size, evt: gr.SelectData)
draggan/web.py:61
Functionon_click
(image, target_point, points, size, evt: gr.SelectData)
draggan/deprecated/web.py:65
Functionon_drag
(model, points, max_iters, state, size, mask, lr_box)
gradio_app.py:70
Functionon_drag
(model, points, max_iters, state, size, mask, lr_box)
draggan/web.py:71
Functionon_drag
(model, points, max_iters, state, size, mask, lr_box)
draggan/deprecated/web.py:75
Functionon_image_change
(model, image_size, image)
gradio_app.py:181
Functionon_image_change
(model, image_size, image)
draggan/web.py:182
Functionon_image_change
(model, image_size, image)
draggan/deprecated/web.py:184
Functionon_mask_change
(mask)
gradio_app.py:195
Functionon_mask_change
(mask)
draggan/web.py:196
Functionon_mask_change
(mask)
draggan/deprecated/web.py:198
Functionon_max_iter_change
(max_iters)
gradio_app.py:164
Functionon_max_iter_change
(max_iters)
draggan/web.py:165
Functionon_max_iter_change
(max_iters)
draggan/deprecated/web.py:167
Functionon_new_image
(model, seed)
gradio_app.py:142
Functionon_new_image
(model, seed)
draggan/web.py:143
Functionon_new_image
(model)
draggan/deprecated/web.py:149
Functionon_reset
(points, image, state)
gradio_app.py:102
Functionon_reset
(points, image, state)
draggan/web.py:103
Functionon_reset
(points, image, state)
draggan/deprecated/web.py:114
← previousnext →301–400 of 447, ranked by callers