MCPcopy Create free account

hub / github.com/chaojie/ComfyUI-Open-Sora-Plan / functions

Functions1,253 in github.com/chaojie/ComfyUI-Open-Sora-Plan

↓ 73 callersMethodget
(self, name)
opensora/models/super_resolution/basicsr/utils/registry.py:62
↓ 38 callersMethodfrom_pretrained
(cls, name="vgg_lpips")
opensora/models/ae/videobase/losses/lpips.py:31
↓ 27 callersMethodencode
(self, x)
opensora/models/ae/imagebase/vqvae/vqgan.py:70
↓ 25 callersMethodkeys
(self)
opensora/models/super_resolution/basicsr/utils/registry.py:74
↓ 23 callersFunction_extract_into_tensor
Extract values from a 1-D numpy array for a batch of indices. :param arr: the 1-D numpy array. :param timesteps: a tensor of indices into
opensora/models/diffusion/diffusion/gaussian_diffusion_t2v.py:892
↓ 23 callersFunction_extract_into_tensor
Extract values from a 1-D numpy array for a batch of indices. :param arr: the 1-D numpy array. :param timesteps: a tensor of indices into
opensora/models/diffusion/diffusion/gaussian_diffusion.py:869
↓ 23 callersFunctiontqdm
(x)
opensora/eval/eval_clip_score.py:43
↓ 21 callersMethoddecode
(self, quant)
opensora/models/ae/imagebase/vqvae/vqgan.py:76
↓ 20 callersFunctionresolve_str_to_obj
(str_val, append=True)
opensora/models/ae/videobase/utils/module_utils.py:6
↓ 19 callersFunctiongetae_wrapper
deprecation
opensora/models/ae/__init__.py:26
↓ 16 callersMethodpad
(self, *inputs)
opensora/models/frame_interpolation/utils/utils.py:62
↓ 14 callersMethod__init__
(self, n_hiddens, n_res_layers, time_downsample, spatial_downsample)
opensora/models/ae/videobase/causal_vqvae/modeling_causalvqvae.py:351
↓ 14 callersFunctionget_root_logger
Get the root logger. The logger will be initialized if it has not been initialized. By default a StreamHandler will be added. If `log_file` i
opensora/models/super_resolution/basicsr/utils/logger.py:146
↓ 14 callersFunctionresize
(x, scale_factor)
opensora/models/frame_interpolation/networks/blocks/ifrnet.py:7
↓ 14 callersFunctionshift_dim
(x, src_dim=-1, dest_dim=-1, make_contiguous=True)
opensora/models/ae/videobase/causal_vqvae/modeling_causalvqvae.py:35
↓ 14 callersFunctionshift_dim
(x, src_dim=-1, dest_dim=-1, make_contiguous=True)
opensora/models/ae/videobase/vqvae/modeling_vqvae.py:35
↓ 14 callersMethodupdate
(self, val, n=1)
opensora/models/frame_interpolation/utils/utils.py:22
↓ 11 callersFunctionNormalize
(in_channels, num_groups=32)
opensora/models/ae/videobase/modules/normalize.py:14
↓ 11 callersMethod__init__
(self, n_hiddens, n_res_layers, downsample)
opensora/models/ae/videobase/vqvae/modeling_vqvae.py:218
↓ 11 callersMethodenable_tiling
(self, use_tiling: bool = True)
opensora/models/ae/videobase/causal_vae/modeling_causalvae.py:684
↓ 11 callersMethodget_input
(self, batch, k)
opensora/models/ae/imagebase/vqvae/vqgan.py:91
↓ 11 callersFunctionnonlinearity
(x)
opensora/models/ae/imagebase/vqvae/model.py:29
↓ 10 callersFunctionNormalize
(in_channels)
opensora/models/ae/imagebase/vqvae/model.py:34
↓ 10 callersMethodforward
(self, in0, in1, retPerLayer=None)
opensora/eval/flolpips/flolpips.py:216
↓ 9 callersMethod__init__
(self, in_channels, out_channels)
opensora/models/ae/videobase/modules/updownsample.py:14
↓ 9 callersMethod__init__
(self, *, ch, out_ch, ch_mult=(1,2,4,8), num_res_blocks, attn_resolutions, dropout=0.0, resam
opensora/models/ae/imagebase/vqvae/model.py:196
↓ 9 callersMethod__init__
(self, in_features, hidden_features=None, out_features=None, act_layer=nn.GELU, drop=0.)
opensora/models/super_resolution/basicsr/archs/rgt_arch.py:58
↓ 9 callersMethodcompute_sigma_t
Compute the noise coefficient along the path
opensora/models/diffusion/transport/path.py:27
↓ 8 callersMethod__init__
( self, query_dim: int, cross_attention_dim: Optional[int] = None, heads: int
opensora/models/diffusion/latte/modules.py:224
↓ 8 callersFunctioncreate_diffusion
( timestep_respacing, noise_schedule="linear", use_kl=False, sigma_small=False, predict_x
opensora/models/diffusion/diffusion/__init__.py:9
↓ 8 callersFunctionexpand_t_like_x
Function to reshape time t to broadcastable dimension of x Args: t: [batch_dim,], time vector x: [batch_dim,...], data point
opensora/models/diffusion/transport/path.py:5
↓ 8 callersMethodget_last_layer
(self)
opensora/models/ae/imagebase/vqvae/vqgan.py:148
↓ 7 callersMethod__init__
(self, pretrained=True, net='alex', version='0.1', lpips=True, spatial=False, pnet_rand=False, pnet_t
opensora/eval/flolpips/flolpips.py:54
↓ 7 callersMethod__init__
(self, loss_weight=1.0, reduction='mean')
opensora/models/super_resolution/basicsr/losses/losses.py:39
↓ 7 callersFunction_is_tensor_video_clip
(clip)
opensora/dataset/transform.py:7
↓ 7 callersFunctioncast_tuple
(t, length=1)
opensora/models/ae/videobase/modules/ops.py:17
↓ 7 callersFunctionscandir
Scan a directory to find the interested files. Args: dir_path (str): Path of the directory. suffix (str | tuple(str), optional):
opensora/models/super_resolution/basicsr/utils/misc.py:52
↓ 6 callersFunctioncrop
Args: clip (torch.tensor): Video clip to be cropped. Size is (T, C, H, W)
opensora/dataset/transform.py:38
↓ 6 callersFunctionmean_flat
Take the mean over all non-batch dimensions.
opensora/models/diffusion/diffusion/gaussian_diffusion_t2v.py:16
↓ 6 callersFunctionmean_flat
Take the mean over all non-batch dimensions.
opensora/models/diffusion/diffusion/gaussian_diffusion.py:16
↓ 6 callersFunctionnonlinearity
(x)
opensora/models/ae/videobase/modules/ops.py:14
↓ 6 callersFunctionresize
(x, scale_factor)
opensora/models/frame_interpolation/networks/blocks/raft.py:6
↓ 6 callersFunctionset_seed
(seed=1006)
opensora/train/train_causalvae.py:87
↓ 6 callersFunctionwarp
(img, flow)
opensora/models/frame_interpolation/utils/flow_utils.py:8
↓ 5 callersMethod__init__
(self, in_channels)
opensora/models/ae/videobase/modules/attention.py:133
↓ 5 callersMethod_get_updateblock
(self, cdim, scale_factor=None)
opensora/models/frame_interpolation/networks/AMT-G.py:55
↓ 5 callersMethodbackward
(ctx, grad_res)
opensora/models/diffusion/utils/curope/curope2d.py:25
↓ 5 callersMethodcompute_drift
We always output sde according to score parametrization;
opensora/models/diffusion/transport/path.py:35
↓ 5 callersFunctionconvrelu
(in_channels, out_channels, kernel_size=3, stride=1, padding=1, dilation=1, groups=1, bias=True)
opensora/models/frame_interpolation/networks/blocks/ifrnet.py:10
↓ 5 callersFunctioncupy_kernel
(strFunction, objVariables)
opensora/eval/flolpips/correlation/correlation.py:235
↓ 5 callersFunctioncupy_launch
(strFunction, strKernel)
opensora/eval/flolpips/correlation/correlation.py:274
↓ 5 callersMethodget_bare_model
Get bare model, especially under wrapping with DistributedDataParallel or DataParallel.
opensora/models/super_resolution/basicsr/models/base_model.py:123
↓ 5 callersFunctionview_range
(x, i, j, shape)
opensora/models/ae/videobase/causal_vqvae/modeling_causalvqvae.py:15
↓ 5 callersFunctionview_range
(x, i, j, shape)
opensora/models/ae/videobase/vqvae/modeling_vqvae.py:15
↓ 4 callersMethod__init__
(self, ddconfig, lossconfig, n_embed, embe
opensora/models/ae/imagebase/vqvae/vqgan.py:382
↓ 4 callersMethod__init__
(self, num_tokens, codebook_dim, decay=0.99, eps=1e-5)
opensora/models/ae/imagebase/vqvae/quantize.py:335
↓ 4 callersMethod__init__
(self, output_dim=128, norm_fn='batch', dropout=0.0)
opensora/models/frame_interpolation/networks/blocks/feat_enc.py:118
↓ 4 callersFunction_convert_input_type_range
Convert the type and range of the input image. It converts the input image to np.float32 type and range of [0, 1]. It is mainly used for pre-
opensora/models/super_resolution/basicsr/utils/matlab_functions.py:305
↓ 4 callersFunction_convert_output_type_range
Convert the type and range of the image according to dst_type. It converts the image to desired type and range. If `dst_type` is np.uint8, im
opensora/models/super_resolution/basicsr/utils/matlab_functions.py:332
↓ 4 callersMethod_gram_mat
Calculate Gram matrix. Args: x (torch.Tensor): Tensor with shape of (n, c, h, w). Returns: torch.Tensor: Gra
opensora/models/super_resolution/basicsr/losses/losses.py:242
↓ 4 callersMethod_make_layer
(self, dim, stride=1)
opensora/models/frame_interpolation/networks/blocks/feat_enc.py:309
↓ 4 callersFunction_ntuple
(n)
opensora/models/super_resolution/basicsr/archs/arch_util.py:304
↓ 4 callersMethod_wrap_model
(self, model)
opensora/models/diffusion/diffusion/respace.py:107
↓ 4 callersMethod_wrap_model
(self, model)
opensora/models/diffusion/diffusion/respace.py:174
↓ 4 callersFunctionadopt_weight
(weight, global_step, threshold=0, value=0.0)
opensora/models/ae/videobase/losses/perceptual_loss.py:34
↓ 4 callersMethodcheck_interval
( self, train_eps, sample_eps, *, diffusion_form="SBDM", s
opensora/models/diffusion/transport/transport.py:73
↓ 4 callersMethodcompute_alpha_t
Compute the data coefficient along the path
opensora/models/diffusion/transport/path.py:23
↓ 4 callersMethodforward
Args: pred (Tensor): of shape (N, C, H, W). Predicted tensor. target (Tensor): of shape (N, C, H, W). Ground truth te
opensora/models/super_resolution/basicsr/losses/losses.py:47
↓ 4 callersFunctionget_dist_info
()
opensora/models/super_resolution/basicsr/utils/dist_util.py:60
↓ 4 callersFunctiongetdataset
(args)
opensora/dataset/__init__.py:46
↓ 4 callersMethodload_from_checkpoint
(cls, model_path)
opensora/models/ae/videobase/modeling_videobase.py:19
↓ 4 callersFunctionnormal_kl
Compute the KL divergence between two gaussians. Shapes are automatically broadcasted, so batches can be compared to scalars, among other
opensora/models/diffusion/diffusion/diffusion_utils.py:10
↓ 4 callersFunctionnormalize
Args: clip (torch.tensor): Video clip to be normalized. Size is (T, C, H, W) mean (tuple): pixel RGB mean. Size is (3) st
opensora/dataset/transform.py:148
↓ 4 callersFunctionnormalize_tensor
(in_feat,eps=1e-10)
opensora/eval/flolpips/utils.py:6
↓ 4 callersMethodp_mean_variance
Apply the model to get p(x_{t-1} | x_t), as well as a prediction of the initial x, x_0. :param model: the model, which takes
opensora/models/diffusion/diffusion/gaussian_diffusion_t2v.py:254
↓ 4 callersMethodp_mean_variance
Apply the model to get p(x_{t-1} | x_t), as well as a prediction of the initial x, x_0. :param model: the model, which takes
opensora/models/diffusion/diffusion/gaussian_diffusion.py:254
↓ 4 callersMethodp_sample_loop
Generate samples from the model. :param model: the model module. :param shape: the shape of the samples, (N, C, H, W).
opensora/models/diffusion/diffusion/gaussian_diffusion.py:423
↓ 4 callersMethodprocess
(self, batch_tubes, t_ds_stride, ds_stride, max_thw, ae_stride_thw, patch_size_thw, extra_1)
opensora/utils/dataset_utils.py:112
↓ 4 callersMethodq_posterior_mean_variance
Compute the mean and variance of the diffusion posterior: q(x_{t-1} | x_t, x_0)
opensora/models/diffusion/diffusion/gaussian_diffusion_t2v.py:232
↓ 4 callersMethodq_posterior_mean_variance
Compute the mean and variance of the diffusion posterior: q(x_{t-1} | x_t, x_0)
opensora/models/diffusion/diffusion/gaussian_diffusion.py:232
↓ 4 callersFunctionreadImage
(name)
opensora/models/frame_interpolation/utils/utils.py:206
↓ 4 callersFunctionreorder_image
Reorder images to 'HWC' order. If the input_order is (h, w), return (h, w, 1); If the input_order is (c, h, w), return (h, w, c); If the
opensora/models/super_resolution/basicsr/metrics/metric_util.py:6
↓ 4 callersFunctionresize
(clip, target_size, interpolation_mode)
opensora/dataset/transform.py:48
↓ 4 callersMethodsample
forward loop of sde
opensora/models/diffusion/transport/integrators.py:64
↓ 4 callersMethodsample
(self)
opensora/models/ae/videobase/utils/distrib_utils.py:15
↓ 4 callersMethodsave
(self, epoch, current_iter)
opensora/models/super_resolution/basicsr/models/sr_model.py:230
↓ 4 callersFunctiontensor2np
(tensor_obj)
opensora/eval/flolpips/utils.py:22
↓ 4 callersFunctiontensor2tensorlab
(image_tensor,to_norm=True,mc_only=False)
opensora/eval/flolpips/utils.py:30
↓ 4 callersMethodto_rgb
(self, x)
opensora/models/ae/imagebase/vqvae/vqgan.py:165
↓ 4 callersFunctionto_y_channel
Change to Y channel of YCbCr. Args: img (ndarray): Images with range [0, 255]. Returns: (ndarray): Images with range [0, 255
opensora/models/super_resolution/basicsr/metrics/metric_util.py:32
↓ 4 callersMethodtraining_losses
Loss for training the score model Args: - model: backbone model; could be score, noise, or velocity - x1: datapoint -
opensora/models/diffusion/transport/transport.py:116
↓ 4 callersFunctionwriteImage
(name, data)
opensora/models/frame_interpolation/utils/utils.py:216
↓ 3 callersMethod__init__
(self)
opensora/eval/flolpips/pwcnet.py:72
↓ 3 callersMethod__init__
(self, requires_grad=False, pretrained=True)
opensora/eval/flolpips/pretrained_networks.py:97
↓ 3 callersMethod__init__
(self, use_dropout=True)
opensora/models/ae/videobase/losses/lpips.py:11
↓ 3 callersMethod__init__
(self, channels, large=False)
opensora/models/frame_interpolation/networks/blocks/ifrnet.py:56
↓ 3 callersMethod_corr_scale_lookup
(self, corr_fn, coord, flow0, flow1, embt, downsample=1)
opensora/models/frame_interpolation/networks/AMT-G.py:61
↓ 3 callersMethod_make_layer
(self, dim, stride=1)
opensora/models/frame_interpolation/networks/blocks/feat_enc.py:157
↓ 3 callersMethod_make_layer
(self, dim, stride=1)
opensora/models/frame_interpolation/networks/blocks/feat_enc.py:232
↓ 3 callersMethod_predict_eps_from_xstart
(self, x_t, t, pred_xstart)
opensora/models/diffusion/diffusion/gaussian_diffusion_t2v.py:355
next →1–100 of 1,253, ranked by callers