MCPcopy Create free account

hub / github.com/Vchitect/Latte / functions

Functions555 in github.com/Vchitect/Latte

↓ 1 callersMethodp_sample_loop_progressive
Generate samples from the model and yield intermediate samples from each timestep of diffusion. Arguments are the same as
diffusion/gaussian_diffusion.py:468
↓ 1 callersFunctionpersistent_class
r"""Class decorator that extends a given class to save its source code when pickled. Example: from src.torch_utils import persistenc
tools/torch_utils/persistence.py:35
↓ 1 callersMethodprepare_extra_step_kwargs
(self, generator, eta)
sample/pipeline_latte.py:288
↓ 1 callersMethodprepare_latents
(self, batch_size, num_channels_latents, video_length, height, width, dtype, device, generator, latents=None)
sample/pipeline_latte.py:499
↓ 1 callersFunctionprocess_video
( clip_path: os.PathLike, target_dir: os.PathLike, force_fps: int=None, target_size: int=None, broken_
tools/convert_videos_to_frames.py:45
↓ 1 callersMethodq_mean_variance
Get the distribution q(x_t | x_0). :param x_start: the [N x C x ...] tensor of noiseless inputs. :param t: the number of d
diffusion/gaussian_diffusion.py:203
↓ 1 callersFunctionrandom_frame_sampling
(cfg: Dict, total_video_len: int, use_fractional_t: bool=False)
tools/utils/layers.py:387
↓ 1 callersFunctionrandom_shift_crop
Slide along the long edge, with the short edge as crop size
datasets/video_transforms.py:108
↓ 1 callersFunctionrecurse
(obj)
tools/torch_utils/persistence.py:236
↓ 1 callersFunctionremove_root
`root_name` should NOT start with '/
tools/utils/dataset.py:486
↓ 1 callersFunctionreport
r"""Broadcasts the given set of scalars to all interested instances of `Collector`, across device and process boundaries. This function is ex
tools/torch_utils/training_stats.py:56
↓ 1 callersFunctionresize_scale
(clip, target_size, interpolation_mode)
datasets/video_transforms.py:52
↓ 1 callersFunctionrun_generator
(z, c, t)
tools/metrics/metric_utils.py:277
↓ 1 callersFunctionsample_frames
(cfg: Dict, total_video_len: int, **kwargs)
tools/utils/layers.py:377
↓ 1 callersMethodset_num_features
(self, num_features)
tools/metrics/metric_utils.py:75
↓ 1 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 port
diffusion/respace.py:12
↓ 1 callersFunctionsubprocess_fn
(rank, args, temp_dir)
tools/calc_metrics_for_dataset.py:26
↓ 1 callersMethodtimestep_embedding
Create sinusoidal timestep embeddings. :param t: a 1-D Tensor of N indices, one per batch element. These
models/latte.py:98
↓ 1 callersMethodtimestep_embedding
Create sinusoidal timestep embeddings. :param t: a 1-D Tensor of N indices, one per batch element. These b
models/latte_img.py:101
↓ 1 callersFunctionto_tensor
Convert tensor data type from uint8 to float, divide value by 255.0 and permute the dimensions of clip tensor Args: clip (tor
datasets/video_transforms.py:130
↓ 1 callersMethodtoken_drop
Drops labels to enable classifier-free guidance.
models/latte.py:137
↓ 1 callersMethodtoken_drop
Drops text to enable classifier-free guidance.
models/clip.py:71
↓ 1 callersMethodtoken_drop
Drops labels to enable classifier-free guidance.
models/latte_img.py:140
↓ 1 callersFunctionuniform_frame_sampling
(cfg: Dict, total_video_len: int, use_fractional_t: bool=False)
tools/utils/layers.py:415
↓ 1 callersMethodunpatchify
x: (N, T, patch_size**2 * C) imgs: (N, H, W, C)
models/latte.py:297
↓ 1 callersMethodunpatchify
x: (N, T, patch_size**2 * C) imgs: (N, H, W, C)
models/latte_img.py:299
↓ 1 callersMethodupdate_with_all_losses
Update the reweighting using losses from a model. Sub-classes should override this method to update the reweighting using
diffusion/timestep_sampler.py:106
↓ 1 callersFunctionvideo_to_image_dataset_kwargs
Converts video dataset kwargs to image dataset kwargs
tools/utils/dataset.py:470
↓ 1 callersMethodweights
Get a numpy array of weights, one per diffusion step. The weights needn't be normalized, but must be positive.
diffusion/timestep_sampler.py:38
FunctionLatte_B_2
(**kwargs)
models/latte.py:482
FunctionLatte_B_2
(**kwargs)
models/latte_img.py:505
FunctionLatte_B_4
(**kwargs)
models/latte.py:485
FunctionLatte_B_4
(**kwargs)
models/latte_img.py:508
FunctionLatte_B_8
(**kwargs)
models/latte.py:488
FunctionLatte_B_8
(**kwargs)
models/latte_img.py:511
FunctionLatte_L_2
(**kwargs)
models/latte.py:473
FunctionLatte_L_2
(**kwargs)
models/latte_img.py:496
FunctionLatte_L_4
(**kwargs)
models/latte.py:476
FunctionLatte_L_4
(**kwargs)
models/latte_img.py:499
FunctionLatte_L_8
(**kwargs)
models/latte.py:479
FunctionLatte_L_8
(**kwargs)
models/latte_img.py:502
FunctionLatte_S_2
(**kwargs)
models/latte.py:491
FunctionLatte_S_2
(**kwargs)
models/latte_img.py:514
FunctionLatte_S_4
(**kwargs)
models/latte.py:494
FunctionLatte_S_4
(**kwargs)
models/latte_img.py:517
FunctionLatte_S_8
(**kwargs)
models/latte.py:497
FunctionLatte_S_8
(**kwargs)
models/latte_img.py:520
FunctionLatte_XL_4
(**kwargs)
models/latte.py:467
FunctionLatte_XL_4
(**kwargs)
models/latte_img.py:490
FunctionLatte_XL_8
(**kwargs)
models/latte.py:470
FunctionLatte_XL_8
(**kwargs)
models/latte_img.py:493
Method__call__
(self, x, ts, **kwargs)
diffusion/respace.py:125
Method__call__
Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[str]`, *optional*):
sample/pipeline_latte.py:518
Method__call__
Perform the Decord initialization. Args: results (dict): The resulting dict to be modified and passed to the ne
datasets/ffs_datasets.py:106
Method__call__
Args: clip (torch.tensor): Video clip to be cropped. Size is (T, C, H, W) Returns: torch.tensor: randomly
datasets/video_transforms.py:185
Method__call__
Args: clip (torch.tensor): Video clip to be cropped. Size is (T, C, H, W) Returns: torch.tensor: scale re
datasets/video_transforms.py:234
Method__call__
Args: clip (torch.tensor): Video clip to be cropped. Size is (T, C, H, W) Returns: torch.tensor: scale re
datasets/video_transforms.py:269
Method__call__
(self, clip)
datasets/video_transforms.py:302
Method__call__
Args: clip (torch.tensor): Video clip to be cropped. Size is (T, C, H, W) Returns: torch.tensor: center c
datasets/video_transforms.py:324
Method__call__
Args: clip (torch.tensor): video clip must be normalized. Size is (C, T, H, W)
datasets/video_transforms.py:353
Method__call__
Args: clip (torch.tensor, dtype=torch.uint8): Size is (T, C, H, W) Return: clip (torch.tensor, dtype=torc
datasets/video_transforms.py:373
Method__call__
Args: clip (torch.tensor): Size is (T, C, H, W) Return: clip (torch.tensor): Size is (T, C, H, W)
datasets/video_transforms.py:396
Method__call__
(self, total_frames)
datasets/video_transforms.py:423
Method__call__
Perform the Decord initialization. Args: results (dict): The resulting dict to be modified and passed to the next
datasets/ucf101_image_datasets.py:121
Method__call__
Perform the Decord initialization. Args: results (dict): The resulting dict to be modified and passed to the ne
datasets/ucf101_datasets.py:120
Method__call__
Perform the Decord initialization. Args: results (dict): The resulting dict to be modified and passed to the next
datasets/ffs_image_datasets.py:110
Method__del__
(self)
tools/utils/dataset.py:92
Method__delattr__
(self, name: str)
tools/dnnlib/util.py:52
Method__enter__
(self)
tools/torch_utils/misc.py:70
Method__enter__
(self)
tools/dnnlib/util.py:75
Method__exit__
(self, exc_type: Any, exc_value: Any, traceback: Any)
tools/dnnlib/util.py:78
Method__getattr__
(self, name: str)
tools/dnnlib/util.py:43
Method__getitem__
(self, idx)
tools/utils/dataset.py:101
Method__getitem__
(self, idx: int)
tools/utils/dataset.py:398
Method__getitem__
r"""Convenience getter. `collector[name]` is a synonym for `collector.mean(name)`.
tools/torch_utils/training_stats.py:226
Method__getitem__
(self, index)
datasets/ffs_datasets.py:145
Method__getitem__
(self, index)
datasets/sky_datasets.py:26
Method__getitem__
(self, index)
datasets/ucf101_image_datasets.py:176
Method__getitem__
(self, index)
datasets/ucf101_datasets.py:162
Method__getitem__
(self, index)
datasets/ffs_image_datasets.py:161
Method__getitem__
(self, index)
datasets/taichi_image_datasets.py:33
Method__getitem__
(self, index)
datasets/taichi_datasets.py:28
Method__getitem__
(self, index)
datasets/sky_image_datasets.py:29
Method__getstate__
(self)
tools/utils/dataset.py:223
Method__getstate__
(self)
tools/utils/dataset.py:356
Method__init__
(self, args, logger: logging.Logger)
train_with_img_pl.py:31
Method__init__
(self, args, logger: logging.Logger)
train_pl.py:31
Method__init__
(self, z_dim, # Input latent (Z) dimensionality, 0 = no latent. c_dim,
tools/utils/layers.py:24
Method__init__
(self, in_features, # Number of input features. out_features, # N
tools/utils/layers.py:110
Method__init__
(self, in_channels, # Number of input channels. out_channels,
tools/utils/layers.py:144
Method__init__
(self, cfg: DictConfig, channel_dim: int, motion_v_dim: int)
tools/utils/layers.py:232
Method__init__
(self, cfg: DictConfig)
tools/utils/layers.py:256
Method__init__
(self, max_num_frames: int, # Maximum T size skip_small_t_freqs: int=0,
tools/utils/layers.py:303
Method__init__
(self, in_features: int, out_features: int, kernel_size: int, padding: int=0,
tools/utils/layers.py:333
Method__init__
(self, path, # Path to directory or zip. resolution = None, # Ensure sp
tools/utils/dataset.py:175
Method__init__
(self, path, # Path to directory or zip. cfg: DictCo
tools/utils/dataset.py:261
Method__init__
(self, dataset, rank=0, num_replicas=1, shuffle=True, seed=0, window_size=0.5)
tools/torch_utils/misc.py:111
Method__init__
(self, *args, **kwargs)
tools/torch_utils/persistence.py:103
Method__init__
(self, regex='.*', keep_previous=True)
tools/torch_utils/training_stats.py:133
Method__init__
(self, G=None, G_kwargs={}, dataset_kwargs={}, num_gpus=1, rank=0, device=None, progres
tools/metrics/metric_utils.py:25
← previousnext →201–300 of 555, ranked by callers