MCPcopy Create free account

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

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

↓ 1 callersMethod_update_best_metric_result
(self, dataset_name, metric, val, current_iter)
opensora/models/super_resolution/basicsr/models/base_model.py:65
↓ 1 callersMethod_warmed_up
(self)
opensora/models/diffusion/diffusion/timestep_sampler.py:149
↓ 1 callersMethodapply_rope1d
(self, tokens, pos1d, cos, sin)
opensora/models/diffusion/utils/pos_embed.py:184
↓ 1 callersFunctionarray_to_video
( image_array: npt.NDArray, fps: float = 30.0, output_file: str = "output_video.mp4" )
examples/rec_video_vae.py:22
↓ 1 callersFunctionaugment
Augment: horizontal flips OR rotate (0, 90, 180, 270 degrees). We use vertical flip and transpose for rotation implementation. All the images
opensora/models/super_resolution/basicsr/data/transforms.py:94
↓ 1 callersFunctionbackwarp
(tenInput, tenFlow)
opensora/eval/flolpips/pwcnet.py:45
↓ 1 callersFunctionbase_build_fn
(module, cls, params)
opensora/models/frame_interpolation/utils/build_utils.py:4
↓ 1 callersFunctionbasic_clean
(text)
opensora/utils/utils.py:366
↓ 1 callersMethodbasic_clean
(text)
opensora/models/text_encoder/clip.py:196
↓ 1 callersMethodbasic_clean
(text)
opensora/models/text_encoder/t5.py:74
↓ 1 callersFunctionbetas_for_alpha_bar
Create a beta schedule that discretizes the given alpha_t_bar function, which defines the cumulative product of (1-beta) over time from t = [
opensora/models/diffusion/diffusion/gaussian_diffusion_t2v.py:125
↓ 1 callersFunctionbetas_for_alpha_bar
Create a beta schedule that discretizes the given alpha_t_bar function, which defines the cumulative product of (1-beta) over time from t = [
opensora/models/diffusion/diffusion/gaussian_diffusion.py:125
↓ 1 callersMethodbuild
(self)
opensora/eval/fvd/videogpt/pytorch_i3d.py:301
↓ 1 callersFunctionbuild_from_cfg
(config)
opensora/models/frame_interpolation/utils/build_utils.py:9
↓ 1 callersFunctionbuild_model
Build model from options. Args: opt (dict): Configuration. It must contain: model_type (str): Model type.
opensora/models/super_resolution/basicsr/models/__init__.py:19
↓ 1 callersMethodcalculate_adaptive_weight
(self, nll_loss, g_loss, last_layer=None)
opensora/models/ae/videobase/losses/perceptual_loss.py:93
↓ 1 callersMethodcalculate_adaptive_weight
(self, nll_loss, g_loss, last_layer=None)
opensora/models/ae/videobase/losses/perceptual_loss.py:243
↓ 1 callersFunctioncalculate_clip_score
(dataloader, model, real_flag, generated_flag)
opensora/eval/eval_clip_score.py:130
↓ 1 callersFunctioncalculate_common_metric
(args, dataloader, device)
opensora/eval/eval_common_metric.py:140
↓ 1 callersFunctioncalculate_metric
Calculate metric from data and options. Args: opt (dict): Configuration. It must contain: type (str): Model type.
opensora/models/super_resolution/basicsr/metrics/__init__.py:9
↓ 1 callersFunctioncalculate_ssim_function
(img1, img2)
opensora/eval/cal_ssim.py:26
↓ 1 callersMethodcaption_refine
(self, video_path, org_caption, model_path)
opensora/models/captioner/caption_refiner/caption_refiner.py:40
↓ 1 callersFunctioncenter_crop_using_short_edge
(clip)
opensora/dataset/transform.py:95
↓ 1 callersFunctioncharbonnier_loss
(pred, target, eps=1e-12)
opensora/models/super_resolution/basicsr/losses/losses.py:25
↓ 1 callersMethodcheck_inputs
( self, prompt, height, width, negative_prompt,
opensora/sample/pipeline_videogen.py:307
↓ 1 callersMethodcluster_size_ema_update
(self, new_cluster_size)
opensora/models/ae/imagebase/vqvae/quantize.py:348
↓ 1 callersMethodcompute_d_alpha_alpha_ratio_t
Compute the ratio between d_alpha and alpha
opensora/models/diffusion/transport/path.py:31
↓ 1 callersMethodcompute_diffusion
Compute the diffusion term of the SDE Args: x: [batch_dim, ...], data point t: [batch_dim,], time vector form: s
opensora/models/diffusion/transport/path.py:45
↓ 1 callersMethodcompute_mu_t
Compute the mean of time-dependent density p_t
opensora/models/diffusion/transport/path.py:114
↓ 1 callersMethodcompute_ut
Compute the vector field corresponding to p_t
opensora/models/diffusion/transport/path.py:126
↓ 1 callersMethodcompute_xt
Sample xt from time-dependent density p_t; rng is required
opensora/models/diffusion/transport/path.py:121
↓ 1 callersMethodcondition_mean
Compute the mean for the previous step, given a function cond_fn that computes the gradient of a conditional log probability with res
opensora/models/diffusion/diffusion/gaussian_diffusion_t2v.py:360
↓ 1 callersMethodcondition_mean
Compute the mean for the previous step, given a function cond_fn that computes the gradient of a conditional log probability with res
opensora/models/diffusion/diffusion/gaussian_diffusion.py:350
↓ 1 callersMethodcondition_mean
(self, cond_fn, *args, **kwargs)
opensora/models/diffusion/diffusion/respace.py:101
↓ 1 callersMethodcondition_score
(self, cond_fn, *args, **kwargs)
opensora/models/diffusion/diffusion/respace.py:104
↓ 1 callersFunctioncoords_grid
(batch, ht, wd, device)
opensora/models/frame_interpolation/networks/blocks/raft.py:27
↓ 1 callersMethodcorr
(fmap1, fmap2)
opensora/models/frame_interpolation/networks/blocks/raft.py:200
↓ 1 callersFunctioncreate_transport
function for creating Transport object **Note**: model prediction defaults to velocity Args: - path_type: type of path to use; default to
opensora/models/diffusion/transport/__init__.py:3
↓ 1 callersFunctioncustom_to_video
(x: torch.Tensor, fps: float = 2.0, output_file: str = 'output_video.mp4')
examples/rec_video_ae.py:32
↓ 1 callersFunctioncustom_to_video
(x: torch.Tensor, fps: float = 2.0, output_file: str = 'output_video.mp4')
examples/rec_imvi_vae.py:33
↓ 1 callersFunctioncustom_to_video
(x: torch.Tensor, fps: float = 2.0, output_file: str = 'output_video.mp4')
examples/rec_video.py:32
↓ 1 callersMethodddim_sample
Sample x_{t-1} from the model using DDIM. Same usage as p_sample().
opensora/models/diffusion/diffusion/gaussian_diffusion_t2v.py:527
↓ 1 callersMethodddim_sample
Sample x_{t-1} from the model using DDIM. Same usage as p_sample().
opensora/models/diffusion/diffusion/gaussian_diffusion.py:517
↓ 1 callersMethodddim_sample_loop
Generate samples from the model using DDIM. Same usage as p_sample_loop().
opensora/models/diffusion/diffusion/gaussian_diffusion.py:604
↓ 1 callersMethodddim_sample_loop_progressive
Use DDIM to sample from the model and yield intermediate samples from each timestep of DDIM. Same usage as p_sample_loop_prog
opensora/models/diffusion/diffusion/gaussian_diffusion_t2v.py:647
↓ 1 callersMethodddim_sample_loop_progressive
Use DDIM to sample from the model and yield intermediate samples from each timestep of DDIM. Same usage as p_sample_loop_prog
opensora/models/diffusion/diffusion/gaussian_diffusion.py:637
↓ 1 callersMethoddecode_latents
(self, latents)
opensora/sample/pipeline_videogen.py:758
↓ 1 callersMethoddecord_read
(self, path)
opensora/dataset/feature_datasets.py:200
↓ 1 callersMethoddecord_read
(self, path, frame_idx=None)
opensora/dataset/t2v_datasets.py:152
↓ 1 callersMethoddecord_read
(self, path)
opensora/dataset/extract_feature_dataset.py:36
↓ 1 callersMethoddecord_read
(self, path)
opensora/models/ae/videobase/dataset_videobase.py:91
↓ 1 callersFunctiondefault_init_weights
Initialize network weights. Args: module_list (list[nn.Module] | nn.Module): Modules to be initialized. scale (float): Scale init
opensora/models/super_resolution/basicsr/archs/arch_util.py:18
↓ 1 callersMethoddist_validation
(self, dataloader, current_iter, tb_logger, save_img)
opensora/models/super_resolution/basicsr/models/sr_model.py:132
↓ 1 callersFunctiondownload
(url, local_path, chunk_size=1024)
opensora/utils/taming_download.py:20
↓ 1 callersMethoddownload_and_load_model
(cls, model_name, cache_dir=None)
opensora/models/ae/videobase/vqvae/modeling_vqvae.py:770
↓ 1 callersMethodembed_avg_ema_update
(self, new_embed_avg)
opensora/models/ae/imagebase/vqvae/quantize.py:351
↓ 1 callersMethodencode_prompt
r""" Encodes the prompt into text encoder hidden states. Args: prompt (`str` or `List[str]`, *optional*):
opensora/sample/pipeline_videogen.py:126
↓ 1 callersMethodencode_text
Encodes texts into embeddings and returns the last hidden state and pooled output.
opensora/models/text_encoder/clip.py:51
↓ 1 callersMethodfeed_data
(self, data)
opensora/models/super_resolution/basicsr/models/sr_model.py:87
↓ 1 callersFunctionfind_model
Finds a pre-trained Latte model, downloading it if necessary. Alternatively, loads a model from a local path.
opensora/utils/utils.py:35
↓ 1 callersFunctionflow_uv_to_colors
Applies the flow color wheel to (possibly clipped) flow components u and v. According to the C++ source code of Daniel Scharstein Accordi
opensora/models/frame_interpolation/utils/flow_utils.py:66
↓ 1 callersMethodforward
(self, x)
opensora/eval/fvd/videogpt/pytorch_i3d.py:78
↓ 1 callersMethodforward_features
(self, x)
opensora/models/super_resolution/basicsr/archs/rgt_arch.py:709
↓ 1 callersFunctionfrechet_distance
(x1, x2)
opensora/eval/fvd/videogpt/fvd.py:113
↓ 1 callersFunctiongdown_download
(id, fname, cache_dir=None)
opensora/utils/downloader.py:9
↓ 1 callersFunctiongenerate_gaussian_kernel
Generate Gaussian kernel used in `duf_downsample`. Args: kernel_size (int): Kernel size. Default: 13. sigma (float): Sigma of the
opensora/models/super_resolution/basicsr/data/data_util.py:232
↓ 1 callersMethodget
(self, filepath, client_key='default')
opensora/models/super_resolution/basicsr/utils/file_client.py:158
↓ 1 callersFunctionget_1d_sincos_pos_embed
( embed_dim, length, interpolation_scale=1.0, base_size=16 )
opensora/models/diffusion/utils/pos_embed.py:48
↓ 1 callersFunctionget_2d_sincos_pos_embed_from_grid
(embed_dim, grid)
opensora/models/diffusion/utils/pos_embed.py:36
↓ 1 callersFunctionget_beta_schedule
This is the deprecated API for creating beta schedules. See get_named_beta_schedule() for the new library of schedules.
opensora/models/diffusion/diffusion/gaussian_diffusion_t2v.py:65
↓ 1 callersFunctionget_beta_schedule
This is the deprecated API for creating beta schedules. See get_named_beta_schedule() for the new library of schedules.
opensora/models/diffusion/diffusion/gaussian_diffusion.py:65
↓ 1 callersMethodget_cos_sin
(self, D, seq_len, device, dtype)
opensora/models/diffusion/utils/pos_embed.py:97
↓ 1 callersMethodget_cos_sin
(self, D, seq_len, device, dtype)
opensora/models/diffusion/utils/pos_embed.py:168
↓ 1 callersMethodget_current_visuals
(self)
opensora/models/super_resolution/basicsr/models/sr_model.py:222
↓ 1 callersMethodget_drift
member function for obtaining the drift of the probability flow ODE
opensora/models/diffusion/transport/transport.py:161
↓ 1 callersFunctionget_feats
(videos, detector, device, bs=10)
opensora/eval/fvd/styleganv/fvd.py:21
↓ 1 callersMethodget_image_embeddings
Generates embeddings for a list of image file paths.
opensora/models/text_encoder/clip.py:64
↓ 1 callersMethodget_image_from_video
(self, video_data)
opensora/dataset/t2v_datasets.py:98
↓ 1 callersMethodget_img_cap_list
(self)
opensora/dataset/sky_datasets.py:83
↓ 1 callersMethodget_img_cap_list
(self)
opensora/dataset/landscope.py:89
↓ 1 callersMethodget_img_cap_list
(self)
opensora/dataset/feature_datasets.py:106
↓ 1 callersMethodget_img_cap_list
(self)
opensora/dataset/feature_datasets.py:212
↓ 1 callersFunctionget_input_video_from_path
Get the input video from the input_path. params: input_path: str, the path of the input video. devices: str,
opensora/models/frame_interpolation/interpolation.py:56
↓ 1 callersFunctionget_logits
(i3d, videos, device, bs=10)
opensora/eval/fvd/videogpt/fvd.py:128
↓ 1 callersMethodget_non_block_layout_row
(self, block_layout, row)
opensora/models/ae/videobase/causal_vqvae/modeling_causalvqvae.py:654
↓ 1 callersMethodget_non_block_layout_row
(self, block_layout, row)
opensora/models/ae/videobase/vqvae/modeling_vqvae.py:554
↓ 1 callersFunctionget_obj_from_str
(string, reload=False)
opensora/models/ae/imagebase/vqvae/vqgan.py:13
↓ 1 callersMethodget_optimizer
(self, optim_type, params, lr, **kwargs)
opensora/models/super_resolution/basicsr/models/base_model.py:103
↓ 1 callersMethodget_params
(self, clip)
opensora/dataset/transform.py:198
↓ 1 callersMethodget_params
(self, clip)
opensora/dataset/transform.py:232
↓ 1 callersFunctionget_position_from_periods
Get the position from a period list. It will return the index of the right-closest number in the period list. For example, the cumulative_per
opensora/models/super_resolution/basicsr/models/lr_scheduler.py:36
↓ 1 callersFunctionget_precision
(args)
opensora/utils/utils.py:186
↓ 1 callersMethodget_score
member function for obtaining score of x_t = alpha_t * x + sigma_t * eps
opensora/models/diffusion/transport/transport.py:196
↓ 1 callersMethodget_score_from_velocity
Wrapper function: transfrom velocity prediction model to score Args: velocity: [batch_dim, ...] shaped tensor; velocity model outp
opensora/models/diffusion/transport/path.py:70
↓ 1 callersMethodget_target_label
Get target label. Args: input (Tensor): Input tensor. target_is_real (bool): Whether the target is real or fake.
opensora/models/super_resolution/basicsr/losses/losses.py:320
↓ 1 callersMethodget_text_embeddings
Generates embeddings for a list of text prompts.
opensora/models/text_encoder/clip.py:35
↓ 1 callersMethodget_text_embeddings
(self, texts)
opensora/models/text_encoder/t5.py:41
↓ 1 callersFunctionget_text_warpper
deprecation
opensora/models/text_encoder/__init__.py:44
↓ 1 callersFunctionget_time_str
()
opensora/models/super_resolution/basicsr/utils/misc.py:20
↓ 1 callersMethodget_vid_cap_list
(self)
opensora/dataset/t2v_datasets.py:172
← previousnext →301–400 of 1,253, ranked by callers