Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/LTH14/mar
/ functions
Functions
149 in github.com/LTH14/mar
⨍
Functions
149
◇
Types & classes
25
Method
__init__
( self, root: str, )
util/loader.py:30
Method
__init__
(self, window_size=20, fmt=None)
util/misc.py:25
Method
__init__
(self, delimiter="\t")
util/misc.py:83
Method
__init__
(self)
util/misc.py:250
Method
__str__
(self)
util/misc.py:73
Method
__str__
(self)
util/misc.py:104
Method
_basic_init
(module)
models/diffloss.py:195
Method
_init_weights
(self, m)
models/mar.py:119
Method
_scale_timesteps
(self, t)
diffusion/respace.py:112
Function
add_weight_decay
(model, weight_decay=1e-5, skip_list=())
util/misc.py:291
Function
adjust_learning_rate
Decay the learning rate with half-cycle cosine after warmup
util/lr_sched.py:4
Function
all_reduce_mean
(x)
util/misc.py:332
Method
avg
(self)
util/misc.py:57
Method
calc_bpd_loop
Compute the entire variational lower-bound, measured in bits-per-dim, as well as other related quantities. :param model: the
diffusion/gaussian_diffusion.py:809
Method
condition_mean
(self, cond_fn, *args, **kwargs)
diffusion/respace.py:99
Method
condition_score
(self, cond_fn, *args, **kwargs)
diffusion/respace.py:102
Method
ddim_reverse_sample
Sample x_{t+1} from the model using DDIM reverse ODE.
diffusion/gaussian_diffusion.py:568
Method
ddim_sample_loop
Generate samples from the model using DDIM. Same usage as p_sample_loop().
diffusion/gaussian_diffusion.py:606
Method
forward
(self, x)
models/vae.py:28
Method
forward
(self, x)
models/vae.py:45
Method
forward
(self, x, temb)
models/vae.py:92
Method
forward
(self, x)
models/vae.py:134
Method
forward
(self, x)
models/vae.py:245
Method
forward
(self, z)
models/vae.py:365
Method
forward
(self, inputs, disable=True, train=True, optimizer_idx=0)
models/vae.py:486
Method
forward
(self, target, z, mask=None)
models/diffloss.py:26
Method
forward
(self, t)
models/diffloss.py:93
Method
forward
(self, x, y)
models/diffloss.py:124
Method
forward
(self, x, c)
models/diffloss.py:144
Method
forward
(self, imgs, labels)
models/mar.py:240
Method
forward_with_cfg
(self, x, t, c, cfg_scale)
models/diffloss.py:240
Function
generate_image
(seed, num_ar_steps, class_labels, cfg_scale, cfg_schedule)
demo/gradio_app.py:44
Function
get_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 limi
diffusion/gaussian_diffusion.py:98
Method
global_avg
(self)
util/misc.py:62
Function
init_distributed_mode
(args)
util/misc.py:212
Method
is_vb
(self)
diffusion/gaussian_diffusion.py:54
Method
kl
(self, other=None)
models/vae.py:418
Function
mar_base
(**kwargs)
models/mar.py:332
Function
mar_huge
(**kwargs)
models/mar.py:348
Function
mar_large
(**kwargs)
models/mar.py:340
Method
median
(self)
util/misc.py:52
Method
mode
(self)
models/vae.py:446
Method
nll
(self, sample, dims=[1, 2, 3])
models/vae.py:437
Method
p_mean_variance
( self, model, *args, **kwargs )
diffusion/respace.py:89
Method
process_xstart
(x)
diffusion/gaussian_diffusion.py:310
Function
save_model
(args, epoch, model, model_without_ddp, optimizer, loss_scaler, ema_params=None, epoch_name=None)
util/misc.py:306
Method
synchronize_between_processes
Warning: does not synchronize the deque!
util/misc.py:38
Method
training_losses
Compute training losses for a single timestep. :param model: the model to evaluate loss on. :param x_start: the [N x C x ...]
diffusion/gaussian_diffusion.py:719
Method
value
(self)
util/misc.py:70
← previous
101–149 of 149, ranked by callers