MCPcopy Create free account

hub / github.com/CompVis/diff2flow / functions

Functions426 in github.com/CompVis/diff2flow

↓ 1 callersFunctionshifted_cosine_log_snr
(t, im_size: int, ref_size: int = 64)
diff2flow/diffusion.py:24
↓ 1 callersMethodsigma_dt_t
(self, t)
diff2flow/flow.py:70
↓ 1 callersMethodsigma_dt_t
(self, t)
diff2flow/flow.py:174
↓ 1 callersMethodsigma_t
(self, t)
diff2flow/flow.py:67
↓ 1 callersMethodsigma_t
(self, t)
diff2flow/flow.py:171
↓ 1 callersFunctionspace_timesteps
Create a list of timesteps to use from an original diffusion process, given the number of timesteps we want to take from equally-sized portio
diff2flow/openai_diffusion/respace.py:12
↓ 1 callersMethodtext_transformer_forward
(self, x: torch.Tensor, attn_mask=None)
diff2flow/conditioning/encoders.py:200
↓ 1 callersFunctiontimer
(start, end)
diff2flow/helpers.py:118
↓ 1 callersMethodtraining_losses
Args: x1: shape (bs, *dim), represents the target minibatch (data) x0: shape (bs, *dim), represents the source miniba
diff2flow/flow.py:591
↓ 1 callersMethodtraining_losses
x_start = x_0
diff2flow/ddpm.py:218
↓ 1 callersMethodupdate_moving_average
(self, ma_model, current_model)
diff2flow/ema.py:198
↓ 1 callersMethodupdate_with_all_losses
Update the reweighting using losses from a model. Sub-classes should override this method to update the reweighting using los
diff2flow/openai_diffusion/timestep_sampler.py:106
↓ 1 callersMethodweights
Get a numpy array of weights, one per diffusion step. The weights needn't be normalized, but must be positive.
diff2flow/openai_diffusion/timestep_sampler.py:38
Method__Euler_Maruyama_step
(self, x, mean_x, t, model, **model_kwargs)
diff2flow/flow.py:200
Method__Heun_step
(self, x, mean_x, t, model, **model_kwargs)
diff2flow/flow.py:210
Method__call__
(self, x, mean_x, t, model, **model_kwargs)
diff2flow/flow.py:221
Method__call__
(self, n, device='cpu', dtype=torch.float32)
diff2flow/flow.py:387
Method__call__
(self, *args, **kwargs)
diff2flow/ema.py:228
Method__call__
(self, *images)
diff2flow/visualizer.py:52
Method__call__
(self, x0=None, x1=None, x1_pred=None)
diff2flow/visualizer.py:69
Method__call__
(self, img, depth, depth_pred)
diff2flow/visualizer.py:95
Method__call__
Assumes target and pred in [-1, 1] range
diff2flow/metrics.py:36
Method__call__
Assumes target and pred in [-1, 1] range
diff2flow/metrics.py:70
Method__call__
(self, n_iter)
diff2flow/lr_schedulers.py:98
Method__call__
(self, sample)
diff2flow/dataset/depth_preprocessing.py:177
Method__call__
(self, sample)
diff2flow/dataset/image_preprocessing.py:24
Method__call__
(self, sample)
diff2flow/dataset/image_preprocessing.py:38
Method__call__
(self, x, ts, **kwargs)
diff2flow/openai_diffusion/respace.py:124
Method__enter__
(self)
diff2flow/helpers.py:125
Method__exit__
(self, exc_type, exc_val, exc_tb)
diff2flow/helpers.py:129
Method__getitem__
(self, idx)
diff2flow/dataloader.py:277
Method__init__
Sampler class for the FlowModel
diff2flow/flow.py:226
Method__init__
Logit-Normal sampler from the paper 'Scaling Rectified Flow Transformers for High-Resolution Image Synthesis' - Esser et al.
diff2flow/flow.py:378
Method__init__
Flow Matching, Stochastic Interpolants, or Rectified Flow model. :) Args: net: Neural network that takes in x an
diff2flow/flow.py:395
Method__init__
(self, ddpm: GaussianDiffusion, schedule="linear")
diff2flow/ddim.py:53
Method__init__
( self, model: Module, ema_model: Optional[Module] = None, # if your model h
diff2flow/ema.py:54
Method__init__
(self, tar_base, # can be a list of paths or a single path batch_si
diff2flow/dataloader.py:55
Method__init__
(self, batch_size: int, val_batch_size: int = None, train:
diff2flow/dataloader.py:214
Method__init__
(self, timesteps=1000, beta_schedule="linear", zero_termina
diff2flow/ddpm.py:92
Method__init__
Initialize pretrained TAESD on the given device from the given checkpoints.
diff2flow/tiny_autoencoder.py:53
Method__init__
(self, im_size: int = 64, n_diffusion_timesteps: int = 1000)
diff2flow/diffusion.py:37
Method__init__
( self, enforce_zero_snr: bool = True, diffusion_parameterization: str = 'v',
diff2flow/flow_obj.py:20
Method__init__
(self, show_x1=False)
diff2flow/visualizer.py:66
Method__init__
(self)
diff2flow/metrics.py:63
Method__init__
Customized iteration-wise exponential scheduler. Re-calculate for every step, to reduce error accumulation Args:
diff2flow/lr_schedulers.py:84
Method__init__
Args: fm_cfg: Flow matching model config. noising_step: Forward diffusion noising step with linear schedule
diff2flow/trainer_module.py:29
Method__init__
(self, parameters, deterministic=False)
diff2flow/kl_autoencoder.py:46
Method__init__
(self, in_channels, with_conv)
diff2flow/kl_autoencoder.py:90
Method__init__
(self, in_channels, with_conv)
diff2flow/kl_autoencoder.py:104
Method__init__
(self, *, in_channels, out_channels=None, conv_shortcut=False, dropout, temb_channels=512)
diff2flow/kl_autoencoder.py:122
Method__init__
(self, in_channels, natten_kernel_size=-1, use_null_attention=False)
diff2flow/kl_autoencoder.py:184
Method__init__
(self, *, ch, out_ch, ch_mult=(1,2,4,8), num_res_blocks, attn_resolutions, dropout=0.0, resam
diff2flow/kl_autoencoder.py:341
Method__init__
( self, ckpt_path: str = None, ddconfig=DEFAULT_DDCONFIG, embe
diff2flow/kl_autoencoder.py:464
Method__init__
(self)
diff2flow/lora.py:26
Method__init__
( self, out_features, in_features, rank = None, lora_scale = 1.0,
diff2flow/lora.py:54
Method__init__
( self, in_channels: int, out_channels: int, kernel_size: Union[int, Tuple[int
diff2flow/lora.py:122
Method__init__
( self, size=None, depth_key="depth", out_channels=3,
diff2flow/dataset/depth_preprocessing.py:116
Method__init__
(self, size)
diff2flow/dataset/image_preprocessing.py:7
Method__init__
(self, divisor, exclude_keys=None)
diff2flow/dataset/image_preprocessing.py:20
Method__init__
( self, nulltext_path="nulltext.npy", )
diff2flow/conditioning/encoders.py:66
Method__init__
(self, arch="ViT-H-14", version="laion2b_s32b_b79k", device="cuda", max_length=77, freeze=Tru
diff2flow/conditioning/encoders.py:97
Method__init__
( self, arch="ViT-H-14", version="laion2b_s32b_b79k", max_leng
diff2flow/conditioning/encoders.py:153
Method__init__
(self, version="openai/clip-vit-large-patch14", device="cuda", max_length=77)
diff2flow/conditioning/encoders.py:226
Method__init__
(self, diffusion)
diff2flow/openai_diffusion/timestep_sampler.py:63
Method__init__
(self, diffusion, history_per_term=10, uniform_prob=0.001)
diff2flow/openai_diffusion/timestep_sampler.py:121
Method__init__
( self, *, betas, model_mean_type, model_var_type, loss_type
diff2flow/openai_diffusion/gaussian_diffusion.py:153
Method__init__
(self, use_timesteps, **kwargs)
diff2flow/openai_diffusion/respace.py:73
Method__init__
( self, spacial_dim: int, embed_dim: int, num_heads_channels: int, out
diff2flow/models/unet/openaimodel.py:40
Method__init__
(self, channels, out_channels=None, ks=5)
diff2flow/models/unet/openaimodel.py:126
Method__init__
(self, channels, use_conv, dims=2, out_channels=None,padding=1)
diff2flow/models/unet/openaimodel.py:146
Method__init__
( self, channels, emb_channels, dropout, out_channels=None, us
diff2flow/models/unet/openaimodel.py:182
Method__init__
( self, channels, num_heads=1, num_head_channels=-1, use_checkpoint=Fa
diff2flow/models/unet/openaimodel.py:288
Method__init__
(self, n_heads)
diff2flow/models/unet/openaimodel.py:355
Method__init__
(self, n_heads)
diff2flow/models/unet/openaimodel.py:387
Method__init__
(self, dim)
diff2flow/models/unet/openaimodel.py:417
Method__init__
( self, # ------------------- DEFAULTS FROM Stable Diffusion 2-1 image_size=32,
diff2flow/models/unet/openaimodel.py:454
Method__init__
(self, dim, dim_out=None, mult=4, glu=False, dropout=0.)
diff2flow/models/unet/attention.py:58
Method__init__
(self, in_channels)
diff2flow/models/unet/attention.py:91
Method__init__
(self, query_dim, context_dim=None, heads=8, dim_head=64, dropout=0.)
diff2flow/models/unet/attention.py:144
Method__init__
(self, query_dim, context_dim=None, heads=8, dim_head=64, dropout=0.0)
diff2flow/models/unet/attention.py:197
Method__init__
(self, dim, n_heads, d_head, dropout=0., context_dim=None, gated_ff=True, checkpoint=True, di
diff2flow/models/unet/attention.py:249
Method__init__
(self, in_channels, n_heads, d_head, depth=1, dropout=0., context_dim=None,
diff2flow/models/unet/attention.py:285
Method__len__
(self)
diff2flow/dataloader.py:274
Method_forward
(self, x, emb)
diff2flow/models/unet/openaimodel.py:258
Method_forward
(self, x)
diff2flow/models/unet/openaimodel.py:321
Method_forward
(self, x, context=None)
diff2flow/models/unet/attention.py:269
Function_get_constant_schedule_with_warmup_lr_lambda
(current_step: int, *, num_warmup_steps: int)
diff2flow/lr_schedulers.py:12
Function_get_cosine_schedule_with_warmup_lr_lambda
( current_step: int, *, num_warmup_steps: int, num_training_steps: int, num_cycles: float )
diff2flow/lr_schedulers.py:40
Method_scale_timesteps
(self, t)
diff2flow/openai_diffusion/respace.py:112
Method_test_dataloader
(self)
diff2flow/dataloader.py:250
Method_train_dataloader
(self)
diff2flow/dataloader.py:242
Method_val_dataloader
(self)
diff2flow/dataloader.py:246
Methodaggregate
(self)
diff2flow/metrics.py:97
Methodbackward
(ctx, *output_grads)
diff2flow/models/unet/attention.py:372
Functionbool2str
(b)
diff2flow/helpers.py:144
Methodcalc_bpd_loop
Compute the entire variational lower-bound, measured in bits-per-dim, as well as other related quantities. Returns:
diff2flow/ddpm.py:444
Methodcalc_bpd_loop
Compute the entire variational lower-bound, measured in bits-per-dim, as well as other related quantities. :param model: the
diff2flow/openai_diffusion/gaussian_diffusion.py:805
Functioncolorize_depth_map
Colorize a depth map using a matplotlib colormap. Args: depth: Depth tensor of shape (b, 1, h, w) or (b, h, w) with
diff2flow/dataset/depth_utils.py:133
Methodcompute_d_alpha_alpha_ratio_t
Special purposed function for computing numerical stabled d_alpha_t / alpha_t
diff2flow/flow.py:177
Methodcondition_mean
(self, cond_fn, *args, **kwargs)
diff2flow/openai_diffusion/respace.py:99
← previousnext →201–300 of 426, ranked by callers