Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ali-vilab/videocomposer
/ functions
Functions
561 in github.com/ali-vilab/videocomposer
⨍
Functions
561
◇
Types & classes
102
↓ 2 callers
Function
rgb2hex
(rgb)
tools/annotator/histogram/palette.py:12
↓ 2 callers
Method
sample
(self)
artist/data/samplers.py:72
↓ 2 callers
Method
sample
(self)
artist/data/samplers.py:112
↓ 2 callers
Function
shift_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 callers
Method
singlestep_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 callers
Function
standard_normal_cdf
r"""A fast approximation of the cumulative distribution function of the standard normal.
artist/ops/losses.py:9
↓ 1 callers
Method
_approx_sq_grad
(exp_avg_sq_row, exp_avg_sq_col)
artist/optim/adafactor.py:133
↓ 1 callers
Method
_forward
(self, x, emb, batch_size)
tools/videocomposer/unet_sd.py:600
↓ 1 callers
Function
_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 callers
Method
_get_lr
(param_group, param_state)
artist/optim/adafactor.py:112
↓ 1 callers
Method
_get_options
(param_group, param_shape)
artist/optim/adafactor.py:123
↓ 1 callers
Method
_get_params
(self, img)
artist/data/transforms.py:220
↓ 1 callers
Method
_get_video_traindata
(self, video_key, feature_framerate, total_frames, visual_mv)
tools/videocomposer/datasets.py:253
↓ 1 callers
Method
_initialize_cfg
(self)
utils/config.py:100
↓ 1 callers
Method
_load_yaml
(self, args, file_name="")
utils/config.py:111
↓ 1 callers
Method
_merge_cfg_from_command
(self, args, cfg)
utils/config.py:182
↓ 1 callers
Function
_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 callers
Method
_parse_args
(self)
utils/config.py:24
↓ 1 callers
Method
_random_params
(self)
artist/data/transforms.py:302
↓ 1 callers
Method
_relative_position_bucket
(relative_position, num_buckets = 32, max_distance = 128)
tools/videocomposer/unet_sd.py:262
↓ 1 callers
Function
_scale_timesteps
(t)
artist/ops/dpm_solver.py:438
↓ 1 callers
Function
_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 callers
Function
_suppress_print
Suppresses printing from the current process.
utils/logging.py:18
↓ 1 callers
Method
_update_dict
(self, cfg_dict)
utils/config.py:229
↓ 1 callers
Method
_update_from_args
(self, cfg_dict)
utils/config.py:94
↓ 1 callers
Function
add_blur_1
(img, sf=4)
artist/ops/degration.py:711
↓ 1 callers
Function
all_gather
(tensor, uniform_size=True, group=None, **kwargs)
artist/ops/distributed.py:84
↓ 1 callers
Function
basic_clean
(text)
artist/data/tokenizers.py:53
↓ 1 callers
Function
beta_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 callers
Function
beta_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 callers
Function
bgr2ycbcr
bgr version of rgb2ycbcr only_y: only return Y channel Input: uint8, [0, 255] float, [0, 1]
artist/ops/degration.py:94
↓ 1 callers
Method
bpe
(self, token)
artist/data/tokenizers.py:82
↓ 1 callers
Function
ceil_divide
(a, b)
artist/ops/utils.py:178
↓ 1 callers
Function
cond_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 callers
Function
create_conv_func
(op_type)
tools/annotator/sketch/pidinet.py:272
↓ 1 callers
Method
ddim_reverse_sample
r"""Sample from p(x_{t+1} | x_t) using DDIM reverse ODE (deterministic).
artist/ops/diffusion.py:240
↓ 1 callers
Method
ddim_reverse_sample
r"""Sample from p(x_{t+1} | x_t) using DDIM reverse ODE (deterministic).
artist/ops/diffusion.py:694
↓ 1 callers
Method
ddim_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 callers
Method
ddim_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 callers
Method
denoise_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 callers
Method
dpm_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 callers
Function
draw_motion_vectors
(frame, motion_vectors)
tools/videocomposer/datasets.py:66
↓ 1 callers
Method
encode
(self, text)
artist/data/tokenizers.py:123
↓ 1 callers
Method
encode_with_transformer
(self, text)
tools/videocomposer/inference_single.py:135
↓ 1 callers
Method
encode_with_transformer
(self, text)
tools/videocomposer/inference_multi.py:135
↓ 1 callers
Function
extract_motion_vectors
(input_video,fps=4, dump=False, verbose=False, visual_mv=False)
tools/videocomposer/datasets.py:76
↓ 1 callers
Function
find_free_port
https://stackoverflow.com/questions/1365265/on-localhost-how-do-i-pick-a-free-port-number
tools/videocomposer/inference_single.py:307
↓ 1 callers
Function
find_free_port
https://stackoverflow.com/questions/1365265/on-localhost-how-do-i-pick-a-free-port-number
tools/videocomposer/inference_multi.py:306
↓ 1 callers
Method
forward
r"""imgs: [B, C, H, W] of torch.float32. txt_tokens: [B, T] of torch.long.
artist/models/clip.py:266
↓ 1 callers
Method
freeze
(self)
tools/videocomposer/inference_single.py:125
↓ 1 callers
Method
freeze
(self)
tools/videocomposer/inference_single.py:274
↓ 1 callers
Method
freeze
(self)
tools/videocomposer/inference_multi.py:125
↓ 1 callers
Method
freeze
(self)
tools/videocomposer/inference_multi.py:273
↓ 1 callers
Function
fspecial_gaussian
(hsize, sigma)
artist/ops/degration.py:582
↓ 1 callers
Function
fspecial_laplacian
(alpha)
artist/ops/degration.py:595
↓ 1 callers
Function
func
(x, weights, bias=None, stride=1, padding=0, dilation=1, groups=1)
tools/annotator/sketch/pidinet.py:277
↓ 1 callers
Function
gen_sketch
(image_path, gpu=0, misc_size=384)
gen_sketch.py:25
↓ 1 callers
Function
get_first_stage_encoding
(encoder_posterior)
tools/videocomposer/inference_single.py:229
↓ 1 callers
Function
get_first_stage_encoding
(encoder_posterior)
tools/videocomposer/inference_multi.py:229
↓ 1 callers
Method
get_input
(self, batch, k)
tools/videocomposer/autoencoder.py:567
↓ 1 callers
Function
get_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 callers
Method
get_lr
(self)
artist/optim/lr_scheduler.py:19
↓ 1 callers
Method
get_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 callers
Function
get_rank
Get the rank of the current process.
utils/distributed.py:115
↓ 1 callers
Function
get_world_size
Get the size of the world.
utils/distributed.py:104
↓ 1 callers
Function
gm_blur_kernel
(mean, cov, size=15)
artist/ops/degration.py:485
↓ 1 callers
Function
inference_multi
(cfg_update, **kwargs)
tools/videocomposer/inference_multi.py:323
↓ 1 callers
Function
inference_single
(cfg_update, **kwargs)
tools/videocomposer/inference_single.py:324
↓ 1 callers
Method
init_from_ckpt
(self, path, ignore_keys=list())
tools/videocomposer/autoencoder.py:516
↓ 1 callers
Method
inpaint_mcg_p_sample
r"""DDPM sampling step for inpainting, with Manifold Constrained Gradient (MCG) correction.
artist/ops/diffusion.py:881
↓ 1 callers
Method
inpaint_p_sample
r"""DDPM sampling step for inpainting.
artist/ops/diffusion.py:852
↓ 1 callers
Function
main
Main function to spawn the train and test process.
run_net.py:21
↓ 1 callers
Function
make_masked_images
(imgs, masks)
tools/videocomposer/inference_single.py:221
↓ 1 callers
Function
make_masked_images
(imgs, masks)
tools/videocomposer/inference_multi.py:221
↓ 1 callers
Method
mode
(self)
tools/videocomposer/autoencoder.py:52
↓ 1 callers
Function
model_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 callers
Method
multistep_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 callers
Method
multistep_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 callers
Method
p_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 callers
Method
p_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 callers
Method
plms_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 callers
Method
plms_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 callers
Function
prepare_model_kwargs
(partial_keys, full_model_kwargs, use_fps_condition)
tools/videocomposer/inference_single.py:723
↓ 1 callers
Function
prob_mask_like
(shape, prob, device)
tools/videocomposer/unet_sd.py:188
↓ 1 callers
Method
q_mean_variance
r"""Distribution of q(x_t | x_0).
artist/ops/diffusion.py:86
↓ 1 callers
Method
q_mean_variance
r"""Distribution of q(x_t | x_0).
artist/ops/diffusion.py:532
↓ 1 callers
Function
rand_name
(length=16, suffix='')
tools/videocomposer/datasets.py:58
↓ 1 callers
Method
reset_parameters
(self)
tools/annotator/sketch/pidinet.py:434
↓ 1 callers
Function
setup_seed
(seed)
tools/videocomposer/inference_single.py:316
↓ 1 callers
Function
setup_seed
(seed)
tools/videocomposer/inference_multi.py:315
↓ 1 callers
Function
shared_random_seed
(group=None)
artist/ops/distributed.py:269
↓ 1 callers
Method
singlestep_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 callers
Method
state_dict
(self)
artist/optim/lr_scheduler.py:45
↓ 1 callers
Method
step
(self, current_step=None)
artist/optim/lr_scheduler.py:32
↓ 1 callers
Method
text_transformer_forward
(self, x: torch.Tensor, attn_mask = None)
tools/videocomposer/inference_single.py:144
↓ 1 callers
Method
text_transformer_forward
(self, x: torch.Tensor, attn_mask = None)
tools/videocomposer/inference_single.py:293
↓ 1 callers
Method
text_transformer_forward
(self, x: torch.Tensor, attn_mask = None)
tools/videocomposer/inference_multi.py:144
↓ 1 callers
Method
text_transformer_forward
(self, x: torch.Tensor, attn_mask = None)
tools/videocomposer/inference_multi.py:292
↓ 1 callers
Method
update_groups
(self)
artist/data/samplers.py:65
↓ 1 callers
Method
update_groups
(self)
artist/data/samplers.py:104
← previous
next →
101–200 of 561, ranked by callers