MCPcopy Create free account

hub / github.com/CompVis/diff2flow / functions

Functions426 in github.com/CompVis/diff2flow

Methodrestore_ema_model_device
(self)
diff2flow/ema.py:137
Methodsample
( self, model, noise, ddim_steps, eta=0., model_kwargs=None,
diff2flow/ddim.py:98
Methodsample
Importance-sample timesteps for a batch. :param batch_size: the number of timesteps. :param device: the torch device to save
diff2flow/openai_diffusion/timestep_sampler.py:44
Methodscale_latents
raw latents -> [0, 1]
diff2flow/tiny_autoencoder.py:93
Methodset_batch
(self, batch)
diff2flow/lora.py:29
Methodsetup
(self, stage=None)
diff2flow/dataloader.py:258
Functionsignal_handler
(sig, frame)
train.py:197
Functionstop_training_method
()
train.py:183
Methodtest_dataloader
(self)
diff2flow/dataloader.py:206
Methodto_float32
(self, sample)
diff2flow/dataloader.py:192
Methodtrain_dataloader
(self)
diff2flow/dataloader.py:200
Methodtraining_losses
(self, x1: torch.Tensor, x0: torch.Tensor = None, **cond_kwargs)
diff2flow/diffusion.py:107
Methodtraining_losses
Args: x1: shape (bs, *dim), represents the target minibatch (data) x0: shape (bs, *dim), represents the source miniba
diff2flow/flow_obj.py:192
Methodtraining_losses
Compute training losses for a single timestep. :param model: the model to evaluate loss on. :param x_start: the [N x C x ...]
diff2flow/openai_diffusion/gaussian_diffusion.py:715
Methodtraining_losses
( self, model, *args, **kwargs )
diff2flow/openai_diffusion/respace.py:94
Methodtraining_step
extract data
diff2flow/trainer_module.py:496
Functionuniq
(arr)
diff2flow/models/unet/attention.py:25
Functionunnormalize_depth
Unnormalize depth map from [-1, 1] to actual depth values. Args: depth: Torch tensor depth map in range [-1, 1]. q_min: Min q
diff2flow/dataset/depth_preprocessing.py:190
Methodunscale_latents
[0, 1] -> raw latents
diff2flow/tiny_autoencoder.py:98
Methodupdate_with_all_losses
(self, ts, losses)
diff2flow/openai_diffusion/timestep_sampler.py:139
Methodupdate_with_local_losses
Update the reweighting using losses from a model. Call this method from each rank with a batch of timesteps and the correspon
diff2flow/openai_diffusion/timestep_sampler.py:72
Methodval_dataloader
(self)
diff2flow/dataloader.py:203
Methodvalidation_losses
SD3 & Meta Movie Gen show that val loss correlates well with human quality. They compute the loss in equidistant segments in (0, 1) t
diff2flow/flow.py:613
Methodvalidation_step
(self, batch, batch_idx)
diff2flow/trainer_module.py:551
Methodweights
(self)
diff2flow/openai_diffusion/timestep_sampler.py:67
Methodweights
(self)
diff2flow/openai_diffusion/timestep_sampler.py:130
← previous401–426 of 426, ranked by callers