MCPcopy Create free account

hub / github.com/Nithin-GK/T2V-DDPM / functions

Functions232 in github.com/Nithin-GK/T2V-DDPM

↓ 1 callersMethodq_mean_variance
Get the distribution q(x_t | x_0). :param x_start: the [N x C x ...] tensor of noiseless inputs. :param t: the number of diff
guided_diffusion/gaussian_diffusion.py:165
↓ 1 callersMethodrun_loop
(self, run)
guided_diffusion/train_util.py:119
↓ 1 callersMethodrun_step
(self, batch, cond)
guided_diffusion/train_util.py:138
↓ 1 callersMethodsample
Importance-sample timesteps for a batch. :param batch_size: the number of timesteps. :param device: the torch device to save
guided_diffusion/resample.py:42
↓ 1 callersMethodset_comm
(self, comm)
guided_diffusion/logger.py:385
↓ 1 callersMethodset_level
(self, level)
guided_diffusion/logger.py:382
↓ 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
guided_diffusion/respace.py:7
↓ 1 callersFunctionsr_create_model
( large_size, small_size, num_channels, num_res_blocks, learn_sigma, class_cond, u
guided_diffusion/script_util.py:116
↓ 1 callersFunctionstate_dict_to_master_params
(model, state_dict, use_fp16)
guided_diffusion/fp16_util.py:135
↓ 1 callersMethodtest
(self, run, phase='test',skip_timesteps=0,iter=0)
guided_diffusion/train_util.py:115
↓ 1 callersFunctiontimestep_embedding
Create sinusoidal timestep embeddings. :param timesteps: a 1-D Tensor of N indices, one per batch element. These may b
guided_diffusion/nn.py:103
↓ 1 callersMethodupdate_with_all_losses
Update the reweighting using losses from a model. Sub-classes should override this method to update the reweighting using lo
guided_diffusion/resample.py:107
↓ 1 callersMethodupdate_with_local_losses
Update the reweighting using losses from a model. Call this method from each rank with a batch of timesteps and the correspo
guided_diffusion/resample.py:71
↓ 1 callersMethodweights
Get a numpy array of weights, one per diffusion step. The weights needn't be normalized, but must be positive.
guided_diffusion/resample.py:35
↓ 1 callersMethodwritekvs
(self, kvs)
guided_diffusion/logger.py:27
↓ 1 callersMethodwriteseq
(self, seq)
guided_diffusion/logger.py:32
↓ 1 callersFunctionzero_grad
(model_params)
guided_diffusion/fp16_util.py:152
↓ 1 callersMethodzero_grad
(self)
guided_diffusion/fp16_util.py:192
Method__call__
(self, inputs, target)
guided_diffusion/image_datasets.py:84
Method__call__
(self, x, ts, **kwargs)
guided_diffusion/respace.py:118
Method__getitem__
(self, idx)
guided_diffusion/image_datasets.py:119
Method__getitem__
(self, index)
guided_diffusion/valdata.py:35
Method__init__
(self)
core/wandb_logger.py:7
Method__init__
( self, spacial_dim: int, embed_dim: int, num_heads_channels: int, out
guided_diffusion/unet.py:27
Method__init__
(self, channels, use_conv, dims=2, out_channels=None)
guided_diffusion/unet.py:123
Method__init__
( self, channels, emb_channels, dropout, out_channels=None, us
guided_diffusion/unet.py:160
Method__init__
( self, channels, num_heads=1, num_head_channels=-1, use_checkpoint=Fa
guided_diffusion/unet.py:267
Method__init__
(self, n_heads)
guided_diffusion/unet.py:333
Method__init__
(self, n_heads)
guided_diffusion/unet.py:366
Method__init__
( self, image_size, in_channels, model_channels, out_channels,
guided_diffusion/unet.py:426
Method__init__
(self, image_size, in_channels, *args, **kwargs)
guided_diffusion/unet.py:671
Method__init__
( self, *, model, use_fp16=False, fp16_scale_growth=1e-3, init
guided_diffusion/fp16_util.py:168
Method__init__
(self, diffusion)
guided_diffusion/resample.py:62
Method__init__
(self, diffusion, history_per_term=10, uniform_prob=0.001)
guided_diffusion/resample.py:125
Method__init__
(self, filename_or_file)
guided_diffusion/logger.py:37
Method__init__
(self, filename)
guided_diffusion/logger.py:99
Method__init__
(self, filename)
guided_diffusion/logger.py:114
Method__init__
(self, dir)
guided_diffusion/logger.py:155
Method__init__
(self, dir, output_formats, comm=None)
guided_diffusion/logger.py:337
Method__init__
( self, resolution, image_paths, data_dir, gt_paths, shard=0,
guided_diffusion/image_datasets.py:98
Method__init__
( self, *, betas, model_mean_type, model_var_type, loss_type,
guided_diffusion/gaussian_diffusion.py:112
Method__init__
(self, use_timesteps, **kwargs)
guided_diffusion/respace.py:72
Method__init__
(self, data_dir, crop_size=[256,256])
guided_diffusion/valdata.py:16
Method__init__
( self, *, model, diffusion, data, val_dat, batch_size
guided_diffusion/train_util.py:29
Method__len__
(self)
guided_diffusion/image_datasets.py:116
Method__len__
(self)
guided_diffusion/valdata.py:39
Method__missing__
(self, key)
core/logger.py:98
Function_find_free_port
()
guided_diffusion/dist_util.py:76
Method_forward
(self, x, emb)
guided_diffusion/unet.py:236
Method_forward
(self, x)
guided_diffusion/unet.py:299
Function_list_image_files_recursively
(data_dir)
guided_diffusion/image_datasets.py:65
Method_scale_timesteps
(self, t)
guided_diffusion/respace.py:106
Methodbackward
(self, loss: th.Tensor)
guided_diffusion/fp16_util.py:195
Methodcalc_bpd_loop
Compute the entire variational lower-bound, measured in bits-per-dim, as well as other related quantities. :param model: the
guided_diffusion/gaussian_diffusion.py:813
Functioncalculate_psnr
(img1, img2)
core/metrics.py:42
Functioncalculate_ssim
calculate SSIM the same outputs as MATLAB's img1, img2: [0, 255]
core/metrics.py:75
Methodclose
(self)
guided_diffusion/logger.py:93
Methodclose
(self)
guided_diffusion/logger.py:109
Methodclose
(self)
guided_diffusion/logger.py:146
Methodclose
(self)
guided_diffusion/logger.py:185
Functionconvert_module_to_f16
Convert primitive modules to float16.
guided_diffusion/fp16_util.py:15
Functionconvert_module_to_f32
Convert primitive modules to float32, undoing convert_module_to_f16().
guided_diffusion/fp16_util.py:25
Methodconvert_to_fp32
Convert the torso of the model to float32.
guided_diffusion/unet.py:626
Methodcount_flops
(model, _x, y)
guided_diffusion/unet.py:357
Methodcount_flops
(model, _x, y)
guided_diffusion/unet.py:392
Methodddim_reverse_sample
Sample x_{t+1} from the model using DDIM reverse ODE.
guided_diffusion/gaussian_diffusion.py:570
Methodddim_sample_loop
Generate samples from the model using DDIM. Same usage as p_sample_loop().
guided_diffusion/gaussian_diffusion.py:608
Functiondebug
(*args)
guided_diffusion/logger.py:254
Functiondecorator_with_name
(func)
guided_diffusion/logger.py:310
Functiondev
Get the device to use for torch.distributed.
guided_diffusion/dist_util.py:50
Functiondict2str
dict to string for logger
core/logger.py:115
Functiondict_to_nonedict
(opt)
core/logger.py:103
Functiondumpkvs
Write all of the diagnostics from the current iteration
guided_diffusion/logger.py:236
Functionerror
(*args)
guided_diffusion/logger.py:266
Methodforward
(self, x)
guided_diffusion/nn.py:18
Methodforward
(ctx, run_function, length, *args)
guided_diffusion/nn.py:144
Methodforward
(self, x)
guided_diffusion/unet.py:43
Methodforward
Apply the module to `x` given `emb` timestep embeddings.
guided_diffusion/unet.py:60
Methodforward
(self, x, emb)
guided_diffusion/unet.py:72
Methodforward
(self, x)
guided_diffusion/unet.py:138
Methodforward
Apply the block to a Tensor, conditioned on a timestep embedding. :param x: an [N x C x ...] Tensor of features. :param emb:
guided_diffusion/unet.py:224
Methodforward
(self, x)
guided_diffusion/unet.py:296
Methodforward
Apply QKV attention. :param qkv: an [N x (H * 3 * C) x T] tensor of Qs, Ks, and Vs. :return: an [N x (H * C) x T] tensor aft
guided_diffusion/unet.py:337
Methodforward
Apply QKV attention. :param qkv: an [N x (3 * H * C) x T] tensor of Qs, Ks, and Vs. :return: an [N x (H * C) x T] tensor aft
guided_diffusion/unet.py:370
Methodforward
Apply the model to an input batch. :param x: an [N x C x ...] Tensor of inputs. :param timesteps: a 1-D batch of timesteps.
guided_diffusion/unet.py:635
Methodforward
(self, x, timesteps, thermal=None, **kwargs)
guided_diffusion/unet.py:674
Functionfunc_wrapper
(*args, **kwargs)
guided_diffusion/logger.py:311
Functionget_blob_logdir
()
guided_diffusion/train_util.py:226
Functionget_dir
Get directory that log files are being written to. will be None if there is no output directory (i.e., if you didn't call start)
guided_diffusion/logger.py:281
Functionget_named_beta_schedule
Get a pre-defined beta schedule for the given name. The beta schedule library consists of beta schedules which remain similar in the limi
guided_diffusion/gaussian_diffusion.py:17
Functiongetkvs
()
guided_diffusion/logger.py:243
Functioninfo
(*args)
guided_diffusion/logger.py:258
Methodis_vb
(self)
guided_diffusion/gaussian_diffusion.py:93
Functionload_state_dict
Load a PyTorch file without redundant fetches across MPI ranks.
guided_diffusion/dist_util.py:59
Methodlog_checkpoint
Log the model checkpoint as W&B artifacts current_epoch: the current epoch current_step: the current batch step
core/wandb_logger.py:70
Methodlog_eval_data
Add data row-wise to the initialized table.
core/wandb_logger.py:90
Methodlog_eval_table
Log the table
core/wandb_logger.py:109
Methodlog_image
Log image array onto W&B. key_name: name of the key image_array: numpy array of image.
core/wandb_logger.py:52
Methodlog_images
Log list of image array onto W&B key_name: name of the key list_images: list of numpy image arrays
core/wandb_logger.py:61
Methodlog_metrics
Log train/validation metrics onto W&B. metrics: dictionary of metrics to be logged
core/wandb_logger.py:44
← previousnext →101–200 of 232, ranked by callers