MCPcopy Create free account

hub / github.com/SwayStar123/SpeedrunDiT / functions

Functions254 in github.com/SwayStar123/SpeedrunDiT

Methodforward
(self, x)
models/invae.py:32
Methodforward
(self, x)
models/invae.py:49
Methodforward
(self, x, temb)
models/invae.py:96
Methodforward
(self, x)
models/invae.py:138
Methodforward
(self, x)
models/invae.py:249
Methodforward
(self, z)
models/invae.py:369
Methodforward
(self, x, return_recon=True)
models/invae.py:476
Methodforward
(self, t)
models/sit.py:69
Methodforward
(self, labels, train, force_drop_ids=None)
models/sit.py:98
Methodforward
Multi-head self-attention with optional 2D RoPE. x: (B, N, C) rope: VisionRotaryEmbeddingFast or None rope_ids: (B, N) or (N,
models/sit.py:143
Methodforward
( self, x: torch.Tensor, c: torch.Tensor, feat_rope: Optional[VisionRotaryEmbe
models/sit.py:214
Methodforward
(self, x, c, cls=None)
models/sit.py:252
Methodforward
Forward pass of SiT with SPRINT. x: (N, C, H, W) tensor of spatial inputs (images or latent representations of images) t: (N,
models/sit.py:478
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.
preprocessing/dnnlib/util.py:188
Functionget_module_dir_by_obj_name
Get the directory path of the module containing the given object name.
preprocessing/dnnlib/util.py:293
Functionget_top_level_function_name
Return the fully-qualified name of a top-level function.
preprocessing/dnnlib/util.py:304
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
preprocessing/torch_utils/persistence.py:156
Functioninit
()
preprocessing/torch_utils/distributed.py:19
Methodinit_args
(self)
preprocessing/torch_utils/persistence.py:119
Methodinit_kwargs
(self)
preprocessing/torch_utils/persistence.py:124
Functioninit_multiprocessing
r"""Initializes `torch_utils.training_stats` for collecting statistics across multiple processes. This function must be called after `tor
preprocessing/torch_utils/training_stats.py:33
Functionis_pickleable
(obj: Any)
preprocessing/dnnlib/util.py:211
Methodkl
(self, other=None)
models/invae.py:420
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
preprocessing/dnnlib/util.py:318
Methodload_latest
(self, run_dir, pattern=r'training-state-(\d+).pt', verbose=True)
preprocessing/torch_utils/distributed.py:132
Methodmode
(self)
models/invae.py:448
Methodnll
(self, sample, dims=[1, 2, 3])
models/invae.py:439
Functionopen_url
Download the given URL and return a binary-mode file object to access the data.
preprocessing/dnnlib/util.py:386
Functionparams_and_buffers
(module)
preprocessing/torch_utils/misc.py:150
Functionparse_tuple
(s: str)
preprocessing/dataset_tools.py:39
Functionpinned_buf
(shape, dtype)
preprocessing/torch_utils/misc.py:66
Methodpositional_embedding
Create sinusoidal timestep embeddings. :param t: a 1-D Tensor of N indices, one per batch element. These may be fra
models/sit.py:49
Functionpost_hook
(mod, _inputs, outputs)
preprocessing/torch_utils/misc.py:211
Functionpre_hook
(_mod, _inputs)
preprocessing/torch_utils/misc.py:209
Functionprint_module_summary
(module, inputs, max_nesting=3, skip_redundant=True)
preprocessing/torch_utils/misc.py:201
Functionprofiled_function
(fn)
preprocessing/torch_utils/misc.py:111
Methodread_batch
(self, batch_size: int)
evaluations/evaluator.py:500
Methodread_batch
(self, batch_size: int)
evaluations/evaluator.py:530
Methodremaining
(self)
evaluations/evaluator.py:515
Methodremaining
(self)
evaluations/evaluator.py:538
Functionreport0
r"""Broadcasts the given set of scalars by the first process (`rank = 0`), but ignores any scalars provided by the other processes. See `repor
preprocessing/torch_utils/training_stats.py:105
Functionrequest_suspend
()
preprocessing/torch_utils/distributed.py:68
Functionset_cache_dir
(path: str)
preprocessing/dnnlib/util.py:117
Functionset_random_seed
(*args)
preprocessing/torch_utils/misc.py:19
Functionshould_stop
()
preprocessing/torch_utils/distributed.py:58
Functionshould_suspend
()
preprocessing/torch_utils/distributed.py:63
Functionsum_flat
Take the mean over all non-batch dimensions.
loss.py:11
Functiontile_images
(x, w, h)
preprocessing/torch_utils/misc.py:273
Functiontransform_image_worker
Worker function for parallel image transformation.
preprocessing/dataset_tools.py:236
Functiontrunc_normal_
(tensor, mean=0., std=1., a=-2., b=2.)
utils.py:107
Functiontuple_product
Calculate the product of the tuple elements.
preprocessing/dnnlib/util.py:164
Functionupdate_progress
(cur, total)
preprocessing/torch_utils/distributed.py:73
Methodwarmup
(self)
evaluations/evaluator.py:267
Functionzip_write_bytes
(fname: str, data: Union[bytes, str])
preprocessing/dataset_tools.py:155
← previous201–254 of 254, ranked by callers