Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/SwayStar123/SpeedrunDiT
/ functions
Functions
254 in github.com/SwayStar123/SpeedrunDiT
⨍
Functions
254
◇
Types & classes
35
↳
Endpoints
2
Method
forward
(self, x)
models/invae.py:32
Method
forward
(self, x)
models/invae.py:49
Method
forward
(self, x, temb)
models/invae.py:96
Method
forward
(self, x)
models/invae.py:138
Method
forward
(self, x)
models/invae.py:249
Method
forward
(self, z)
models/invae.py:369
Method
forward
(self, x, return_recon=True)
models/invae.py:476
Method
forward
(self, t)
models/sit.py:69
Method
forward
(self, labels, train, force_drop_ids=None)
models/sit.py:98
Method
forward
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
Method
forward
( self, x: torch.Tensor, c: torch.Tensor, feat_rope: Optional[VisionRotaryEmbe
models/sit.py:214
Method
forward
(self, x, c, cls=None)
models/sit.py:252
Method
forward
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
Function
get_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
Function
get_module_dir_by_obj_name
Get the directory path of the module containing the given object name.
preprocessing/dnnlib/util.py:293
Function
get_top_level_function_name
Return the fully-qualified name of a top-level function.
preprocessing/dnnlib/util.py:304
Function
import_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
Function
init
()
preprocessing/torch_utils/distributed.py:19
Method
init_args
(self)
preprocessing/torch_utils/persistence.py:119
Method
init_kwargs
(self)
preprocessing/torch_utils/persistence.py:124
Function
init_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
Function
is_pickleable
(obj: Any)
preprocessing/dnnlib/util.py:211
Method
kl
(self, other=None)
models/invae.py:420
Function
list_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
Method
load_latest
(self, run_dir, pattern=r'training-state-(\d+).pt', verbose=True)
preprocessing/torch_utils/distributed.py:132
Method
mode
(self)
models/invae.py:448
Method
nll
(self, sample, dims=[1, 2, 3])
models/invae.py:439
Function
open_url
Download the given URL and return a binary-mode file object to access the data.
preprocessing/dnnlib/util.py:386
Function
params_and_buffers
(module)
preprocessing/torch_utils/misc.py:150
Function
parse_tuple
(s: str)
preprocessing/dataset_tools.py:39
Function
pinned_buf
(shape, dtype)
preprocessing/torch_utils/misc.py:66
Method
positional_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
Function
post_hook
(mod, _inputs, outputs)
preprocessing/torch_utils/misc.py:211
Function
pre_hook
(_mod, _inputs)
preprocessing/torch_utils/misc.py:209
Function
print_module_summary
(module, inputs, max_nesting=3, skip_redundant=True)
preprocessing/torch_utils/misc.py:201
Function
profiled_function
(fn)
preprocessing/torch_utils/misc.py:111
Method
read_batch
(self, batch_size: int)
evaluations/evaluator.py:500
Method
read_batch
(self, batch_size: int)
evaluations/evaluator.py:530
Method
remaining
(self)
evaluations/evaluator.py:515
Method
remaining
(self)
evaluations/evaluator.py:538
Function
report0
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
Function
request_suspend
()
preprocessing/torch_utils/distributed.py:68
Function
set_cache_dir
(path: str)
preprocessing/dnnlib/util.py:117
Function
set_random_seed
(*args)
preprocessing/torch_utils/misc.py:19
Function
should_stop
()
preprocessing/torch_utils/distributed.py:58
Function
should_suspend
()
preprocessing/torch_utils/distributed.py:63
Function
sum_flat
Take the mean over all non-batch dimensions.
loss.py:11
Function
tile_images
(x, w, h)
preprocessing/torch_utils/misc.py:273
Function
transform_image_worker
Worker function for parallel image transformation.
preprocessing/dataset_tools.py:236
Function
trunc_normal_
(tensor, mean=0., std=1., a=-2., b=2.)
utils.py:107
Function
tuple_product
Calculate the product of the tuple elements.
preprocessing/dnnlib/util.py:164
Function
update_progress
(cur, total)
preprocessing/torch_utils/distributed.py:73
Method
warmup
(self)
evaluations/evaluator.py:267
Function
zip_write_bytes
(fname: str, data: Union[bytes, str])
preprocessing/dataset_tools.py:155
← previous
201–254 of 254, ranked by callers