MCPcopy Create free account

hub / github.com/JuliaWolleb/diffusion-anomaly / functions

Functions246 in github.com/JuliaWolleb/diffusion-anomaly

↓ 1 callersMethodlog_step
(self)
guided_diffusion/train_util.py:259
↓ 1 callersFunctionlogkv
Log a value of some diagnostic Call this once for each diagnostic quantity, each iteration If called many times, last value will be used.
guided_diffusion/logger.py:212
↓ 1 callersFunctionmain
()
scripts/image_sample.py:26
↓ 1 callersFunctionmain
()
scripts/image_nll.py:21
↓ 1 callersFunctionmain
()
scripts/image_train.py:23
↓ 1 callersFunctionmain
()
scripts/classifier_train.py:42
↓ 1 callersFunctionmain
()
scripts/classifier_sample_known.py:35
↓ 1 callersFunctionmake_output_format
(format, ev_dir, log_suffix="")
guided_diffusion/logger.py:191
↓ 1 callersFunctionmaster_params_to_model_params
Copy the master parameter data back into the model parameters.
guided_diffusion/fp16_util.py:65
↓ 1 callersFunctionmaster_params_to_state_dict
( model, param_groups_and_shapes, master_params, use_fp16 )
guided_diffusion/fp16_util.py:95
↓ 1 callersFunctionmodel_grads_to_master_grads
Copy the gradients from the model parameters into the master parameters from make_master_params().
guided_diffusion/fp16_util.py:52
↓ 1 callersFunctionmpi_weighted_mean
Copied from: https://github.com/openai/baselines/blob/ea25b9e8b234e6ee1bca43083f8f3cf974143998/baselines/common/mpi_util.py#L110 Perform a we
guided_diffusion/logger.py:412
↓ 1 callersMethodp_sample
Sample x_{t-1} from the model at the given timestep. :param model: the model to sample from. :param x: the current tensor at
guided_diffusion/gaussian_diffusion.py:490
↓ 1 callersMethodp_sample_loop_known
( self, model, shape, img, org=None, noise=None, clip_
guided_diffusion/gaussian_diffusion.py:537
↓ 1 callersFunctionparam_grad_or_zeros
(param)
guided_diffusion/fp16_util.py:141
↓ 1 callersFunctionprofile_kv
(scopename)
guided_diffusion/logger.py:294
↓ 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 dif
guided_diffusion/gaussian_diffusion.py:193
↓ 1 callersFunctionrun_bpd_evaluation
(model, diffusion, data, num_samples, clip_denoised)
scripts/image_nll.py:50
↓ 1 callersMethodrun_loop
(self)
guided_diffusion/train_util.py:161
↓ 1 callersMethodrun_step
(self, batch, cond)
guided_diffusion/train_util.py:192
↓ 1 callersFunctionset_annealed_lr
(opt, base_lr, frac_done)
scripts/classifier_train.py:218
↓ 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 callersFunctionsplit_microbatches
(microbatch, *args)
scripts/classifier_train.py:240
↓ 1 callersFunctionsr_create_model
( large_size, small_size, num_channels, num_res_blocks, learn_sigma, class_cond, u
guided_diffusion/script_util.py:356
↓ 1 callersFunctionstandardizetensor
(img)
guided_diffusion/gaussian_diffusion.py:31
↓ 1 callersFunctionstate_dict_to_master_params
(model, state_dict, use_fp16)
guided_diffusion/fp16_util.py:116
↓ 1 callersMethodstate_dict_to_master_params
(self, state_dict)
guided_diffusion/fp16_util.py:232
↓ 1 callersFunctionupdate_ema
Update target parameters to be closer to those of source parameters using an exponential moving average. :param target_params: the t
guided_diffusion/nn.py:55
↓ 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:133
Method__call__
(self, x, ts, **kwargs)
guided_diffusion/respace.py:131
Method__getitem__
(self, x)
guided_diffusion/bratsloader.py:44
Method__getitem__
(self, idx)
guided_diffusion/image_datasets.py:120
Method__init__
( self, spacial_dim: int, embed_dim: int, num_heads_channels: int, out
guided_diffusion/unet.py:26
Method__init__
(self, channels, use_conv, dims=2, out_channels=None)
guided_diffusion/unet.py:122
Method__init__
( self, channels, emb_channels, dropout, out_channels=None, us
guided_diffusion/unet.py:159
Method__init__
( self, channels, num_heads=1, num_head_channels=-1, use_checkpoint=Fa
guided_diffusion/unet.py:266
Method__init__
(self, n_heads)
guided_diffusion/unet.py:332
Method__init__
(self, n_heads)
guided_diffusion/unet.py:365
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:676
Method__init__
( self, image_size, in_channels, model_channels, out_channels,
guided_diffusion/unet.py:693
Method__init__
( self, *, model, use_fp16=False, fp16_scale_growth=1e-3, init
guided_diffusion/fp16_util.py:149
Method__init__
(self, diffusion, maxt)
guided_diffusion/resample.py:62
Method__init__
(self, diffusion, history_per_term=10, uniform_prob=0.001)
guided_diffusion/resample.py:125
Method__init__
directory is expected to contain some folder structure: if some subfolder contains only files, all of these
guided_diffusion/bratsloader.py:10
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, classes=None, shard=0, num_sh
guided_diffusion/image_datasets.py:96
Method__init__
( self, *, betas, model_mean_type, model_var_type, loss_type,
guided_diffusion/gaussian_diffusion.py:138
Method__init__
(self, use_timesteps, **kwargs)
guided_diffusion/respace.py:76
Method__init__
( self, *, model, diffusion, data, batch_size, microba
guided_diffusion/train_util.py:27
Method__len__
(self)
guided_diffusion/bratsloader.py:80
Method__len__
(self)
guided_diffusion/image_datasets.py:116
Function_find_free_port
()
guided_diffusion/dist_util.py:92
Method_forward
(self, x, emb)
guided_diffusion/unet.py:235
Method_forward
(self, x)
guided_diffusion/unet.py:298
Method_scale_timesteps
(self, t)
guided_diffusion/respace.py:118
Methodbackward
(self, loss: th.Tensor)
guided_diffusion/fp16_util.py:176
Functioncenter_crop_arr
(pil_image, image_size)
guided_diffusion/image_datasets.py:137
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
Methodcondition_mean
(self, cond_fn, *args, **kwargs)
guided_diffusion/respace.py:104
Methodcondition_score
(self, cond_fn, *args, **kwargs)
guided_diffusion/respace.py:107
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_fp16
Convert the torso of the model to float16.
guided_diffusion/unet.py:870
Methodconvert_to_fp32
Convert the torso of the model to float32.
guided_diffusion/unet.py:629
Methodconvert_to_fp32
Convert the torso of the model to float32.
guided_diffusion/unet.py:877
Methodcount_flops
(model, _x, y)
guided_diffusion/unet.py:356
Methodcount_flops
(model, _x, y)
guided_diffusion/unet.py:391
Methodddim_sample_loop
Generate samples from the model using DDIM. Same usage as p_sample_loop().
guided_diffusion/gaussian_diffusion.py:830
Methodddim_sample_loop_interpolation
( self, model, shape, img1, img2, lambdaint, noise=Non
guided_diffusion/gaussian_diffusion.py:788
Methodddim_sample_loop_known
( self, model, shape, img, org=None, n
guided_diffusion/gaussian_diffusion.py:874
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:57
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:42
Methodforward
Apply the module to `x` given `emb` timestep embeddings.
guided_diffusion/unet.py:59
Methodforward
(self, x, emb)
guided_diffusion/unet.py:71
Methodforward
(self, x)
guided_diffusion/unet.py:137
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:223
Methodforward
(self, x)
guided_diffusion/unet.py:295
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:336
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:369
← previousnext →101–200 of 246, ranked by callers