Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Vchitect/Latte
/ functions
Functions
555 in github.com/Vchitect/Latte
⨍
Functions
555
◇
Types & classes
88
↓ 1 callers
Function
Latte_XL_2
(**kwargs)
models/latte_img.py:487
↓ 1 callers
Method
__init__
(self, model, timestep_map, original_num_steps)
diffusion/respace.py:119
↓ 1 callers
Method
__reduce__
(self)
tools/torch_utils/persistence.py:118
↓ 1 callers
Function
_bias_act_cuda
Fast CUDA implementation of `bias_act()` using custom ops.
tools/torch_utils/ops/bias_act.py:129
↓ 1 callers
Function
_bias_act_ref
Slow reference implementation of `bias_act()` using standard TensorFlow ops.
tools/torch_utils/ops/bias_act.py:94
↓ 1 callers
Function
_check_pickleable
r"""Check that the given object is pickleable, raising an exception if it is not. This function is expected to be considerably more efficient
tools/torch_utils/persistence.py:231
↓ 1 callers
Function
_find_compiler_bindir
()
tools/torch_utils/custom_ops.py:28
↓ 1 callers
Function
_init
()
tools/torch_utils/ops/bias_act.py:41
↓ 1 callers
Function
_init
()
tools/torch_utils/ops/upfirdn2d.py:26
↓ 1 callers
Method
_load_pretrained_parameters
(self, args)
train_with_img_pl.py:57
↓ 1 callers
Method
_load_pretrained_parameters
(self, args)
train_pl.py:57
↓ 1 callers
Method
_load_raw_image
(self, raw_idx)
tools/utils/dataset.py:83
↓ 1 callers
Method
_load_raw_image
(self, raw_idx)
tools/utils/dataset.py:226
↓ 1 callers
Method
_load_raw_labels
(self)
tools/utils/dataset.py:86
↓ 1 callers
Function
_module_to_src
r"""Query the source code of a given Python module.
tools/torch_utils/persistence.py:206
↓ 1 callers
Method
_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
diffusion/gaussian_diffusion.py:797
↓ 1 callers
Function
_should_use_custom_op
()
tools/torch_utils/ops/grid_sample_gradfix.py:34
↓ 1 callers
Function
_src_to_module
r"""Get or create a Python module for the given source code.
tools/torch_utils/persistence.py:216
↓ 1 callers
Function
_sync
r"""Synchronize the global cumulative counters across devices and processes. Called internally by `Collector.update()`.
tools/torch_utils/training_stats.py:234
↓ 1 callers
Function
_upfirdn2d_ref
Slow reference implementation of `upfirdn2d()` using standard PyTorch ops.
tools/torch_utils/ops/upfirdn2d.py:169
↓ 1 callers
Method
_warmed_up
(self)
diffusion/timestep_sampler.py:149
↓ 1 callers
Function
betas_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 =
diffusion/gaussian_diffusion.py:125
↓ 1 callers
Function
calc_metrics_cli_wrapper
(ctx, *args, **kwargs)
tools/calc_metrics_for_dataset.py:165
↓ 1 callers
Function
calc_metrics_for_dataset
(ctx, metrics, real_data_path, fake_data_path, mirror, resolution, gpus, verbose, use_cache: bool, num_runs: i
tools/calc_metrics_for_dataset.py:92
↓ 1 callers
Function
call_func_by_name
Finds the python object with the given name and calls it as a function.
tools/dnnlib/util.py:282
↓ 1 callers
Function
center_crop_using_short_edge
(clip)
datasets/video_transforms.py:93
↓ 1 callers
Method
check_inputs
( self, prompt, height, width, negative_prompt, callback_steps
sample/pipeline_latte.py:305
↓ 1 callers
Method
close
Flush, close possible files, and remove stdout/stderr mirroring.
tools/dnnlib/util.py:103
↓ 1 callers
Method
condition_mean
Compute the mean for the previous step, given a function cond_fn that computes the gradient of a conditional log probability with r
diffusion/gaussian_diffusion.py:350
↓ 1 callers
Function
construct_log_spaced_freqs
(max_num_frames: int, skip_small_t_freqs: int=0)
tools/utils/layers.py:439
↓ 1 callers
Function
convert_videos_to_frames
(source_dir: os.PathLike, target_dir: os.PathLike, num_workers: int, video_ext: str, **process_video_kwargs)
tools/convert_videos_to_frames.py:19
↓ 1 callers
Function
create_experiment_directory
(args)
train_with_img_pl.py:160
↓ 1 callers
Function
create_experiment_directory
(args)
train_pl.py:150
↓ 1 callers
Function
create_logger
(logging_dir)
train_with_img_pl.py:149
↓ 1 callers
Function
create_logger
(logging_dir)
train_pl.py:139
↓ 1 callers
Function
customized_lr_scheduler
(optimizer, warmup_steps=5000)
models/__init__.py:12
↓ 1 callers
Method
ddim_sample
Sample x_{t-1} from the model using DDIM. Same usage as p_sample().
diffusion/gaussian_diffusion.py:517
↓ 1 callers
Method
ddim_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_p
diffusion/gaussian_diffusion.py:637
↓ 1 callers
Method
decode_latents
(self, latents)
sample/pipeline_latte.py:765
↓ 1 callers
Method
decode_latents_image
(self, latents)
sample/pipeline_latte.py:752
↓ 1 callers
Method
decode_latents_with_temporal_decoder
(self, latents)
sample/pipeline_latte.py:779
↓ 1 callers
Function
discretized_gaussian_log_likelihood
Compute the log-likelihood of a Gaussian distribution discretizing to a given image. :param x: the target images. It is assumed that t
diffusion/diffusion_utils.py:62
↓ 1 callers
Method
encode_prompt
r""" Encodes the prompt into text encoder hidden states. Args: prompt (`str` or `List[str]`, *optional*):
sample/pipeline_latte.py:127
↓ 1 callers
Function
find_classes
Finds the class folders in a dataset. See :class:`DatasetFolder` for details.
datasets/ucf101_image_datasets.py:101
↓ 1 callers
Function
find_classes
Finds the class folders in a dataset. See :class:`DatasetFolder` for details.
datasets/ucf101_datasets.py:100
↓ 1 callers
Function
fn
(step)
models/__init__.py:14
↓ 1 callers
Method
forward
Forward pass of Latte. x: (N, F, C, H, W) tensor of video inputs t: (N,) tensor of diffusion timesteps y: (N,) te
models/latte.py:314
↓ 1 callers
Method
forward
(self, x)
models/utils.py:133
↓ 1 callers
Method
forward
Forward pass of Latte. x: (N, F, C, H, W) tensor of video inputs t: (N,) tensor of diffusion timesteps y: (N,) tensor
models/latte_img.py:316
↓ 1 callers
Method
freeze
(self)
models/clip.py:43
↓ 1 callers
Function
get_1d_sincos_temp_embed
(embed_dim, length)
models/latte.py:406
↓ 1 callers
Function
get_1d_sincos_temp_embed
(embed_dim, length)
models/latte_img.py:429
↓ 1 callers
Method
get_1d_sincos_temp_embed
(self, embed_dim, length)
models/latte_t2v.py:943
↓ 1 callers
Function
get_2d_sincos_pos_embed
grid_size: int of the grid height and width return: pos_embed: [grid_size*grid_size, embed_dim] or [1+grid_size*grid_size, embed_dim]
models/latte.py:410
↓ 1 callers
Function
get_2d_sincos_pos_embed
grid_size: int of the grid height and width return: pos_embed: [grid_size*grid_size, embed_dim] or [1+grid_size*grid_size, embed_dim] (w/
models/latte_img.py:433
↓ 1 callers
Function
get_2d_sincos_pos_embed_from_grid
(embed_dim, grid)
models/latte.py:428
↓ 1 callers
Function
get_2d_sincos_pos_embed_from_grid
(embed_dim, grid)
models/latte_img.py:451
↓ 1 callers
Function
get_beta_schedule
This is the deprecated API for creating beta schedules. See get_named_beta_schedule() for the new library of schedules.
diffusion/gaussian_diffusion.py:65
↓ 1 callers
Function
get_class_labels
(num_class, anno_pth='./k400_classmap.json')
datasets/ffs_datasets.py:55
↓ 1 callers
Function
get_class_labels
(num_class, anno_pth='./k400_classmap.json')
datasets/ucf101_image_datasets.py:58
↓ 1 callers
Function
get_class_labels
(num_class, anno_pth='./k400_classmap.json')
datasets/ucf101_datasets.py:57
↓ 1 callers
Function
get_class_labels
(num_class, anno_pth='./k400_classmap.json')
datasets/ffs_image_datasets.py:59
↓ 1 callers
Function
get_feature_detector_name
(url)
tools/metrics/metric_utils.py:43
↓ 1 callers
Function
get_filelist
(file_path)
datasets/ffs_datasets.py:41
↓ 1 callers
Function
get_filelist
(file_path)
datasets/ucf101_image_datasets.py:44
↓ 1 callers
Function
get_filelist
(file_path)
datasets/ucf101_datasets.py:41
↓ 1 callers
Function
get_filelist
(file_path)
datasets/ffs_image_datasets.py:43
↓ 1 callers
Function
get_obj_by_name
Finds the python object with the given name.
tools/dnnlib/util.py:276
↓ 1 callers
Method
get_params
(self, clip)
datasets/video_transforms.py:196
↓ 1 callers
Method
get_video_len
(self, idx: int)
tools/utils/dataset.py:429
↓ 1 callers
Function
hflip
Args: clip (torch.tensor): Video clip to be normalized. Size is (T, C, H, W) Returns: flipped clip (torch.tensor): Size i
datasets/video_transforms.py:166
↓ 1 callers
Method
initialize_weights
(self)
models/latte.py:257
↓ 1 callers
Method
initialize_weights
(self)
models/latte_img.py:259
↓ 1 callers
Method
is_full
(self)
tools/metrics/metric_utils.py:84
↓ 1 callers
Function
is_image_file
(filename)
datasets/sky_datasets.py:12
↓ 1 callers
Function
is_image_file
(filename)
datasets/taichi_image_datasets.py:13
↓ 1 callers
Function
is_image_file
(filename)
datasets/taichi_datasets.py:13
↓ 1 callers
Function
is_image_file
(filename)
datasets/sky_image_datasets.py:11
↓ 1 callers
Function
is_top_level_function
Determine whether the given object is a top-level function, i.e., defined at module scope using 'def'.
tools/dnnlib/util.py:301
↓ 1 callers
Function
is_url
Determine whether the given object is a valid URL string.
tools/dnnlib/util.py:367
↓ 1 callers
Function
load_annotation_data
(data_file_path)
datasets/ffs_datasets.py:50
↓ 1 callers
Function
load_annotation_data
(data_file_path)
datasets/ucf101_image_datasets.py:53
↓ 1 callers
Function
load_annotation_data
(data_file_path)
datasets/ucf101_datasets.py:52
↓ 1 callers
Function
load_annotation_data
(data_file_path)
datasets/ffs_image_datasets.py:54
↓ 1 callers
Method
load_video_frames
(self, dataroot)
datasets/sky_datasets.py:50
↓ 1 callers
Method
load_video_frames
(self, dataroot)
datasets/taichi_image_datasets.py:79
↓ 1 callers
Method
load_video_frames
(self, dataroot)
datasets/taichi_datasets.py:53
↓ 1 callers
Method
load_video_frames
(self, dataroot)
datasets/sky_image_datasets.py:73
↓ 1 callers
Function
main
(args)
train.py:47
↓ 1 callers
Function
main
(args)
train_with_img.py:44
↓ 1 callers
Function
main
(args)
train_with_img_pl.py:176
↓ 1 callers
Function
main
(args)
train_pl.py:166
↓ 1 callers
Function
main
(args)
sample/sample_t2x.py:24
↓ 1 callers
Function
main
(args)
sample/sample.py:39
↓ 1 callers
Function
main
Run sampling.
sample/sample_ddp.py:51
↓ 1 callers
Function
make_cache_dir_path
(*paths: str)
tools/dnnlib/util.py:127
↓ 1 callers
Method
mask_text_embeddings
(self, emb, mask)
sample/pipeline_latte.py:118
↓ 1 callers
Function
normalize
Args: clip (torch.tensor): Video clip to be normalized. Size is (T, C, H, W) mean (tuple): pixel RGB mean. Size is (3)
datasets/video_transforms.py:146
↓ 1 callers
Method
num
r"""Returns the number of scalars that were accumulated for the given statistic between the last two calls to `update()`, or zero if n
tools/torch_utils/training_stats.py:180
↓ 1 callers
Method
p_sample
Sample x_{t-1} from the model at the given timestep. :param model: the model to sample from. :param x: the current tensor
diffusion/gaussian_diffusion.py:380
← previous
next →
101–200 of 555, ranked by callers