MCPcopy Create free account

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

Functions561 in github.com/ali-vilab/videocomposer

Methodforward
Apply the block to a Tensor, conditioned on a timestep embedding. :param x: an [N x C x ...] Tensor of features. :param em
tools/videocomposer/unet_sd.py:591
Methodforward
(self, x)
tools/videocomposer/unet_sd.py:651
Methodforward
(self, x, reference=None)
tools/videocomposer/unet_sd.py:664
Methodforward
(self, x, e, reference=None)
tools/videocomposer/unet_sd.py:702
Methodforward
r"""x: [B, C, H, W]. context: [B, L, C] or None.
tools/videocomposer/unet_sd.py:740
Methodforward
( self, x, pos_bias = None, focus_present_mask = None, video_mask
tools/videocomposer/unet_sd.py:798
Methodforward
(self, x, context=None)
tools/videocomposer/unet_sd.py:937
Methodforward
( self, x, pos_bias = None, focus_present_mask = None, video_mask
tools/videocomposer/unet_sd.py:1002
Methodforward
(self, x)
tools/videocomposer/unet_sd.py:1037
Methodforward
(self, x)
tools/videocomposer/unet_sd.py:1073
Methodforward
(self, x)
tools/videocomposer/unet_sd.py:1117
Methodforward
(self, x, t, y = None, depth = None, image = None, moti
tools/videocomposer/unet_sd.py:1442
Methodforward
(self, x, **kwargs)
tools/videocomposer/unet_sd.py:1720
Methodforward
(self, q, k, v, **kwargs)
tools/videocomposer/unet_sd.py:1728
Methodforward
(self, x)
tools/videocomposer/unet_sd.py:1748
Methodforward
(self, q, k, v)
tools/videocomposer/unet_sd.py:1782
Methodforward
(self, x, **kwargs)
tools/videocomposer/unet_sd.py:1807
Methodforward
(self, x)
tools/videocomposer/unet_sd.py:1822
Methodforward
(self, *args, zero=None, keep=None)
tools/videocomposer/unet_sd.py:1841
Methodforward
(self, text)
tools/videocomposer/inference_multi.py:130
Methodforward
(self, image)
tools/videocomposer/inference_multi.py:278
Methodforward
(self, x)
tools/videocomposer/autoencoder.py:67
Methodforward
(self, x, temb)
tools/videocomposer/autoencoder.py:115
Methodforward
(self, x)
tools/videocomposer/autoencoder.py:165
Methodforward
(self, x)
tools/videocomposer/autoencoder.py:255
Methodforward
(self, x)
tools/videocomposer/autoencoder.py:349
Methodforward
(self, z)
tools/videocomposer/autoencoder.py:450
Methodforward
(self, input, sample_posterior=True)
tools/videocomposer/autoencoder.py:558
Methodforward
(self, x, *args, **kwargs)
tools/videocomposer/autoencoder.py:628
Methodforward
(ctx, input)
artist/ops/distributed.py:307
Methodforward
(ctx, input)
artist/ops/distributed.py:322
Methodforward
(ctx, input)
artist/ops/distributed.py:352
Methodforward
(self, x)
artist/models/clip.py:22
Methodforward
(self, x)
artist/models/clip.py:28
Methodforward
r"""x: [B, L, C]. mask: [*, L, L].
artist/models/clip.py:47
Methodforward
(self, x, mask=None)
artist/models/clip.py:92
Methodforward
(self, x)
artist/models/clip.py:136
Methodforward
(self, x)
artist/models/clip.py:195
Methodforward
(self, x)
artist/models/midas.py:39
Methodforward
(self, x)
artist/models/midas.py:73
Methodforward
(self, x)
artist/models/midas.py:109
Methodforward
(self, x)
artist/models/midas.py:138
Methodforward
(self, *xs)
artist/models/midas.py:152
Methodforward
(self, x)
artist/models/midas.py:244
Methodforward_
(self, x, context=None)
tools/videocomposer/unet_sd.py:430
Methodfp16
(self)
artist/models/clip.py:154
Methodfp16
(self)
artist/models/clip.py:210
Methodfp16
(self)
artist/models/clip.py:318
Functiongather
(tensor, dst=0, group=None, **kwargs)
artist/ops/distributed.py:75
Functiongen_kernel
# modified version of https://github.com/assafshocher/BlindSR_dataset_generator # Kai Zhang # min_var = 0.175 * sf # variance of the
artist/ops/degration.py:541
Functiongeneralized_gather
(data, dst=0, group=None)
artist/ops/distributed.py:211
Methodget_args
(self)
utils/config.py:240
Methodget_last_layer
(self)
tools/videocomposer/autoencoder.py:574
Functionget_local_rank
Returns: The rank of the current process within the local (per-machine) process group.
utils/distributed.py:289
Functionget_local_size
Returns: The size of the per-machine process group, i.e. the number of processes per machine.
utils/distributed.py:276
Functionget_object
(bucket, oss_key, retry=5)
artist/ops/utils.py:229
Functionget_object_to_file
(bucket, oss_key, filename, retry=5)
artist/ops/utils.py:240
Methodget_weights
(self)
tools/annotator/sketch/pidinet.py:636
Functionhex2rgb
(hex)
tools/annotator/histogram/palette.py:15
Methodhistogram
(self, rgb_img, sigma=20)
tools/annotator/histogram/palette.py:72
Functionhuggingface_model
(name='google/mt5-xxl', model_type='AutoModel', **kwargs)
artist/ops/utils.py:789
Functionhuggingface_tokenizer
(name='google/mt5-xxl', **kwargs)
artist/ops/utils.py:785
Functionimread_uint
(path, n_channels=3)
artist/ops/degration.py:22
Functionimresize
(img, scale, antialiasing=True)
artist/ops/degration.py:278
Functioninit_distributed_training
Initialize variables needed for distributed training.
utils/distributed.py:258
Methodinit_from_ckpt2
(self, path, ignore_keys=list())
tools/videocomposer/autoencoder.py:530
Functioninit_process_group
Initializes the default process group. Args: local_rank (int): the rank on the current local machine. local_world_size (int):
utils/distributed.py:56
Methodinit_weights
(self)
artist/models/clip.py:294
Methodinpaint_mcg_p_sample_loop
r"""DDPM sampling loop for inpainting, with Manifold Constrained Gradient (MCG) correction.
artist/ops/diffusion.py:903
Methodinpaint_p_sample_loop
r"""DDPM sampling loop for inpainting.
artist/ops/diffusion.py:867
Methodinverse
Inverse the sample `x` from time `t_start` to `t_end` by DPM-Solver. For discrete-time DPMs, we use `t_start=1/N`, where `N` is the t
artist/ops/dpm_solver.py:1156
Functioninverse_indices
r"""Inverse map of indices. E.g., if A[indices] == B, then B[inv_indices] == A.
artist/ops/utils.py:678
Functionirecv
(tensor, src=None, group=None, **kwargs)
artist/ops/distributed.py:264
Functionis_master_proc
Determines if the current process is the master process.
utils/distributed.py:94
Functionisend
(tensor, dst, group=None, **kwargs)
artist/ops/distributed.py:259
Methodkl
(self, other=None)
tools/videocomposer/autoencoder.py:30
Functionload_2d_pretrained_state_dict
(state,cfg)
tools/videocomposer/unet_sd.py:39
Functionload_stable_diffusion_pretrained
(state_dict, temporal_attention)
tools/videocomposer/inference_single.py:157
Functionload_stable_diffusion_pretrained
(state_dict, temporal_attention)
tools/videocomposer/inference_multi.py:157
Functionload_state_dict
(module, state_dict, drop_prefix='')
artist/ops/utils.py:656
Methodlog_images
(self, batch, only_inputs=False, log_ema=False, **kwargs)
tools/videocomposer/autoencoder.py:578
Functionlog_json_stats
Logs json stats. Args: stats (dict): a dictionary of statistical information to log.
utils/logging.py:78
Methodloss
(self, x0, t, model, model_kwargs={}, noise=None, weight = None, use_div_loss= False)
artist/ops/diffusion.py:354
Methodloss
(self, x0, t, model, model_kwargs={}, noise=None, input_x0=None, reduction='mean')
artist/ops/diffusion.py:916
Functionmake_irregular_mask
(w, h, max_angle=4, max_length=200, max_width=100, min_strokes=1, max_strokes=5, mode='line')
artist/ops/random_mask.py:6
Functionmake_rectangle_mask
(w, h, margin=10, min_size=30, max_size=150, min_strokes=1, max_strokes=4)
artist/ops/random_mask.py:34
Functionmake_uncrop
(w, h)
artist/ops/random_mask.py:48
Functionmd5
(filename)
artist/ops/utils.py:735
Functionmidas_v3
(pretrained=False, **kwargs)
artist/models/midas.py:295
Functionmodcrop_np
Args: img: numpy image, WxH or WxHxC sf: scale factor Return: cropped image
artist/ops/degration.py:433
Functionmodel_fn
The noise predicition model function that is used for DPM-Solver.
artist/ops/dpm_solver.py:327
Functionmodel_wrapper
r"""Create a wrapper function for the noise prediction model. DPM-Solver needs to solve the continuous-time diffusion ODEs. For DPMs trained on d
artist/ops/dpm_solver.py:189
Functionnew_group
(ranks=None, **kwargs)
artist/ops/distributed.py:50
Methodnll
(self, sample, dims=[1,2,3])
tools/videocomposer/autoencoder.py:44
Methodon_train_batch_end
(self, *args, **kwargs)
tools/videocomposer/autoencoder.py:543
Methodp_sample_loop
r"""Sample from p(x_{t-1} | x_t) p(x_{t-2} | x_{t-1}) ... p(x_0 | x_1).
artist/ops/diffusion.py:121
Methodp_sample_loop
r"""Sample from p(x_{t-1} | x_t) p(x_{t-2} | x_{t-1}) ... p(x_0 | x_1).
artist/ops/diffusion.py:569
Functionparallel
(func, args_list, num_workers=32, timeout=None)
artist/ops/utils.py:616
Methodparam_groups
(self)
artist/models/clip.py:312
Functionparse_bucket
(url)
artist/ops/utils.py:105
← previousnext →401–500 of 561, ranked by callers