MCPcopy Create free account

hub / github.com/Vchitect/Latte / functions

Functions555 in github.com/Vchitect/Latte

Functioncompute_isv
(opts, num_gen: int, num_splits: int, backbone: str)
tools/metrics/video_inception_score.py:14
Functioncompute_kid
(opts, max_real, num_gen, num_subsets, max_subset_size)
tools/metrics/kernel_inception_distance.py:18
Methodcompute_max_num_frames
(self)
tools/utils/dataset.py:452
Methodcondition_mean
(self, cond_fn, *args, **kwargs)
diffusion/respace.py:100
Methodcondition_score
(self, cond_fn, *args, **kwargs)
diffusion/respace.py:103
Methodconfigure_optimizers
(self)
train_with_img_pl.py:139
Methodconfigure_optimizers
(self)
train_pl.py:129
Functionconstant
(value, shape=None, dtype=None, device=None, memory_format=None)
tools/torch_utils/misc.py:22
Functionconstruct_class_by_name
Finds the python class with the given name and constructs it with the given arguments.
tools/dnnlib/util.py:290
Functioncontinuous_gaussian_log_likelihood
Compute the log-likelihood of a continuous Gaussian distribution. :param x: the targets :param means: the Gaussian mean Tensor. :
diffusion/diffusion_utils.py:47
Functionconv2d
(input, weight, bias=None, stride=1, padding=0, dilation=1, groups=1)
tools/torch_utils/ops/conv2d_gradfix.py:35
Functionconv2d_resample
r"""2D convolution with optional up/downsampling. Padding is performed only once at the beginning, not between the operations. Args:
tools/torch_utils/ops/conv2d_resample.py:59
Functionconv_nd
Create a 1D, 2D, or 3D convolution module.
models/utils.py:141
Functionconv_transpose2d
(input, weight, bias=None, stride=1, padding=0, output_padding=0, groups=1, dilation=1)
tools/torch_utils/ops/conv2d_gradfix.py:40
Functioncopy_files_and_create_dirs
Takes in a list of tuples of (src, dst) paths and copies files. Will create all necessary directories.
tools/dnnlib/util.py:351
Functioncopy_params_and_buffers
(src_module, dst_module, require_all=False)
tools/torch_utils/misc.py:154
Functioncount_flops_attn
A counter for the `thop` package to count the operations in an attention operation. Meant to be used like: macs, params = tho
models/utils.py:192
Functioncount_params
(model, verbose=False)
models/utils.py:211
Functioncreate_named_schedule_sampler
Create a ScheduleSampler from a library of pre-defined samplers. :param name: the name of the sampler. :param diffusion: the diffusion
diffusion/timestep_sampler.py:13
Functioncreate_npz_from_sample_folder
Builds a single .npz file from a folder of .png samples.
sample/sample_ddp.py:34
Methodddim_reverse_sample
Sample x_{t+1} from the model using DDIM reverse ODE.
diffusion/gaussian_diffusion.py:566
Functionddp_sync
(module, sync)
tools/torch_utils/misc.py:168
Functiondecorator
(*args, **kwargs)
tools/torch_utils/misc.py:100
Functiondownsample2d
r"""Downsample a batch of 2D images using the given 2D FIR filter. By default, the result is padded so that its shape is a fraction of the input.
tools/torch_utils/ops/upfirdn2d.py:347
Methodencode
(self, text)
models/clip.py:58
Functionfid50k
(opts)
tools/metrics/metric_main.py:144
Functionfid50k_full
(opts)
tools/metrics/metric_main.py:97
Functionfilter2d
r"""Filter a batch of 2D images using the given 2D FIR filter. By default, the result is padded so that its shape matches the input. User-spe
tools/torch_utils/ops/upfirdn2d.py:272
Functionfma
(a, b, c)
tools/torch_utils/ops/fma.py:15
Functionformat_time
Convert the seconds to human readable string with days, hours, minutes and seconds.
tools/dnnlib/util.py:142
Methodforward
(self, z, c, truncation_psi=1, truncation_cutoff=None, skip_w_avg_update=False)
tools/utils/layers.py:68
Methodforward
(self, x)
tools/utils/layers.py:125
Methodforward
(self, x, gain=1)
tools/utils/layers.py:184
Methodforward
(self, batch_size: int, motion_v: Optional[torch.Tensor]=None, dtype=None, memory_format=None)
tools/utils/layers.py:217
Methodforward
motion_v: [batch_size, motion_v_dim]
tools/utils/layers.py:242
Methodforward
(self, t: torch.Tensor)
tools/utils/layers.py:277
Methodforward
(self, t: torch.Tensor)
tools/utils/layers.py:316
Methodforward
(self, x: torch.Tensor)
tools/utils/layers.py:356
Methodforward
(ctx, input, grid)
tools/torch_utils/ops/grid_sample_gradfix.py:46
Methodforward
(ctx, grad_output, input, grid)
tools/torch_utils/ops/grid_sample_gradfix.py:63
Methodforward
(ctx, x, b)
tools/torch_utils/ops/bias_act.py:147
Methodforward
(ctx, dy, x, b, y)
tools/torch_utils/ops/bias_act.py:180
Methodforward
(ctx, x, f)
tools/torch_utils/ops/upfirdn2d.py:230
Methodforward
(ctx, a, b, c)
tools/torch_utils/ops/fma.py:22
Methodforward
(ctx, input, weight, bias)
tools/torch_utils/ops/conv2d_gradfix.py:109
Methodforward
(ctx, grad_output, input)
tools/torch_utils/ops/conv2d_gradfix.py:142
Methodforward
(self, x)
models/latte.py:48
Methodforward
(self, t, use_fp16=False)
models/latte.py:118
Methodforward
(self, labels, train, force_drop_ids=None)
models/latte.py:148
Methodforward
(self, x, c)
models/latte.py:177
Methodforward
(self, x, c)
models/latte.py:197
Methodforward
(self, text)
models/clip.py:48
Methodforward
(self, text_prompts, train, force_drop_ids=None)
models/clip.py:84
Methodforward
(self, x: torch.Tensor, objs: torch.Tensor)
models/latte_t2v.py:57
Methodforward
(self, hidden_states: torch.Tensor, scale: float = 1.0)
models/latte_t2v.py:116
Methodforward
( self, hidden_states: torch.FloatTensor, attention_mask: Optional[torch.FloatTensor]
models/latte_t2v.py:272
Methodforward
( self, timestep: torch.Tensor, added_cond_kwargs: Dict[str, torch.Tensor] = None,
models/latte_t2v.py:419
Methodforward
The [`Transformer2DModel`] forward method. Args: hidden_states (`torch.LongTensor` of shape `(batch size, num latent pix
models/latte_t2v.py:677
Methodforward
(ctx, run_function, length, *args)
models/utils.py:44
Methodforward
(self, x)
models/utils.py:138
Methodforward
(self, x)
models/latte_img.py:55
Methodforward
(self, t, use_fp16=False)
models/latte_img.py:121
Methodforward
(self, labels, train, force_drop_ids=None)
models/latte_img.py:151
Methodforward
(self, x, c)
models/latte_img.py:180
Methodforward
(self, x, c)
models/latte_img.py:200
Methodforward_with_cfg
Forward pass of Latte, but also batches the unconditional forward pass for classifier-free guidance.
models/latte.py:379
Methodforward_with_cfg
Forward pass of Latte, but also batches the unconditional forward pass for classifier-free guidance.
models/latte_img.py:402
Functionfvd2048_128f
(opts)
tools/metrics/metric_main.py:122
Functionfvd2048_128f_subsample8f
Similar to `fvd2048_128f`, but we sample each 8-th frame
tools/metrics/metric_main.py:128
Functionfvd2048_16f
(opts)
tools/metrics/metric_main.py:116
Methodget_all_torch
(self)
tools/metrics/metric_utils.py:120
Methodget_details
(self, idx)
tools/utils/dataset.py:123
Methodget_dim
(self)
tools/utils/layers.py:268
Methodget_dim
(self)
tools/utils/layers.py:313
Functionget_dtype_and_ctype
Given a type name string (or an object having a __name__ attribute), return matching Numpy and ctypes types that have the same size in bytes.
tools/dnnlib/util.py:190
Functionget_grad_norm
r""" Copy from torch.nn.utils.clip_grad_norm_ Clips gradient norm of an iterable of parameters. The norm is computed over all gradients
utils.py:35
Functionget_lr_scheduler
(optimizer, name, **kwargs)
models/__init__.py:22
Functionget_module_dir_by_obj_name
Get the directory path of the module containing the given object name.
tools/dnnlib/util.py:295
Functionget_named_beta_schedule
Get a pre-defined beta schedule for the given name. The beta schedule library consists of beta schedules which remain similar in the l
diffusion/gaussian_diffusion.py:98
Functionget_plugin
(module_name, sources, **build_kwargs)
tools/torch_utils/custom_ops.py:46
Functionget_top_level_function_name
Return the fully-qualified name of a top-level function.
tools/dnnlib/util.py:306
Functiongrid_sample
(input, grid)
tools/torch_utils/ops/grid_sample_gradfix.py:27
Methodhas_labels
(self)
tools/utils/dataset.py:165
Methodhas_onehot_labels
(self)
tools/utils/dataset.py:169
Methodimage_shape
(self)
tools/utils/dataset.py:135
Functionimport_hook
r"""Register an import hook that is called whenever a persistent object is being unpickled. A typical use case is to patch the pickled source
tools/torch_utils/persistence.py:147
Methodinit_args
(self)
tools/torch_utils/persistence.py:111
Methodinit_kwargs
(self)
tools/torch_utils/persistence.py:115
Functioninit_multiprocessing
r"""Initializes `torch_utils.training_stats` for collecting statistics across multiple processes. This function must be called after `tor
tools/torch_utils/training_stats.py:34
Functionis50k
(opts)
tools/metrics/metric_main.py:110
Functionis_pickleable
(obj: Any)
tools/dnnlib/util.py:213
Functionis_power_of_two
(n: int)
tools/metrics/metric_main.py:38
Methodis_vb
(self)
diffusion/gaussian_diffusion.py:54
Functionisv2048_ucf
(opts)
tools/metrics/metric_main.py:135
Functionkid50k
(opts)
tools/metrics/metric_main.py:150
Functionkid50k_full
(opts)
tools/metrics/metric_main.py:104
Methodlabel_dim
(self)
tools/utils/dataset.py:160
Methodlabel_shape
(self)
tools/utils/dataset.py:150
Functionlinear
Create a linear module.
models/utils.py:154
Functionlist_dir_recursively_with_ignore
List all files recursively in a given directory while ignoring given file and directory names. Returns list of tuples containing both absolute and
tools/dnnlib/util.py:318
← previousnext →401–500 of 555, ranked by callers