Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cientgu/VQ-Diffusion
/ functions
Functions
543 in github.com/cientgu/VQ-Diffusion
⨍
Functions
543
◇
Types & classes
107
Function
logits_top_k
(logits, filter_ratio = 0.5, minimum=1, pad_value=None)
image_synthesis/modeling/utils/misc.py:9
Function
main_worker
(local_rank, args)
train.py:128
Function
mask_with_top_k
mask the input tensor along the last dimension. The values the not in the topk will be masked as zeros
image_synthesis/modeling/utils/misc.py:27
Method
parameters
Following minGPT: This long function is unfortunately doing something very simple and is being very defensive: We are separat
image_synthesis/modeling/transformers/diffusion_transformer.py:367
Method
parameters
Following minGPT: This long function is unfortunately doing something very simple and is being very defensive: We are separat
image_synthesis/modeling/transformers/diffusion_transformer_amp.py:372
Method
parameters
Following minGPT: This long function is unfortunately doing something very simple and is being very defensive: We are sepa
image_synthesis/modeling/transformers/transformer_utils.py:510
Method
parameters
Following minGPT: This long function is unfortunately doing something very simple and is being very defensive: We are sepa
image_synthesis/modeling/transformers/transformer_utils.py:650
Method
parameters
(self, recurse=True, name=None)
image_synthesis/modeling/models/unconditional_dalle.py:33
Method
parameters
(self, recurse=True, name=None)
image_synthesis/modeling/models/conditional_dalle.py:35
Method
rank
(self)
image_synthesis/data/utils/comm.py:26
Method
reconstruct
( self, input )
image_synthesis/modeling/models/unconditional_dalle.py:149
Method
reconstruct
( self, input )
image_synthesis/modeling/models/conditional_dalle.py:178
Method
reconstruct
( self, input )
image_synthesis/modeling/models/dalle.py:208
Function
reduce_dict
Args: input_dict (dict): all the values will be reduced average (bool): whether to do average or sum Reduce the values in the
image_synthesis/data/utils/comm.py:115
Function
sample
take a conditioning sequence of indices in x (of shape (b,t)) and predict the next token in the sequence, feeding the predictions back into t
image_synthesis/taming/modules/transformer/mingpt.py:292
Method
sample
( self, condition_token, condition_mask, condition_embed,
image_synthesis/modeling/transformers/diffusion_transformer.py:467
Method
sample
( self, condition_token, condition_mask, condition_embed,
image_synthesis/modeling/transformers/diffusion_transformer_amp.py:472
Method
sample_fast
( self, condition_token, condition_mask, condition_embed,
image_synthesis/modeling/transformers/diffusion_transformer_amp.py:544
Function
sample_index_randomly
x: should be 2D tensor, randomly smaple along the lat dimension
image_synthesis/modeling/utils/misc.py:51
Function
save_dict_to_json
(d, path, indent=None)
image_synthesis/utils/io.py:18
Method
state_dict
(self)
image_synthesis/engine/clip_grad_norm.py:26
Method
state_dict
(self)
image_synthesis/engine/lr_scheduler.py:201
Method
state_dict
(self)
image_synthesis/engine/lr_scheduler.py:287
Method
stem
(x)
image_synthesis/modeling/modules/clip/model.py:135
Method
step
(self, metrics)
image_synthesis/engine/lr_scheduler.py:119
Method
step
(self)
image_synthesis/engine/lr_scheduler.py:238
Function
sub_func
(queue,kwargs)
image_synthesis/data/utils/manage.py:18
Function
synchronize
()
image_synthesis/distributed/distributed.py:39
Function
torch_distributed_zero_first
Decorator to make all processes in distributed training wait for each local_master to do something.
image_synthesis/data/utils/comm.py:221
Method
train
(self, mode=True)
image_synthesis/modeling/embeddings/base_embedding.py:13
Method
training_step
(self, batch, batch_idx, optimizer_idx)
image_synthesis/taming/models/vqgan.py:83
Method
training_step
(self, batch, batch_idx, optimizer_idx)
image_synthesis/taming/models/vqgan.py:211
Method
training_step
(self, batch, batch_idx)
image_synthesis/taming/models/cond_transformer.py:289
Method
validate
(self)
image_synthesis/engine/solver.py:537
Method
validation_step
(self, batch, batch_idx)
image_synthesis/taming/models/vqgan.py:104
Method
validation_step
(self, batch, batch_idx)
image_synthesis/taming/models/vqgan.py:232
Method
validation_step
(self, batch, batch_idx)
image_synthesis/taming/models/cond_transformer.py:294
Function
vanilla_d_loss
(logits_real, logits_fake)
image_synthesis/taming/modules/losses/vqperceptual.py:27
Function
weights_init
(m)
image_synthesis/taming/modules/discriminator/model.py:8
Method
world_size
(self)
image_synthesis/data/utils/comm.py:18
Method
wrapper
(*args, **kwards)
image_synthesis/modeling/models/unconditional_dalle.py:81
Method
wrapper
(*args, **kwards)
image_synthesis/modeling/models/conditional_dalle.py:95
Method
wrapper
(*args, **kwards)
image_synthesis/modeling/models/dalle.py:97
← previous
501–543 of 543, ranked by callers