MCPcopy Create free account

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

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

↓ 2 callersFunctionget_text_enc
deprecation
opensora/models/text_encoder/__init__.py:38
↓ 2 callersFunctionget_timestep_embedding
This matches the implementation in Denoising Diffusion Probabilistic Models: From Fairseq. Build sinusoidal embeddings. This matches
opensora/models/ae/imagebase/vqvae/model.py:8
↓ 2 callersFunctiongetae
deprecation
opensora/models/ae/__init__.py:20
↓ 2 callersFunctionimg2tensor
Numpy array to tensor. Args: imgs (list[ndarray] | ndarray): Input images. bgr2rgb (bool): Whether to change bgr to rgb.
opensora/models/super_resolution/basicsr/utils/img_util.py:9
↓ 2 callersFunctionimwrite
Write image to file. Args: img (ndarray): Image array to be written. file_path (str): Image file path. params (None or li
opensora/models/super_resolution/basicsr/utils/img_util.py:135
↓ 2 callersFunctioninit_dist
(launcher, backend='nccl', **kwargs)
opensora/models/super_resolution/basicsr/utils/dist_util.py:10
↓ 2 callersMethodinit_from_ckpt
(self, path, ignore_keys=list())
opensora/models/ae/imagebase/vqvae/vqgan.py:59
↓ 2 callersMethodinitialize
(self, input)
opensora/models/ae/videobase/modules/normalize.py:31
↓ 2 callersFunctioninstantiate_from_config
(config)
opensora/models/ae/imagebase/vqvae/vqgan.py:21
↓ 2 callersFunctionis_image_file
(filename)
opensora/utils/dataset_utils.py:10
↓ 2 callersMethodload_from_checkpoint
(cls, model_path)
opensora/models/ae/videobase/vqvae/modeling_vqvae.py:748
↓ 2 callersMethodload_network
Load network. Args: load_path (str): The path of networks to be loaded. net (nn.Module): Network. strict
opensora/models/super_resolution/basicsr/models/base_model.py:277
↓ 2 callersMethodmake_attn_mask
(self, attention_mask, frame, dtype)
opensora/models/diffusion/latte/modeling_latte.py:260
↓ 2 callersFunctionmd5_hash
(path)
opensora/utils/taming_download.py:32
↓ 2 callersFunctionmkdir_and_rename
mkdirs. If path exists, rename it with timestamp and create a new one. Args: path (str): Folder path.
opensora/models/super_resolution/basicsr/utils/misc.py:24
↓ 2 callersMethodmodel_ema
(self, decay=0.999)
opensora/models/super_resolution/basicsr/models/base_model.py:75
↓ 2 callersMethodnondist_validation
(self, dataloader, current_iter, tb_logger, save_img)
opensora/models/super_resolution/basicsr/models/sr_model.py:136
↓ 2 callersFunctionnorm_cdf
(x)
opensora/models/super_resolution/basicsr/archs/arch_util.py:243
↓ 2 callersFunctionnormalize_tensor
(x,eps=1e-10)
opensora/models/ae/videobase/losses/lpips.py:114
↓ 2 callersMethodq_sample
Diffuse the data for a given number of diffusion steps. In other words, sample from q(x_t | x_0). :param x_start: the initial
opensora/models/diffusion/diffusion/gaussian_diffusion_t2v.py:215
↓ 2 callersMethodq_sample
Diffuse the data for a given number of diffusion steps. In other words, sample from q(x_t | x_0). :param x_start: the initial
opensora/models/diffusion/diffusion/gaussian_diffusion.py:215
↓ 2 callersFunctionreplace_filename
(original_path, suffix)
opensora/models/super_resolution/run.py:16
↓ 2 callersMethodsave
Save networks and training state.
opensora/models/super_resolution/basicsr/models/base_model.py:32
↓ 2 callersMethodsave_network
Save networks. Args: net (nn.Module | list[nn.Module]): Network(s) to be saved. net_label (str): Network label.
opensora/models/super_resolution/basicsr/models/base_model.py:196
↓ 2 callersFunctionspace_timesteps
Create a list of timesteps to use from an original diffusion process, given the number of timesteps we want to take from equally-sized portio
opensora/models/diffusion/diffusion/respace.py:13
↓ 2 callersFunctionspatial_average
(in_tens, keepdim=True)
opensora/eval/flolpips/flolpips.py:17
↓ 2 callersMethodstart
(self)
opensora/models/super_resolution/basicsr/utils/logger.py:20
↓ 2 callersFunctiontensor2img
Convert torch Tensors into image numpy arrays. After clamping to [min, max], values will be normalized to [0, 1]. Args: tensor (Tens
opensora/models/super_resolution/basicsr/utils/img_util.py:38
↓ 2 callersFunctiontext_preprocessing
(text)
opensora/utils/utils.py:360
↓ 2 callersMethodtiled_decode2d
(self, z)
opensora/models/ae/videobase/causal_vae/modeling_causalvae.py:645
↓ 2 callersMethodtiled_encode2d
(self, x, return_moments=False)
opensora/models/ae/videobase/causal_vae/modeling_causalvae.py:605
↓ 2 callersFunctiontrans
(x)
opensora/eval/cal_psnr.py:17
↓ 2 callersFunctiontrans
(x)
opensora/eval/cal_lpips.py:15
↓ 2 callersFunctiontrans
(x)
opensora/eval/cal_ssim.py:44
↓ 2 callersFunctiontrans
(x)
opensora/eval/cal_flolpips.py:14
↓ 2 callersFunctionupsample
(in_tens, out_HW=(64,64))
opensora/eval/flolpips/flolpips.py:48
↓ 2 callersFunctionwritePFM
(file, image, scale=1)
opensora/models/frame_interpolation/utils/utils.py:158
↓ 1 callersFunctionLatteT2V_D64_XL_122
(**kwargs)
opensora/models/diffusion/latte/modeling_latte.py:598
↓ 1 callersFunctionTemporalRandomCrop
Performs a random temporal crop on a video sequence. This function randomly selects a continuous frame sequence of length `size` from a vide
opensora/models/ae/videobase/dataset_videobase.py:15
↓ 1 callersMethod__forward_fn
TODO: generalize here by adding all private functions ending with steps to it
opensora/models/diffusion/transport/integrators.py:50
↓ 1 callersMethod__get_last_step
Get the last step function of the SDE solver
opensora/models/diffusion/transport/transport.py:247
↓ 1 callersMethod__get_sde_diffusion_and_drift
( self, *, diffusion_form="SBDM", diffusion_norm=1.0, )
opensora/models/diffusion/transport/transport.py:228
↓ 1 callersMethod__init__
(self, args, **kwargs)
opensora/models/text_encoder/__init__.py:9
↓ 1 callersMethod__init__
(self, freq=10000.0, F0=1.0, scaling_factor=1.0)
opensora/models/diffusion/utils/pos_embed.py:90
↓ 1 callersMethod__init__
(self, sigma=0.0)
opensora/models/diffusion/transport/path.py:20
↓ 1 callersMethod__init__
(self, *args, **kwargs)
opensora/models/ae/videobase/modeling_videobase.py:15
↓ 1 callersMethod__init__
(self, *, in_channels, out_channels=None, conv_shortcut=False, dropout)
opensora/models/ae/videobase/modules/resnet_block.py:10
↓ 1 callersMethod__init__
(self, num_features, logdet=False, affine=True, allow_reverse_init=False)
opensora/models/ae/videobase/modules/normalize.py:20
↓ 1 callersMethod__init__
( self, in_channels: int, out_channels: int, kernel_size: Union[int, Tuple[int
opensora/models/ae/videobase/modules/conv.py:11
↓ 1 callersMethod__init__
Construct a PatchGAN discriminator Parameters: input_nc (int) -- the number of channels in input images ndf (int)
opensora/models/ae/videobase/losses/discriminator.py:29
↓ 1 callersMethod__init__
(self, hfvae='mse')
opensora/models/ae/imagebase/vae/vae.py:7
↓ 1 callersMethod__init__
(self, scale, num_feat)
opensora/models/super_resolution/basicsr/archs/arch_util.py:103
↓ 1 callersMethod__init__
(self, optimizer, milestones, gamma=0.1, restarts=(0, ), restart_weights=(1, ), last_epoch=-1)
opensora/models/super_resolution/basicsr/models/lr_scheduler.py:19
↓ 1 callersMethod__iter__
(self)
opensora/models/super_resolution/basicsr/data/prefetch_dataloader.py:36
↓ 1 callersMethod__len__
(self)
opensora/dataset/landscope.py:40
↓ 1 callersMethod__len__
(self)
opensora/dataset/ucf101.py:42
↓ 1 callersMethod__len__
(self)
opensora/dataset/feature_datasets.py:165
↓ 1 callersMethod__len__
(self)
opensora/dataset/t2v_datasets.py:46
↓ 1 callersMethod__len__
(self)
opensora/models/ae/videobase/dataset_videobase.py:77
↓ 1 callersFunction_augment
(img)
opensora/models/super_resolution/basicsr/data/transforms.py:120
↓ 1 callersFunction_augment_flow
(flow)
opensora/models/super_resolution/basicsr/data/transforms.py:129
↓ 1 callersMethod_block_shape_cum_sizes
(self)
opensora/models/ae/videobase/causal_vqvae/modeling_causalvqvae.py:677
↓ 1 callersMethod_block_shape_cum_sizes
(self)
opensora/models/ae/videobase/vqvae/modeling_vqvae.py:577
↓ 1 callersMethod_clean_text
Applies basic cleaning and formatting to a text string.
opensora/models/text_encoder/clip.py:85
↓ 1 callersMethod_combine_without_prefix
(self, folder_path, prefix=".")
examples/rec_video_vae.py:130
↓ 1 callersMethod_compute_block_shape
(self)
opensora/models/ae/videobase/causal_vqvae/modeling_causalvqvae.py:663
↓ 1 callersMethod_compute_block_shape
(self)
opensora/models/ae/videobase/vqvae/modeling_vqvae.py:563
↓ 1 callersFunction_format_video_shape
(video, time_compress=4, spatial_compress=8)
examples/rec_video_vae.py:168
↓ 1 callersMethod_get_init_lr
Get the initial lr, which is set by the scheduler.
opensora/models/super_resolution/basicsr/models/base_model.py:161
↓ 1 callersMethod_init_compress
(self)
opensora/models/diffusion/latte/modules.py:839
↓ 1 callersFunction_init_dist_pytorch
(backend, **kwargs)
opensora/models/super_resolution/basicsr/utils/dist_util.py:21
↓ 1 callersFunction_init_dist_slurm
Initialize slurm distributed training environment. If argument ``port`` is not specified, then the master port will be system environment var
opensora/models/super_resolution/basicsr/utils/dist_util.py:28
↓ 1 callersMethod_init_embeddings
(self, z)
opensora/models/ae/videobase/causal_vqvae/modeling_causalvqvae.py:275
↓ 1 callersMethod_init_embeddings
(self, z)
opensora/models/ae/videobase/modules/quant.py:28
↓ 1 callersMethod_init_embeddings
(self, z)
opensora/models/ae/videobase/vqvae/modeling_vqvae.py:141
↓ 1 callersMethod_init_rope
(self)
opensora/models/diffusion/latte/modules.py:868
↓ 1 callersMethod_init_weights
(self, init_method)
opensora/models/ae/videobase/modules/conv.py:61
↓ 1 callersMethod_initialize_best_metric_results
Initialize the best metric results dict for recording the best metric value and iteration.
opensora/models/super_resolution/basicsr/models/base_model.py:50
↓ 1 callersMethod_load_image
Loads and preprocesses an image from a file path.
opensora/models/text_encoder/clip.py:93
↓ 1 callersMethod_load_img
(self, path)
opensora/eval/eval_clip_score.py:97
↓ 1 callersMethod_load_txt
(self, path)
opensora/eval/eval_clip_score.py:103
↓ 1 callersMethod_load_video
(self, video_path)
examples/rec_video_vae.py:101
↓ 1 callersMethod_log_validation_metric_values
(self, current_iter, dataset_name, tb_logger)
opensora/models/super_resolution/basicsr/models/sr_model.py:207
↓ 1 callersMethod_make_dataset
(self)
opensora/dataset/landscope.py:35
↓ 1 callersMethod_make_dataset
(self)
opensora/dataset/ucf101.py:32
↓ 1 callersMethod_make_dataset
(self)
opensora/dataset/feature_datasets.py:38
↓ 1 callersMethod_make_dataset
(self)
opensora/dataset/feature_datasets.py:136
↓ 1 callersMethod_make_dataset
(self)
opensora/models/ae/videobase/dataset_videobase.py:71
↓ 1 callersFunction_no_grad_trunc_normal_
(tensor, mean, std, a, b)
opensora/models/super_resolution/basicsr/archs/arch_util.py:239
↓ 1 callersFunction_postprocess_yml_value
(value)
opensora/models/super_resolution/basicsr/utils/options.py:58
↓ 1 callersFunction_preprocess
(video_data, short_size=128, crop_size=None)
opensora/eval/eval_common_metric.py:127
↓ 1 callersFunction_preprocess
(video_data, short_size=128, crop_size=None)
examples/rec_video_vae.py:151
↓ 1 callersMethod_print_different_keys_loading
Print keys with different name or different size when loading models. 1. Print keys with different names. 2. If strict=False, print t
opensora/models/super_resolution/basicsr/models/base_model.py:242
↓ 1 callersMethod_prior_bpd
Get the prior KL term for the variational lower-bound, measured in bits-per-dim. This term can't be optimized, as it only dep
opensora/models/diffusion/diffusion/gaussian_diffusion_t2v.py:820
↓ 1 callersMethod_prior_bpd
Get the prior KL term for the variational lower-bound, measured in bits-per-dim. This term can't be optimized, as it only dep
opensora/models/diffusion/diffusion/gaussian_diffusion.py:797
↓ 1 callersFunction_scandir
(dir_path, suffix, recursive)
opensora/models/super_resolution/basicsr/utils/misc.py:73
↓ 1 callersMethod_set_lr
Set learning rate for warmup. Args: lr_groups_l (list): List for lr_groups, each for an optimizer.
opensora/models/super_resolution/basicsr/models/base_model.py:151
↓ 1 callersFunction_ssim
Calculate SSIM (structural similarity) for one channel images. It is called by func:`calculate_ssim`. Args: img (ndarray): Images wi
opensora/models/super_resolution/basicsr/metrics/psnr_ssim.py:49
↓ 1 callersMethod_training_step
(self, batch, batch_idx)
opensora/models/ae/videobase/causal_vae/modeling_causalvae.py:417
↓ 1 callersMethod_training_step_gan
(self, batch, batch_idx)
opensora/models/ae/videobase/causal_vae/modeling_causalvae.py:439
← previousnext →201–300 of 1,253, ranked by callers