MCPcopy Create free account

hub / github.com/ImprintLab/MedSegDiff / functions

Functions339 in github.com/ImprintLab/MedSegDiff

Method__init__
(self, input_channels, output_channels, conv_op=nn.Conv2d, conv_kwargs=None,
guided_diffusion/unet.py:2096
Method__init__
stacks ConvDropoutNormLReLU layers. initial_stride will only be applied to first layer in the stack. The other parameters affect all layers
guided_diffusion/unet.py:2145
Method__init__
(self, size=None, scale_factor=None, mode='nearest', align_corners=False)
guided_diffusion/unet.py:2220
Method__init__
basically more flexible than v1, architecture is the same Does this look complicated? Nah bro. Functionality > usability Th
guided_diffusion/unet.py:2249
Method__init__
( self, *, model, use_fp16=False, fp16_scale_growth=1e-3, init
guided_diffusion/fp16_util.py:149
Method__init__
Create a wrapper class for the forward SDE (VP type). *** Update: We support discrete-time diffusion models by implementing a picewise
guided_diffusion/dpm_solver.py:7
Method__init__
Construct a DPM-Solver. We support both DPM-Solver (`algorithm_type="dpmsolver"`) and DPM-Solver++ (`algorithm_type="dpmsolver++"`).
guided_diffusion/dpm_solver.py:307
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__
(self, args, data_path , transform = None, mode = 'Training',plane = False)
guided_diffusion/isicloader.py:17
Method__init__
directory is expected to contain some folder structure: if some subfolder contains only files, all of these
guided_diffusion/bratsloader.py:78
Method__init__
(self, neg_slope=1e-2)
guided_diffusion/utils.py:13
Method__init__
(self, data_path, transform)
guided_diffusion/custom_dataset_loader.py:68
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, *, betas, model_mean_type, model_var_type, loss_type,
guided_diffusion/gaussian_diffusion.py:132
Method__init__
(self, use_timesteps, **kwargs)
guided_diffusion/respace.py:72
Method__init__
(self, model, timestep_map, rescale_timesteps, original_num_steps)
guided_diffusion/respace.py:140
Method__init__
( self, *, model, classifier, diffusion, data, dataloa
guided_diffusion/train_util.py:34
Method__len__
(self)
guided_diffusion/isicloader.py:28
Method__len__
(self)
guided_diffusion/bratsloader.py:74
Method__len__
(self)
guided_diffusion/bratsloader.py:113
Method__len__
(self)
guided_diffusion/custom_dataset_loader.py:35
Method__len__
(self)
guided_diffusion/custom_dataset_loader.py:96
Function_find_free_port
()
guided_diffusion/dist_util.py:81
Method_forward
(self, x, emb)
guided_diffusion/unet.py:301
Method_forward
(self, x)
guided_diffusion/unet.py:364
Method_scale_timesteps
(self, t)
guided_diffusion/respace.py:116
Methodadd_noise
Compute the noised input xt = alpha_t * x + sigma_t * noise. Args: x: A `torch.Tensor` with shape `(batch_size, *shape)`
guided_diffusion/dpm_solver.py:970
Functionallone
(disc,cup)
guided_diffusion/utils.py:59
Methodbackward
(self, loss: th.Tensor)
guided_diffusion/fp16_util.py:176
Methodbackward
(self, grad_output)
scripts/segmentation_env.py:61
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:1069
Functionclassifier_and_diffusion_defaults
()
guided_diffusion/script_util.py:71
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
Methodcompute_approx_vram_consumption
This only applies for num_conv_per_stage and convolutional_upsampling=True not real vram consumption. just a constant term to which t
guided_diffusion/unet.py:2516
Methodcondition_mean
Compute the mean for the previous step, given a function cond_fn that computes the gradient of a conditional log probability with res
guided_diffusion/gaussian_diffusion.py:374
Methodcondition_mean
(self, cond_fn, *args, **kwargs)
guided_diffusion/respace.py:97
Methodcondition_score
(self, cond_fn, *args, **kwargs)
guided_diffusion/respace.py:100
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:722
Methodconvert_to_fp16
Convert the torso of the model to float16.
guided_diffusion/unet.py:1031
Methodconvert_to_fp32
Convert the torso of the model to float32.
guided_diffusion/unet.py:730
Methodconvert_to_fp32
Convert the torso of the model to float32.
guided_diffusion/unet.py:1039
Methodconvert_to_fp32
Convert the torso of the model to float32.
guided_diffusion/unet.py:1310
Methodcount_flops
(model, _x, y)
guided_diffusion/unet.py:422
Methodcount_flops
(model, _x, y)
guided_diffusion/unet.py:457
Functioncreate_classifier_and_diffusion
( image_size, classifier_use_fp16, classifier_width, classifier_depth, classifier_attentio
guided_diffusion/script_util.py:216
Methodddim_reverse_sample
Sample x_{t+1} from the model using DDIM reverse ODE.
guided_diffusion/gaussian_diffusion.py:712
Methodddim_sample_loop
Generate samples from the model using DDIM. Same usage as p_sample_loop().
guided_diffusion/gaussian_diffusion.py:796
Methodddim_sample_loop_interpolation
( self, model, shape, img1, img2, lambdaint, noise=Non
guided_diffusion/gaussian_diffusion.py:752
Methodddim_sample_loop_known
( self, model, shape, img, clip_denoised=True,
guided_diffusion/gaussian_diffusion.py:840
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:49
Functiondumpkvs
Write all of the diagnostics from the current iteration
guided_diffusion/logger.py:236
Methoddynamic_thresholding_fn
The dynamic thresholding method.
guided_diffusion/dpm_solver.py:382
Methodenhance
(self, c, h)
guided_diffusion/unet.py:749
Methodenhance
(self, c, h)
guided_diffusion/unet.py:1058
Functionerror
(*args)
guided_diffusion/logger.py:266
Functionexport
(tar, img_path=None)
guided_diffusion/utils.py:82
Methodforward
(self, x)
guided_diffusion/nn.py:18
Methodforward
(ctx, run_function, length, *args)
guided_diffusion/nn.py:147
Methodforward
(self, x)
guided_diffusion/unet.py:52
Methodforward
Apply the module to `x` given `emb` timestep embeddings.
guided_diffusion/unet.py:69
Methodforward
(self, x, emb)
guided_diffusion/unet.py:81
Methodforward
(self, x)
guided_diffusion/unet.py:147
Methodforward
(self,x)
guided_diffusion/unet.py:203
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:289
Methodforward
(self, x)
guided_diffusion/unet.py:361
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:402
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:435
Methodforward
(self, x, spatial_size=None)
guided_diffusion/unet.py:467
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:758
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:1067
Methodforward
(self, x, timesteps, low_res=None, **kwargs)
guided_diffusion/unet.py:1118
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:1319
Methodforward
(self, x)
guided_diffusion/unet.py:1366
Methodforward
(self, x)
guided_diffusion/unet.py:2129
Methodforward
(self, x)
guided_diffusion/unet.py:2137
Methodforward
(self, x)
guided_diffusion/unet.py:2206
Methodforward
(self, x)
guided_diffusion/unet.py:2227
Methodforward
(self, x, hs = None)
guided_diffusion/unet.py:2471
Functionfunc_wrapper
(*args, **kwargs)
guided_diffusion/logger.py:311
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:36
Functiongetkvs
()
guided_diffusion/logger.py:243
Functioninfo
(*args)
guided_diffusion/logger.py:258
Methodinverse
Inverse the sample `x` from time `t_start` to `t_end` by DPM-Solver. For discrete-time DPMs, we use `t_start=1/N`, where `N` is the t
guided_diffusion/dpm_solver.py:989
Methodis_vb
(self)
guided_diffusion/gaussian_diffusion.py:113
Methodload_part_state_dict
(self, state_dict)
guided_diffusion/unet.py:1047
Functionload_state_dict
Load a PyTorch file without redundant fetches across MPI ranks.
guided_diffusion/dist_util.py:58
Functionlogkv_mean
The same as logkv(), but if called many times, values averaged.
guided_diffusion/logger.py:221
← previousnext →201–300 of 339, ranked by callers