Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/LTH14/JiT
/ functions
Functions
82 in github.com/LTH14/JiT
⨍
Functions
82
◇
Types & classes
14
↓ 30 callers
Function
print
(*args, **kwargs)
util/misc.py:165
↓ 7 callers
Method
__init__
( self, input_size=256, patch_size=16, in_channels=3, hidden_size=1024
model_jit.py:209
↓ 3 callers
Method
_forward_sample
(self, z, t, labels)
denoiser.py:91
↓ 3 callers
Function
is_dist_avail_and_initialized
()
util/misc.py:176
↓ 3 callers
Function
modulate
(x, shift, scale)
model_jit.py:13
↓ 2 callers
Method
__init__
LlamaRMSNorm is equivalent to T5LayerNorm
util/model_util.py:138
↓ 2 callers
Function
broadcat
(tensors, dim = -1)
util/model_util.py:15
↓ 2 callers
Function
center_crop_arr
Center cropping implementation from ADM. https://github.com/openai/guided-diffusion/blob/8fb3ad9197f16bbc40620447b2742e13458d2831/guided_diff
util/crop.py:5
↓ 2 callers
Function
evaluate
(model_without_ddp, args, epoch, batch_size=64, log_writer=None)
engine_jit.py:67
↓ 2 callers
Function
get_1d_sincos_pos_embed_from_grid
embed_dim: output dimension for each position pos: a list of positions to be encoded: size (M,) out: (M, D)
util/model_util.py:183
↓ 2 callers
Function
get_world_size
()
util/misc.py:184
↓ 2 callers
Function
rotate_half
(x)
util/model_util.py:32
↓ 2 callers
Function
setup_for_distributed
This function disables printing when not in master process
util/misc.py:159
↓ 2 callers
Method
update
(self, value, n=1)
util/misc.py:26
↓ 2 callers
Method
update
(self, **kwargs)
util/misc.py:80
↓ 1 callers
Method
_euler_step
(self, z, t, t_next, labels)
denoiser.py:108
↓ 1 callers
Method
add_meter
(self, name, meter)
util/misc.py:109
↓ 1 callers
Method
drop_labels
(self, labels)
denoiser.py:40
↓ 1 callers
Method
generate
(self, labels)
denoiser.py:68
↓ 1 callers
Function
get_2d_sincos_pos_embed
grid_size: int of the grid height and width return: pos_embed: [grid_size*grid_size, embed_dim] or [1+grid_size*grid_size, embed_dim] (w/
util/model_util.py:154
↓ 1 callers
Function
get_2d_sincos_pos_embed_from_grid
(embed_dim, grid)
util/model_util.py:172
↓ 1 callers
Function
get_args_parser
()
main_jit.py:23
↓ 1 callers
Function
get_rank
()
util/misc.py:190
↓ 1 callers
Method
initialize_weights
(self)
model_jit.py:279
↓ 1 callers
Function
is_main_process
()
util/misc.py:196
↓ 1 callers
Method
log_every
(self, iterable, print_freq, header=None)
util/misc.py:112
↓ 1 callers
Function
main
(args)
main_jit.py:115
↓ 1 callers
Function
main
()
prepare_ref.py:8
↓ 1 callers
Method
sample_t
(self, n: int, device=None)
denoiser.py:45
↓ 1 callers
Function
save_on_master
(*args, **kwargs)
util/misc.py:200
↓ 1 callers
Function
scaled_dot_product_attention
(query, key, value, dropout_p=0.0)
model_jit.py:94
↓ 1 callers
Method
timestep_embedding
Create sinusoidal timestep embeddings. :param t: a 1-D Tensor of N indices, one per batch element. These ma
model_jit.py:54
↓ 1 callers
Function
train_one_epoch
(model, model_without_ddp, data_loader, optimizer, device, epoch, log_writer=None, args=None)
engine_jit.py:16
↓ 1 callers
Method
unpatchify
x: (N, T, patch_size**2 * C) imgs: (N, H, W, C)
model_jit.py:317
↓ 1 callers
Method
update_ema
(self)
denoiser.py:125
Function
JiT_B_16
(**kwargs)
model_jit.py:362
Function
JiT_B_32
(**kwargs)
model_jit.py:366
Function
JiT_H_16
(**kwargs)
model_jit.py:378
Function
JiT_H_32
(**kwargs)
model_jit.py:382
Function
JiT_L_16
(**kwargs)
model_jit.py:370
Function
JiT_L_32
(**kwargs)
model_jit.py:374
Method
__getattr__
(self, attr)
util/misc.py:89
Method
__init__
(self, img_size=224, patch_size=16, in_chans=3, pca_dim=768, embed_dim=768, bias=True)
model_jit.py:20
Method
__init__
(self, hidden_size, frequency_embedding_size=256)
model_jit.py:44
Method
__init__
(self, num_classes, hidden_size)
model_jit.py:84
Method
__init__
(self, dim, num_heads=8, qkv_bias=True, qk_norm=True, attn_drop=0., proj_drop=0.)
model_jit.py:108
Method
__init__
( self, dim: int, hidden_dim: int, drop=0.0, bias=True )
model_jit.py:142
Method
__init__
(self, hidden_size, patch_size, out_channels)
model_jit.py:166
Method
__init__
(self, hidden_size, num_heads, mlp_ratio=4.0, attn_drop=0.0, proj_drop=0.0)
model_jit.py:184
Method
__init__
( self, args )
denoiser.py:7
Method
__init__
(self, window_size=20, fmt=None)
util/misc.py:18
Method
__init__
(self, delimiter="\t")
util/misc.py:76
Method
__init__
( self, dim, pt_seq_len, ft_seq_len=None, custom_freqs = None,
util/model_util.py:40
Method
__init__
( self, dim, pt_seq_len=16, ft_seq_len=None, custom_freqs = None,
util/model_util.py:87
Method
__str__
(self)
util/misc.py:66
Method
__str__
(self)
util/misc.py:97
Method
_basic_init
(module)
model_jit.py:281
Method
_heun_step
(self, z, t, t_next, labels)
denoiser.py:114
Function
add_weight_decay
(model, weight_decay=0, skip_list=())
util/misc.py:240
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:281
Method
avg
(self)
util/misc.py:50
Method
forward
(self, x)
model_jit.py:32
Method
forward
(self, t)
model_jit.py:74
Method
forward
(self, labels)
model_jit.py:89
Method
forward
(self, x, rope)
model_jit.py:121
Method
forward
(self, x)
model_jit.py:155
Method
forward
(self, x, c)
model_jit.py:176
Method
forward
(self, x, c, feat_rope=None)
model_jit.py:198
Method
forward
x: (N, C, H, W) t: (N,) y: (N,)
model_jit.py:331
Method
forward
(self, x, labels)
denoiser.py:49
Method
forward
(self, t, start_index = 0)
util/model_util.py:77
Method
forward
(self, t)
util/model_util.py:134
Method
forward
(self, hidden_states)
util/model_util.py:146
Method
global_avg
(self)
util/misc.py:55
Function
init_distributed_mode
(args)
util/misc.py:205
Method
max
(self)
util/misc.py:59
Method
median
(self)
util/misc.py:45
Function
save_model
(args, model_without_ddp, optimizer, epoch, epoch_name=None)
util/misc.py:255
Method
synchronize_between_processes
Warning: does not synchronize the deque!
util/misc.py:31
Method
synchronize_between_processes
(self)
util/misc.py:105
Method
value
(self)
util/misc.py:63