MCPcopy Create free account

hub / github.com/NVlabs/GSPN / functions

Functions643 in github.com/NVlabs/GSPN

↓ 82 callersFunctionprint
(*args, **kwargs)
generation/train.py:49
↓ 46 callersMethodsplit_idx
(self, rank: int or None = None)
t2i/src/distrifuser/utils.py:107
↓ 36 callersMethodmean
r"""Returns the mean of the scalars that were accumulated for the given statistic between the last two calls to `update()`, or NaN if
t2i/src/eval/training_stats.py:187
↓ 23 callersFunction_extract_into_tensor
Extract values from a 1-D numpy array for a batch of indices. :param arr: the 1-D numpy array. :param timesteps: a tensor of indices into
generation/diffusion/gaussian_diffusion.py:868
↓ 22 callersMethodupdate
r"""Copies current values of the internal counters to the user-visible state and resets them for the next round. If `keep_previous=Tr
t2i/src/eval/training_stats.py:146
↓ 18 callersMethodload
(cls, path: str, arr_name: str)
generation/evaluator.py:507
↓ 16 callersMethodfrom_pretrained
(distri_config: DistriConfig, **kwargs)
t2i/src/pipelines/pipeline_distrifusion_sdxl.py:35
↓ 15 callersFunction_check_args
(name)
classification/config.py:241
↓ 13 callersMethodstd
r"""Returns the standard deviation of the scalars that were accumulated for the given statistic between the last two calls to `update(
t2i/src/eval/training_stats.py:197
↓ 12 callersFunctionprint
(*args, **kwargs)
classification/main.py:358
↓ 9 callersMethodrandn_like
(self, input)
t2i/src/eval/eval.py:43
↓ 9 callersMethodread
(path)
classification/data/zipreader.py:86
↓ 8 callersMethod__init__
(self, in_features, hidden_features=None, out_features=None, act_layer=nn.GELU, drop=0.,channels_first=False)
classification/models/modules.py:101
↓ 8 callersMethodrandint
(self, *args, size, **kwargs)
t2i/src/eval/eval.py:46
↓ 8 callersMethodrandn
(self, size, **kwargs)
t2i/src/eval/eval.py:39
↓ 8 callersMethodsynchronize
(self)
t2i/src/distrifuser/models/base_model.py:47
↓ 8 callersFunctiontqdm
(x)
generation/tools/fid_score.py:48
↓ 7 callersMethodbatch_idx
(self, rank: int or None = None)
t2i/src/distrifuser/utils.py:99
↓ 7 callersMethodclear
(self)
t2i/src/distrifuser/utils.py:193
↓ 7 callersMethodload_state_dict
(self, state_dict)
classification/utils/utils.py:191
↓ 6 callersFunction_conv2d_wrapper
Wrapper for the underlying `conv2d()` and `conv_transpose2d()` implementations.
t2i/src/eval/ops/conv2d_resample.py:29
↓ 6 callersFunction_parse_padding
(padding)
t2i/src/eval/ops/upfirdn2d.py:49
↓ 6 callersFunction_parse_scaling
(scaling)
t2i/src/eval/ops/upfirdn2d.py:40
↓ 6 callersFunctioncreate_custom_forward
(module)
t2i/src/tools.py:509
↓ 6 callersFunctionmean_flat
Take the mean over all non-batch dimensions.
generation/diffusion/gaussian_diffusion.py:22
↓ 6 callersMethodstate_dict
(self)
classification/utils/utils.py:188
↓ 6 callersFunctionvalidate
(config, data_loader, model)
classification/main.py:283
↓ 5 callersFunction_get_filter_size
(f)
t2i/src/eval/ops/upfirdn2d.py:60
↓ 5 callersMethodconstruct_for
Construct a GSPNFusion object for the given pipeline.
t2i/src/fusion/gspnfusion.py:84
↓ 5 callersMethodload_state_dict
(self, state_dict)
generation/train.py:153
↓ 5 callersMethodsample
Importance-sample timesteps for a batch. :param batch_size: the number of timesteps. :param device: the torch device to save
generation/diffusion/timestep_sampler.py:50
↓ 4 callersMethod__init__
( self, img_size=32, patch_size=16, hidden_size=192, channels=3,
generation/gspn.py:301
↓ 4 callersMethod__init__
Build pretrained InceptionV3 Parameters ---------- output_blocks : list of int Indices of blocks to return featur
generation/tools/inception.py:44
↓ 4 callersFunction_conv2d_gradfix
(transpose, weight_shape, stride, padding, output_padding, dilation, groups)
t2i/src/eval/ops/conv2d_gradfix.py:68
↓ 4 callersFunction_pil_interp
(method)
classification/data/build.py:25
↓ 4 callersFunction_tuple_of_ints
(xs, ndim)
t2i/src/eval/ops/conv2d_gradfix.py:58
↓ 4 callersMethod_wrap_model
(self, model)
generation/diffusion/respace.py:111
↓ 4 callersMethodbackward
(ctx, dy)
t2i/src/eval/ops/bias_act.py:164
↓ 4 callersMethodenqueue
(self, idx: int, tensor: torch.Tensor)
t2i/src/distrifuser/utils.py:182
↓ 4 callersMethodget_buffer_list
(self, idx: int)
t2i/src/distrifuser/utils.py:167
↓ 4 callersMethodget_zipfile
(path)
classification/data/zipreader.py:31
↓ 4 callersFunctionhas_same_layout
t2i/src/eval/ops/bias_act.cpp:16
↓ 4 callersMethodp_mean_variance
Apply the model to get p(x_{t-1} | x_t), as well as a prediction of the initial x, x_0. :param model: the model, which takes
generation/diffusion/gaussian_diffusion.py:260
↓ 4 callersMethodq_posterior_mean_variance
Compute the mean and variance of the diffusion posterior: q(x_{t-1} | x_t, x_0)
generation/diffusion/gaussian_diffusion.py:238
↓ 4 callersMethodregister_tensor
( self, shape: Tuple[int, ...] or List[int], torch_dtype: torch.dtype, layer_type: str = None )
t2i/src/distrifuser/utils.py:131
↓ 4 callersMethodset_counter
(self, counter: int = 0)
t2i/src/distrifuser/models/base_model.py:27
↓ 4 callersMethodsplit_zip_style_path
(path)
classification/data/zipreader.py:39
↓ 4 callersMethodstate_dict
(self)
generation/train.py:150
↓ 3 callersMethod__init__
(self, module: Attention, distri_config: DistriConfig)
t2i/src/distrifuser/modules/pp/attn.py:12
↓ 3 callersMethod__init__
( self, # basic dims =========== feat_size, items_each_chunk=8, d_mode
classification/models/gspn.py:173
↓ 3 callersMethod_get_add_time_ids
( self, original_size, crops_coords_top_left, target_size, dtype, text_encoder_projection_dim=None
t2i/src/pipelines/pipeline_highres_sdxl.py:788
↓ 3 callersMethod_get_delta
r"""Returns the raw moments that were accumulated for the given statistic between the last two calls to `update()`, or zero if no scal
t2i/src/eval/training_stats.py:169
↓ 3 callersMethod_predict_eps_from_xstart
(self, x_t, t, pred_xstart)
generation/diffusion/gaussian_diffusion.py:347
↓ 3 callersFunction_unbroadcast
(x, shape)
t2i/src/eval/ops/fma.py:49
↓ 3 callersMethod_vb_terms_bpd
Get a term for the variational lower-bound. The resulting units are bits (rather than nats, as one might expect). This allows
generation/diffusion/gaussian_diffusion.py:688
↓ 3 callersFunctioncheck_keywords_in_name
(name, keywords=())
classification/utils/optimizer.py:61
↓ 3 callersMethodcommunicate
(self)
t2i/src/distrifuser/utils.py:171
↓ 3 callersFunctioncompute_statistics_of_path
(path, model, batch_size, dims, device, num_workers=8)
generation/tools/fid_score.py:214
↓ 3 callersFunctioncreate_block
( img_size, hidden_size, norm_epsilon=1e-5, drop_path=0., skip=False, layer_idx=None,
generation/gspn.py:275
↓ 3 callersMethodget_default_config
Get the default configuration for the GSPNFusion model.
t2i/src/fusion/gspnfusion.py:56
↓ 3 callersFunctionget_obj_from_module
Traverses the object name and returns the last (rightmost) python object.
t2i/src/eval/dnnlib/util.py:276
↓ 3 callersMethodmount_to
Mounts the modules in the `modules_dict` to the given `pipeline`.
t2i/src/fusion/gspnfusion.py:122
↓ 3 callersFunctionnamed_params_and_buffers
(module)
t2i/src/eval/misc.py:150
↓ 3 callersMethodprepare
(self, **kwargs)
t2i/src/pipelines/pipeline_distrifusion_sdxl.py:72
↓ 3 callersFunctionreduce_tensor
(tensor)
classification/utils/utils.py:143
↓ 3 callersFunctionrescale_noise_cfg
Rescale `noise_cfg` according to `guidance_rescale`. Based on findings of [Common Diffusion Noise Schedules and Sample Steps are Flawed](http
t2i/src/pipelines/pipeline_highres_sdxl.py:110
↓ 3 callersMethodspn_block
(self, X, l, u, Gl, Gm, Gr, D=None, spn_module=None)
t2i/src/fusion/gspn.py:87
↓ 3 callersFunctionupfirdn2d
r"""Pad, upsample, filter, and downsample a batch of 2D images. Performs the following sequence of operations for each channel: 1. Upsample
t2i/src/eval/ops/upfirdn2d.py:123
↓ 3 callersMethodwrite
Write text to stdout (and a file) and optionally flush.
t2i/src/eval/dnnlib/util.py:77
↓ 2 callersFunction_batch_pairwise_distances
Compute pairwise distances between two batches of feature vectors.
generation/evaluator.py:422
↓ 2 callersFunction_download_inception_model
()
generation/evaluator.py:581
↓ 2 callersMethod_get_add_time_ids
( self, original_size, crops_coords_top_left, target_size, dtype, text_encoder_projection_dim=None
t2i/src/pipelines/pipeline_superres_sdxl.py:789
↓ 2 callersMethod_get_lr
(self, t)
classification/utils/cosine_lr.py:71
↓ 2 callersMethod_get_lr
(self, t)
classification/utils/lr_scheduler.py:100
↓ 2 callersMethod_get_lr
(self, t)
classification/utils/lr_scheduler.py:139
↓ 2 callersFunction_get_weight_shape
(w)
t2i/src/eval/ops/conv2d_resample.py:21
↓ 2 callersFunction_inception_v3
Wraps `torchvision.models.inception_v3` Skips default weight inititialization if supported by torchvision version. See https://github.com/mse
generation/tools/inception.py:179
↓ 2 callersMethod_predict_xstart_from_eps
(self, x_t, t, eps)
generation/diffusion/gaussian_diffusion.py:340
↓ 2 callersFunction_should_use_custom_op
(input)
t2i/src/eval/ops/conv2d_gradfix.py:47
↓ 2 callersFunction_upfirdn2d_cuda
Fast CUDA implementation of `upfirdn2d()` using custom ops.
t2i/src/eval/ops/upfirdn2d.py:217
↓ 2 callersFunction_warmup_beta
(beta_start, beta_end, num_diffusion_timesteps, warmup_frac)
generation/diffusion/gaussian_diffusion.py:64
↓ 2 callersFunctionampscaler_get_grad_norm
(parameters, norm_type: float = 2.0)
classification/utils/utils.py:150
↓ 2 callersFunctionapprox_standard_normal_cdf
A fast approximation of the cumulative distribution function of the standard normal.
generation/diffusion/diffusion_utils.py:45
↓ 2 callersFunctionbuild_dataset
(is_train, config)
classification/data/data_simmim_ft.py:61
↓ 2 callersFunctionbuild_dataset
(is_train, config)
classification/data/build.py:98
↓ 2 callersFunctionbuild_scheduler
(config, optimizer, n_iter_per_epoch)
classification/utils/lr_scheduler.py:20
↓ 2 callersFunctioncalc_output_padding
(input_shape, output_shape)
t2i/src/eval/ops/conv2d_gradfix.py:95
↓ 2 callersFunctioncheck_choices
(tag, value, return_substrings=False)
generation/sample_ddp.py:28
↓ 2 callersMethodckpt_wrapper
(self, module)
generation/gspn.py:420
↓ 2 callersMethodcompute_activations
Compute image features for downstream evals. :param batches: a iterator over NHWC numpy arrays in [0, 255]. :return: a tuple
generation/evaluator.py:150
↓ 2 callersMethodcondition_score
Compute what the p_mean_variance output would have been, should the model's score function be conditioned by cond_fn. See con
generation/diffusion/gaussian_diffusion.py:364
↓ 2 callersFunctioncreate_diffusion
( timestep_respacing, noise_schedule="linear", use_kl=False, sigma_small=False, predict_x
generation/diffusion/__init__.py:10
↓ 2 callersMethodencode_image
(self, image, device, num_images_per_prompt, output_hidden_states=None)
t2i/src/pipelines/pipeline_highres_sdxl.py:545
↓ 2 callersMethodencode_prompt
r""" Encodes the prompt into text encoder hidden states. Args: prompt (`str` or `List[str]`, *optional*):
t2i/src/pipelines/pipeline_highres_sdxl.py:310
↓ 2 callersMethodevaluate_pr
Evaluate precision and recall efficiently. :param features_1: [N1 x D] feature vectors for reference batch. :param radii_1:
generation/evaluator.py:333
↓ 2 callersMethodflush
Flush written text to both stdout and a file, if open.
t2i/src/eval/dnnlib/util.py:92
↓ 2 callersFunctionforward_crossattndownblock2d_wrapper
(self)
t2i/src/tools.py:748
↓ 2 callersFunctionforward_crossattnupblock2d_wrapper
(self)
t2i/src/tools.py:625
↓ 2 callersFunctionforward_downblock2d_wrapper
(self)
t2i/src/tools.py:671
↓ 2 callersFunctionforward_resnet_wrapper
(self)
t2i/src/tools.py:461
next →1–100 of 643, ranked by callers