Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/CompVis/diff2flow
/ functions
Functions
426 in github.com/CompVis/diff2flow
⨍
Functions
426
◇
Types & classes
79
Method
restore_ema_model_device
(self)
diff2flow/ema.py:137
Method
sample
( self, model, noise, ddim_steps, eta=0., model_kwargs=None,
diff2flow/ddim.py:98
Method
sample
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
Method
scale_latents
raw latents -> [0, 1]
diff2flow/tiny_autoencoder.py:93
Method
set_batch
(self, batch)
diff2flow/lora.py:29
Method
setup
(self, stage=None)
diff2flow/dataloader.py:258
Function
signal_handler
(sig, frame)
train.py:197
Function
stop_training_method
()
train.py:183
Method
test_dataloader
(self)
diff2flow/dataloader.py:206
Method
to_float32
(self, sample)
diff2flow/dataloader.py:192
Method
train_dataloader
(self)
diff2flow/dataloader.py:200
Method
training_losses
(self, x1: torch.Tensor, x0: torch.Tensor = None, **cond_kwargs)
diff2flow/diffusion.py:107
Method
training_losses
Args: x1: shape (bs, *dim), represents the target minibatch (data) x0: shape (bs, *dim), represents the source miniba
diff2flow/flow_obj.py:192
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 ...]
diff2flow/openai_diffusion/gaussian_diffusion.py:715
Method
training_losses
( self, model, *args, **kwargs )
diff2flow/openai_diffusion/respace.py:94
Method
training_step
extract data
diff2flow/trainer_module.py:496
Function
uniq
(arr)
diff2flow/models/unet/attention.py:25
Function
unnormalize_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
Method
unscale_latents
[0, 1] -> raw latents
diff2flow/tiny_autoencoder.py:98
Method
update_with_all_losses
(self, ts, losses)
diff2flow/openai_diffusion/timestep_sampler.py:139
Method
update_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
Method
val_dataloader
(self)
diff2flow/dataloader.py:203
Method
validation_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
Method
validation_step
(self, batch, batch_idx)
diff2flow/trainer_module.py:551
Method
weights
(self)
diff2flow/openai_diffusion/timestep_sampler.py:67
Method
weights
(self)
diff2flow/openai_diffusion/timestep_sampler.py:130
← previous
401–426 of 426, ranked by callers