MCPcopy Create free account

hub / github.com/ali-vilab/videocomposer / functions

Functions561 in github.com/ali-vilab/videocomposer

Method__init__
(self, size=224, min_area=0.4)
artist/data/transforms.py:187
Method__init__
(self, size=224, min_area=0.4, ratio=(3. / 4., 4. / 3.))
artist/data/transforms.py:212
Method__init__
(self, p=0.5)
artist/data/transforms.py:259
Method__init__
(self, sigmas=[0.1, 2.0], p=0.5)
artist/data/transforms.py:269
Method__init__
(self, brightness=0.4, contrast=0.4, saturation=0.4, hue=0.1, p=0.5)
artist/data/transforms.py:281
Method__init__
(self, p=0.2)
artist/data/transforms.py:314
Method__init__
(self, mean=[0.485, 0.456, 0.406], std=[0.229, 0.224, 0.225])
artist/data/transforms.py:330
Method__init__
(self, dim, num_heads, attn_dropout=0.0, proj_dropout=0.0)
artist/models/clip.py:33
Method__init__
(self, dim, num_heads, attn_dropout=0.0, proj_dropout=0.0)
artist/models/clip.py:77
Method__init__
(self, image_size=224, patch_size=16, dim=768,
artist/models/clip.py:99
Method__init__
(self, vocab_size, text_len, dim=512,
artist/models/clip.py:159
Method__init__
(self, dim, num_heads)
artist/models/midas.py:27
Method__init__
(self, dim, num_heads)
artist/models/midas.py:59
Method__init__
(self, image_size=384, patch_size=16, dim=1024,
artist/models/midas.py:80
Method__init__
(self, dim)
artist/models/midas.py:127
Method__init__
(self, dim)
artist/models/midas.py:143
Method__iter__
(self)
artist/data/samplers.py:31
Method__iter__
(self)
artist/data/samplers.py:51
Method__iter__
(self)
artist/data/samplers.py:90
Method__len__
(self)
tools/videocomposer/datasets.py:206
Method__len__
(self)
artist/data/transforms.py:31
Method__repr__
(self)
tools/videocomposer/inference_single.py:218
Method__repr__
(self)
tools/videocomposer/inference_multi.py:218
Method__repr__
(self)
utils/config.py:243
Function_i
r"""Index tensor using t and format the output according to x.
artist/ops/dpm_solver.py:12
Method_init_weight
(self, module)
tools/videocomposer/mha_flash.py:43
Functionadd_Poisson_noise
(img)
artist/ops/degration.py:774
Methodadd_noise
Compute the noised input xt = alpha_t * x + sigma_t * noise. Args: x: A `torch.Tensor` with shape `(batch_size, *shape)
artist/ops/dpm_solver.py:1136
Functionadd_resize
(img, sf=4)
artist/ops/degration.py:728
Functionadd_sharpening
USM sharpening. borrowed from real-ESRGAN Input image: I; Blurry image: B. 1. K = I + weight * (I - B) 2. Mask = 1 if abs(I - B) > thre
artist/ops/degration.py:686
Functionadd_speckle_noise
(img, noise_level1=2, noise_level2=25)
artist/ops/degration.py:757
Functionall_gather
All gathers the provided tensors from all processes across machines. Args: tensors (list): tensors to perform all gather across all p
utils/distributed.py:15
Functionall_gather_unaligned
Run all_gather on arbitrary picklable data (not necessarily tensors). Args: data: any picklable object group: a torch proces
utils/distributed.py:219
Functionall_reduce
All reduce the provided tensors from all processes across machines. Args: tensors (list): tensors to perform all reduce across all pr
utils/distributed.py:37
Functionanalytic_kernel
Calculate the X4 kernel from the X2 kernel (for proof see appendix in paper)
artist/ops/degration.py:451
Methodbackward
(ctx, grad_output)
artist/ops/distributed.py:311
Methodbackward
(ctx, grad_output)
artist/ops/distributed.py:326
Methodbackward
(ctx, grad_output)
artist/ops/distributed.py:341
Methodbackward
(ctx, grad_output)
artist/ops/distributed.py:356
Functionbarrier
(group=None, **kwargs)
artist/ops/distributed.py:59
Functionbeta_schedule
(schedule, num_timesteps=1000, init_beta=None, last_beta=None)
artist/ops/diffusion.py:15
Functionblur
x: image, NxcxHxW k: kernel, Nx1xhxw
artist/ops/degration.py:525
Functionbreakup_grid
r"""The inverse operator of ``torchvision.utils.make_grid``.
artist/ops/utils.py:768
Functionbroadcast
(tensor, src, group=None, **kwargs)
artist/ops/distributed.py:63
Functioncalculate_psnr
(img1, img2, border=0)
artist/ops/degration.py:139
Functioncalculate_ssim
calculate SSIM the same outputs as MATLAB's img1, img2: [0, 255]
artist/ops/degration.py:159
Functionchannel_convert
(in_c, tar_type, img_list)
artist/ops/degration.py:117
Functionclassical_degradation
blur + downsampling Args: x: HxWxC image, [0, 1]/[0, 255] k: hxw, double sf: down-scale factor Return:
artist/ops/degration.py:672
Functionclip_vit_b_16
(pretrained=False, **kwargs)
artist/models/clip.py:343
Functionclip_vit_b_32
(pretrained=False, **kwargs)
artist/models/clip.py:327
Functionclip_vit_h_16
(pretrained=False, **kwargs)
artist/models/clip.py:391
Functionclip_vit_l_14
(pretrained=False, **kwargs)
artist/models/clip.py:359
Functionclip_vit_l_14_336px
(pretrained=False, **kwargs)
artist/models/clip.py:375
Methodcompute_eps
(xt, t)
artist/ops/diffusion.py:281
Methodcompute_eps
(xt, t)
artist/ops/diffusion.py:732
Methodcompute_x0
(eps, t)
artist/ops/diffusion.py:303
Methodcompute_x0
(eps, t)
artist/ops/diffusion.py:756
Methodddim_reverse_sample_loop
(self, x0, model, model_kwargs={}, clamp=None, percentile=None, guide_scale=None, ddim_timesteps=20)
artist/ops/diffusion.py:260
Methodddim_reverse_sample_loop
(self, x0, model, model_kwargs={}, clamp=None, percentile=None, guide_scale=None, ddim_timesteps=20)
artist/ops/diffusion.py:712
Methodddim_sample_loop
(self, noise, model, model_kwargs={}, clamp=None, percentile=None, condition_fn=None, guide_scale=None, ddim_t
artist/ops/diffusion.py:680
Methoddecode
(self, x, *args, **kwargs)
tools/videocomposer/autoencoder.py:620
Methoddeep_copy
(self)
utils/config.py:249
Functiondegradation_bsrgan
This is the variant of the degradation model of BSRGAN from the paper "Designing a Practical Degradation Model for Deep Blind Image Super-R
artist/ops/degration.py:888
Functiondegradation_bsrgan_light
This is the variant of the degradation model of BSRGAN from the paper "Designing a Practical Degradation Model for Deep Blind Image Super-R
artist/ops/degration.py:805
Functiondestroy_process_group
()
artist/ops/distributed.py:55
Functiondetect_duplicates
(feats, thr=0.9)
artist/ops/utils.py:686
Functiondownload
(url, filename=None, replace=False, quiet=False)
artist/ops/utils.py:634
Functiondownload_video_to_file
(filename, local_file, retry=5)
artist/ops/utils.py:144
Methoddpm_solver_sample_loop
r"""Sample using DPM-Solver-based method. - condition_fn: for classifier-based guidance (guided-diffusion). - guide_scale: f
artist/ops/diffusion.py:810
Functiondpsr_degradation
bicubic downsampling + blur Args: x: HxWxC image, [0, 1] k: hxw, double sf: down-scale factor Return: d
artist/ops/degration.py:651
Functionema
(net_ema, net, beta, copy_buffer=False)
artist/ops/utils.py:608
Methodencode
(self, text)
tools/videocomposer/inference_single.py:154
Methodencode
(self, text)
tools/videocomposer/inference_single.py:303
Methodencode
(self, text)
tools/videocomposer/inference_multi.py:154
Methodencode
(self, text)
tools/videocomposer/inference_multi.py:302
Methodencode
(self, x, *args, **kwargs)
tools/videocomposer/autoencoder.py:617
Methodencode_with_transformer
(self, text)
tools/videocomposer/inference_single.py:284
Methodencode_with_transformer
(self, text)
tools/videocomposer/inference_multi.py:283
Functionexists
(filename)
artist/ops/utils.py:627
Methodexport
(self, dirname)
tools/annotator/histogram/palette.py:107
Functionformat_state
r"""For comparing/aligning state_dict.
artist/ops/utils.py:760
Methodforward
(self, input)
tools/annotator/sketch/pidinet.py:441
Methodforward
(self, x)
tools/annotator/sketch/pidinet.py:458
Methodforward
(self, x)
tools/annotator/sketch/pidinet.py:481
Methodforward
(self, x)
tools/annotator/sketch/pidinet.py:499
Methodforward
(self, x)
tools/annotator/sketch/pidinet.py:516
Methodforward
(self, x)
tools/annotator/sketch/pidinet.py:546
Methodforward
(self, x)
tools/annotator/sketch/pidinet.py:650
Methodforward
r"""x: [B, 1, H, W] within range [0, 1]. Sketch pixels in dark color.
tools/annotator/sketch/sketch_simplification.py:75
Methodforward
(self, text)
tools/videocomposer/inference_single.py:130
Methodforward
(self, image)
tools/videocomposer/inference_single.py:279
Methodforward
r"""x: [B, C, H, W]. context: [B, L, C] or None.
tools/videocomposer/mha_flash.py:53
Methodforward
(self, x, context=None, mask=None)
tools/videocomposer/unet_sd.py:220
Methodforward
(self, n, device)
tools/videocomposer/unet_sd.py:281
Methodforward
(self, x, context=None)
tools/videocomposer/unet_sd.py:332
Methodforward
(self, x, context=None, mask=None)
tools/videocomposer/unet_sd.py:374
Methodforward
(self, x, context=None)
tools/videocomposer/unet_sd.py:433
Methodforward
(self, x)
tools/videocomposer/unet_sd.py:445
Methodforward
(self, x)
tools/videocomposer/unet_sd.py:473
Methodforward
(self, x)
tools/videocomposer/unet_sd.py:494
← previousnext →301–400 of 561, ranked by callers