Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenGVLab/DragGAN
/ functions
Functions
447 in github.com/OpenGVLab/DragGAN
⨍
Functions
447
◇
Types & classes
83
↳
Endpoints
1
Function
on_save_files
(image, state)
gradio_app.py:168
Function
on_save_files
(image, state)
draggan/web.py:169
Function
on_save_files
(image, state)
draggan/deprecated/web.py:171
Function
on_select_mask_tab
(state)
gradio_app.py:199
Function
on_select_mask_tab
(state)
draggan/web.py:200
Function
on_select_mask_tab
(state)
draggan/deprecated/web.py:202
Function
on_show_save
()
gradio_app.py:177
Function
on_show_save
()
draggan/web.py:178
Function
on_show_save
()
draggan/deprecated/web.py:180
Function
on_undo
(points, image, state, size)
gradio_app.py:106
Function
on_undo
(points, image, state, size)
draggan/web.py:107
Function
on_undo
(points, image, state, size)
draggan/deprecated/web.py:118
Function
open_url
Download the given URL and return a binary-mode file object to access the data.
draggan/stylegan2/dnnlib/util.py:382
Method
optimize_parameters
(self)
draggan/deprecated/stylegan2/lpips/dist_model.py:148
Method
optimize_parameters
(self)
draggan/deprecated/stylegan2/lpips/base_model.py:25
Function
params_and_buffers
(module)
draggan/stylegan2/torch_utils/misc.py:145
Function
post_hook
(mod, _inputs, outputs)
draggan/stylegan2/torch_utils/misc.py:202
Function
pre_hook
(_mod, _inputs)
draggan/stylegan2/torch_utils/misc.py:200
Function
print_module_summary
(module, inputs, max_nesting=3, skip_redundant=True)
draggan/stylegan2/torch_utils/misc.py:192
Function
print_network
(net)
draggan/deprecated/stylegan2/lpips/networks_basic.py:183
Function
profiled_function
(fn)
draggan/stylegan2/torch_utils/misc.py:98
Function
psnr
(p0, p1, peak=255.)
draggan/deprecated/stylegan2/lpips/util.py:49
Function
report0
r"""Broadcasts the given set of scalars by the first process (`rank = 0`), but ignores any scalars provided by the other processes. See `repor
draggan/stylegan2/torch_utils/training_stats.py:103
Method
resolution
(self)
draggan/stylegan2/training/dataset.py:126
Function
rgb2lab
(in_img,mean_cent=False)
draggan/deprecated/stylegan2/lpips/util.py:55
Method
save_done
(self, flag=False)
draggan/deprecated/stylegan2/lpips/base_model.py:56
Function
score_2afc_dataset
Function computes Two Alternative Forced Choice (2AFC) score using distance function 'func' in dataset 'data_loader' INPUTS data_
draggan/deprecated/stylegan2/lpips/dist_model.py:241
Function
score_jnd_dataset
Function computes JND score using distance function 'func' in dataset 'data_loader' INPUTS data_loader - CustomDatasetDataLoader object -
draggan/deprecated/stylegan2/lpips/dist_model.py:277
Function
set_cache_dir
(path: str)
draggan/stylegan2/dnnlib/util.py:120
Method
set_input
(self, data)
draggan/deprecated/stylegan2/lpips/dist_model.py:160
Function
setup_filter
r"""Convenience function to setup 2D FIR filter for `upfirdn2d()`. Args: f: Torch tensor, numpy array, or python list of the sh
draggan/stylegan2/torch_utils/ops/upfirdn2d.py:72
Function
tensor2tensorlab
(image_tensor,to_norm=True,mc_only=False)
draggan/deprecated/stylegan2/lpips/util.py:70
Function
tensor2vec
(vector_tensor)
draggan/deprecated/stylegan2/lpips/util.py:115
Function
tensor_to_PIL
Converts a tensor image to a PIL Image. Args: img (torch.Tensor): The tensor image of shape [batch_size, num_channels, height, width
draggan/utils.py:48
Function
tensor_to_PIL
Converts a tensor image to a PIL Image. Args: img (torch.Tensor): The tensor image of shape [batch_size, num_channels, height, width
draggan/deprecated/utils.py:48
Function
tensorlab2tensor
(lab_tensor,return_inbnd=False)
draggan/deprecated/stylegan2/lpips/util.py:84
Method
trainable_gen
()
draggan/stylegan2/training/networks.py:621
Function
training_loop
( run_dir = '.', # Output directory. training_set_kwargs = {}, # Option
draggan/stylegan2/training/training_loop.py:90
Function
tuple_product
Calculate the product of the tuple elements.
draggan/stylegan2/dnnlib/util.py:163
Method
update_learning_rate
(self, nepoch_decay)
draggan/deprecated/stylegan2/lpips/dist_model.py:230
Method
update_learning_rate
()
draggan/deprecated/stylegan2/lpips/base_model.py:50
Method
update_to
(self, b=1, bsize=1, tsize=None)
draggan/utils.py:24
Method
update_to
(self, b=1, bsize=1, tsize=None)
draggan/deprecated/utils.py:24
Method
update_to
(self, b=1, bsize=1, tsize=None)
draggan/deprecated/stylegan2/lpips/dist_model.py:27
Function
upfirdn2d_native
(input, kernel, up=1, down=1, pad=(0, 0))
draggan/deprecated/stylegan2/op/upfirdn2d.py:176
Function
upsample2d
r"""Upsample a batch of 2D images using the given 2D FIR filter. By default, the result is padded so that its shape is a multiple of the input.
draggan/stylegan2/torch_utils/ops/upfirdn2d.py:308
Function
voc_ap
ap = voc_ap(rec, prec, [use_07_metric]) Compute VOC AP given precision and recall. If use_07_metric is true, uses the VOC 07 11 point met
draggan/deprecated/stylegan2/lpips/util.py:118
← previous
401–447 of 447, ranked by callers