MCPcopy Create free account

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

Functions561 in github.com/ali-vilab/videocomposer

↓ 2 callersFunctionrgb2hex
(rgb)
tools/annotator/histogram/palette.py:12
↓ 2 callersMethodsample
(self)
artist/data/samplers.py:72
↓ 2 callersMethodsample
(self)
artist/data/samplers.py:112
↓ 2 callersFunctionshift_pixel
shift pixel for super-resolution with different scale factors Args: x: WxHxC or WxH sf: scale factor upper_left: shift
artist/ops/degration.py:497
↓ 2 callersMethodsinglestep_dpm_solver_third_update
Singlestep solver DPM-Solver-3 from time `s` to time `t`. Args: x: A pytorch tensor. The initial value at time `s`.
artist/ops/dpm_solver.py:799
↓ 2 callersFunctionstandard_normal_cdf
r"""A fast approximation of the cumulative distribution function of the standard normal.
artist/ops/losses.py:9
↓ 1 callersMethod_approx_sq_grad
(exp_avg_sq_row, exp_avg_sq_col)
artist/optim/adafactor.py:133
↓ 1 callersMethod_forward
(self, x, emb, batch_size)
tools/videocomposer/unet_sd.py:600
↓ 1 callersFunction_get_global_gloo_group
Return a process group based on gloo backend, containing all the ranks The result is cached. Returns: (group): pytorch dist group
utils/distributed.py:142
↓ 1 callersMethod_get_lr
(param_group, param_state)
artist/optim/adafactor.py:112
↓ 1 callersMethod_get_options
(param_group, param_shape)
artist/optim/adafactor.py:123
↓ 1 callersMethod_get_params
(self, img)
artist/data/transforms.py:220
↓ 1 callersMethod_get_video_traindata
(self, video_key, feature_framerate, total_frames, visual_mv)
tools/videocomposer/datasets.py:253
↓ 1 callersMethod_initialize_cfg
(self)
utils/config.py:100
↓ 1 callersMethod_load_yaml
(self, args, file_name="")
utils/config.py:111
↓ 1 callersMethod_merge_cfg_from_command
(self, args, cfg)
utils/config.py:182
↓ 1 callersFunction_pad_to_largest_tensor
Padding all the tensors from different GPUs to the largest ones. Args: tensor (tensor): tensor to pad. group (group): pytorch
utils/distributed.py:183
↓ 1 callersMethod_parse_args
(self)
utils/config.py:24
↓ 1 callersMethod_random_params
(self)
artist/data/transforms.py:302
↓ 1 callersMethod_relative_position_bucket
(relative_position, num_buckets = 32, max_distance = 128)
tools/videocomposer/unet_sd.py:262
↓ 1 callersFunction_scale_timesteps
(t)
artist/ops/dpm_solver.py:438
↓ 1 callersFunction_serialize_to_tensor
Seriialize the tensor to ByteTensor. Note that only `gloo` and `nccl` backend is supported. Args: data (data): data to be ser
utils/distributed.py:155
↓ 1 callersFunction_suppress_print
Suppresses printing from the current process.
utils/logging.py:18
↓ 1 callersMethod_update_dict
(self, cfg_dict)
utils/config.py:229
↓ 1 callersMethod_update_from_args
(self, cfg_dict)
utils/config.py:94
↓ 1 callersFunctionadd_blur_1
(img, sf=4)
artist/ops/degration.py:711
↓ 1 callersFunctionall_gather
(tensor, uniform_size=True, group=None, **kwargs)
artist/ops/distributed.py:84
↓ 1 callersFunctionbasic_clean
(text)
artist/data/tokenizers.py:53
↓ 1 callersFunctionbeta_schedule
This code defines a function beta_schedule that generates a sequence of beta values based on the given input parameters. These beta values can b
tools/videocomposer/inference_single.py:57
↓ 1 callersFunctionbeta_schedule
This code defines a function beta_schedule that generates a sequence of beta values based on the given input parameters. These beta values can b
tools/videocomposer/inference_multi.py:57
↓ 1 callersFunctionbgr2ycbcr
bgr version of rgb2ycbcr only_y: only return Y channel Input: uint8, [0, 255] float, [0, 1]
artist/ops/degration.py:94
↓ 1 callersMethodbpe
(self, token)
artist/data/tokenizers.py:82
↓ 1 callersFunctionceil_divide
(a, b)
artist/ops/utils.py:178
↓ 1 callersFunctioncond_grad_fn
Compute the gradient of the classifier, i.e. nabla_{x} log p_t(cond | x_t).
artist/ops/dpm_solver.py:318
↓ 1 callersFunctioncreate_conv_func
(op_type)
tools/annotator/sketch/pidinet.py:272
↓ 1 callersMethodddim_reverse_sample
r"""Sample from p(x_{t+1} | x_t) using DDIM reverse ODE (deterministic).
artist/ops/diffusion.py:240
↓ 1 callersMethodddim_reverse_sample
r"""Sample from p(x_{t+1} | x_t) using DDIM reverse ODE (deterministic).
artist/ops/diffusion.py:694
↓ 1 callersMethodddim_sample
r"""Sample from p(x_{t-1} | x_t) using DDIM. - condition_fn: for classifier-based guidance (guided-diffusion). - guide_scale
artist/ops/diffusion.py:192
↓ 1 callersMethodddim_sample
r"""Sample from p(x_{t-1} | x_t) using DDIM. - condition_fn: for classifier-based guidance (guided-diffusion). - guide_scale
artist/ops/diffusion.py:645
↓ 1 callersMethoddenoise_to_zero_fn
Denoise at the final step, which is equivalent to solve the ODE from lambda_s to infty by first-order discretization.
artist/ops/dpm_solver.py:665
↓ 1 callersMethoddpm_solver_adaptive
The adaptive step size solver based on singlestep DPM-Solver. Args: x: A pytorch tensor. The initial value at time `t_T`
artist/ops/dpm_solver.py:1080
↓ 1 callersFunctiondraw_motion_vectors
(frame, motion_vectors)
tools/videocomposer/datasets.py:66
↓ 1 callersMethodencode
(self, text)
artist/data/tokenizers.py:123
↓ 1 callersMethodencode_with_transformer
(self, text)
tools/videocomposer/inference_single.py:135
↓ 1 callersMethodencode_with_transformer
(self, text)
tools/videocomposer/inference_multi.py:135
↓ 1 callersFunctionextract_motion_vectors
(input_video,fps=4, dump=False, verbose=False, visual_mv=False)
tools/videocomposer/datasets.py:76
↓ 1 callersFunctionfind_free_port
https://stackoverflow.com/questions/1365265/on-localhost-how-do-i-pick-a-free-port-number
tools/videocomposer/inference_single.py:307
↓ 1 callersFunctionfind_free_port
https://stackoverflow.com/questions/1365265/on-localhost-how-do-i-pick-a-free-port-number
tools/videocomposer/inference_multi.py:306
↓ 1 callersMethodforward
r"""imgs: [B, C, H, W] of torch.float32. txt_tokens: [B, T] of torch.long.
artist/models/clip.py:266
↓ 1 callersMethodfreeze
(self)
tools/videocomposer/inference_single.py:125
↓ 1 callersMethodfreeze
(self)
tools/videocomposer/inference_single.py:274
↓ 1 callersMethodfreeze
(self)
tools/videocomposer/inference_multi.py:125
↓ 1 callersMethodfreeze
(self)
tools/videocomposer/inference_multi.py:273
↓ 1 callersFunctionfspecial_gaussian
(hsize, sigma)
artist/ops/degration.py:582
↓ 1 callersFunctionfspecial_laplacian
(alpha)
artist/ops/degration.py:595
↓ 1 callersFunctionfunc
(x, weights, bias=None, stride=1, padding=0, dilation=1, groups=1)
tools/annotator/sketch/pidinet.py:277
↓ 1 callersFunctiongen_sketch
(image_path, gpu=0, misc_size=384)
gen_sketch.py:25
↓ 1 callersFunctionget_first_stage_encoding
(encoder_posterior)
tools/videocomposer/inference_single.py:229
↓ 1 callersFunctionget_first_stage_encoding
(encoder_posterior)
tools/videocomposer/inference_multi.py:229
↓ 1 callersMethodget_input
(self, batch, k)
tools/videocomposer/autoencoder.py:567
↓ 1 callersFunctionget_logger
Retrieve the logger with the specified name or, if name is None, return a logger which is the root logger of the hierarchy. Args:
utils/logging.py:68
↓ 1 callersMethodget_lr
(self)
artist/optim/lr_scheduler.py:19
↓ 1 callersMethodget_orders_and_timesteps_for_singlestep_solver
Get the order of each step for sampling by the singlestep DPM-Solver. We combine both DPM-Solver-1,2,3 to use all the function evalu
artist/ops/dpm_solver.py:606
↓ 1 callersFunctionget_rank
Get the rank of the current process.
utils/distributed.py:115
↓ 1 callersFunctionget_world_size
Get the size of the world.
utils/distributed.py:104
↓ 1 callersFunctiongm_blur_kernel
(mean, cov, size=15)
artist/ops/degration.py:485
↓ 1 callersFunctioninference_multi
(cfg_update, **kwargs)
tools/videocomposer/inference_multi.py:323
↓ 1 callersFunctioninference_single
(cfg_update, **kwargs)
tools/videocomposer/inference_single.py:324
↓ 1 callersMethodinit_from_ckpt
(self, path, ignore_keys=list())
tools/videocomposer/autoencoder.py:516
↓ 1 callersMethodinpaint_mcg_p_sample
r"""DDPM sampling step for inpainting, with Manifold Constrained Gradient (MCG) correction.
artist/ops/diffusion.py:881
↓ 1 callersMethodinpaint_p_sample
r"""DDPM sampling step for inpainting.
artist/ops/diffusion.py:852
↓ 1 callersFunctionmain
Main function to spawn the train and test process.
run_net.py:21
↓ 1 callersFunctionmake_masked_images
(imgs, masks)
tools/videocomposer/inference_single.py:221
↓ 1 callersFunctionmake_masked_images
(imgs, masks)
tools/videocomposer/inference_multi.py:221
↓ 1 callersMethodmode
(self)
tools/videocomposer/autoencoder.py:52
↓ 1 callersFunctionmodel_wrapper_guided_diffusion
Create a wrapper function for the noise prediction model guided diffusion. DPM-Solver needs to solve the continuous-time diffusion ODEs. For DPMs
artist/ops/dpm_solver.py:354
↓ 1 callersMethodmultistep_dpm_solver_second_update
Multistep solver DPM-Solver-2 from time `t_prev_list[-1]` to time `t`. Args: x: A pytorch tensor. The initial value at t
artist/ops/dpm_solver.py:920
↓ 1 callersMethodmultistep_dpm_solver_third_update
Multistep solver DPM-Solver-3 from time `t_prev_list[-1]` to time `t`. Args: x: A pytorch tensor. The initial value at t
artist/ops/dpm_solver.py:978
↓ 1 callersMethodp_sample
r"""Sample from p(x_{t-1} | x_t). - condition_fn: for classifier-based guidance (guided-diffusion). - guide_scale: for class
artist/ops/diffusion.py:103
↓ 1 callersMethodp_sample
r"""Sample from p(x_{t-1} | x_t). - condition_fn: for classifier-based guidance (guided-diffusion). - guide_scale: for class
artist/ops/diffusion.py:549
↓ 1 callersMethodplms_sample
r"""Sample from p(x_{t-1} | x_t) using PLMS. - condition_fn: for classifier-based guidance (guided-diffusion). - guide_scale
artist/ops/diffusion.py:273
↓ 1 callersMethodplms_sample
r"""Sample from p(x_{t-1} | x_t) using PLMS. - condition_fn: for classifier-based guidance (guided-diffusion). - guide_scale
artist/ops/diffusion.py:726
↓ 1 callersFunctionprepare_model_kwargs
(partial_keys, full_model_kwargs, use_fps_condition)
tools/videocomposer/inference_single.py:723
↓ 1 callersFunctionprob_mask_like
(shape, prob, device)
tools/videocomposer/unet_sd.py:188
↓ 1 callersMethodq_mean_variance
r"""Distribution of q(x_t | x_0).
artist/ops/diffusion.py:86
↓ 1 callersMethodq_mean_variance
r"""Distribution of q(x_t | x_0).
artist/ops/diffusion.py:532
↓ 1 callersFunctionrand_name
(length=16, suffix='')
tools/videocomposer/datasets.py:58
↓ 1 callersMethodreset_parameters
(self)
tools/annotator/sketch/pidinet.py:434
↓ 1 callersFunctionsetup_seed
(seed)
tools/videocomposer/inference_single.py:316
↓ 1 callersFunctionsetup_seed
(seed)
tools/videocomposer/inference_multi.py:315
↓ 1 callersFunctionshared_random_seed
(group=None)
artist/ops/distributed.py:269
↓ 1 callersMethodsinglestep_dpm_solver_update
Singlestep DPM-Solver with the order `order` from time `s` to time `t`. Args: x: A pytorch tensor. The initial value at
artist/ops/dpm_solver.py:1030
↓ 1 callersMethodstate_dict
(self)
artist/optim/lr_scheduler.py:45
↓ 1 callersMethodstep
(self, current_step=None)
artist/optim/lr_scheduler.py:32
↓ 1 callersMethodtext_transformer_forward
(self, x: torch.Tensor, attn_mask = None)
tools/videocomposer/inference_single.py:144
↓ 1 callersMethodtext_transformer_forward
(self, x: torch.Tensor, attn_mask = None)
tools/videocomposer/inference_single.py:293
↓ 1 callersMethodtext_transformer_forward
(self, x: torch.Tensor, attn_mask = None)
tools/videocomposer/inference_multi.py:144
↓ 1 callersMethodtext_transformer_forward
(self, x: torch.Tensor, attn_mask = None)
tools/videocomposer/inference_multi.py:292
↓ 1 callersMethodupdate_groups
(self)
artist/data/samplers.py:65
↓ 1 callersMethodupdate_groups
(self)
artist/data/samplers.py:104
← previousnext →101–200 of 561, ranked by callers