MCPcopy Create free account

hub / github.com/NVlabs/GSPN / functions

Functions643 in github.com/NVlabs/GSPN

↓ 2 callersFunctionforward_transformer_block_wrapper
(self)
t2i/src/tools.py:892
↓ 2 callersFunctionforward_unet_wrapper
(self)
t2i/src/tools.py:364
↓ 2 callersFunctionforward_upblock2d_wrapper
(self)
t2i/src/tools.py:533
↓ 2 callersMethodfrechet_distance
Compute the Frechet distance between two sets of statistics.
generation/evaluator.py:80
↓ 2 callersFunctionget_1d_sincos_pos_embed_from_grid
(embed_dim, pos)
generation/gspn.py:554
↓ 2 callersFunctionget_module_from_obj_name
Searches for the underlying module behind the name to some python object. Returns the module and the object name (original name with module part r
t2i/src/eval/dnnlib/util.py:235
↓ 2 callersFunctionget_rank
()
t2i/src/eval/distributed.py:35
↓ 2 callersFunctionget_submodule
(model, module_name)
t2i/src/train/distill.py:38
↓ 2 callersFunctionget_submodule
(model, module_name)
t2i/src/train/distill_sdxl.py:38
↓ 2 callersFunctionis_persistent
r"""Test whether the given object or class is persistent, i.e., whether it will save its source code when pickled.
t2i/src/eval/persistence.py:140
↓ 2 callersMethodmanifold_radii
(self, features: np.ndarray)
generation/evaluator.py:256
↓ 2 callersMethodnaive_forward
(self, x: torch.Tensor)
t2i/src/distrifuser/modules/pp/conv2d.py:15
↓ 2 callersMethodnames
r"""Returns the names of all statistics broadcasted so far that match the regular expression specified at construction time.
t2i/src/eval/training_stats.py:140
↓ 2 callersMethodno_weight_decay
(self)
classification/models/gspn.py:443
↓ 2 callersMethodno_weight_decay_keywords
(self)
classification/models/gspn.py:448
↓ 2 callersFunctionnormal_kl
Compute the KL divergence between two gaussians. Shapes are automatically broadcasted, so batches can be compared to scalars, among other
generation/diffusion/diffusion_utils.py:16
↓ 2 callersMethodpairwise_distances
Evaluate pairwise distances between two batches of feature vectors.
generation/evaluator.py:401
↓ 2 callersFunctionpil_loader
(path)
classification/data/cached_image_folder.py:178
↓ 2 callersMethodprepare_latents
(self, batch_size, num_channels_latents, height, width, dtype, device, generator, latents=None)
t2i/src/pipelines/pipeline_highres_sdxl.py:766
↓ 2 callersFunctionprocess
(image)
t2i/src/train/distill.py:67
↓ 2 callersMethodq_sample
Diffuse the data for a given number of diffusion steps. In other words, sample from q(x_t | x_0). :param x_start: the initial
generation/diffusion/gaussian_diffusion.py:221
↓ 2 callersMethodread_activations
(self, npz_path: str)
generation/evaluator.py:146
↓ 2 callersMethodread_statistics
( self, npz_path: str, activations: Tuple[np.ndarray, np.ndarray] )
generation/evaluator.py:172
↓ 2 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_superres_sdxl.py:111
↓ 2 callersMethodset_epoch
(self, epoch)
classification/data/samplers.py:28
↓ 2 callersMethodspn
(self, x, Q=None, K=None, V=None)
t2i/src/fusion/gspn.py:97
↓ 2 callersFunctionsuppress_tracer_warnings
()
t2i/src/eval/misc.py:70
↓ 2 callersFunctionthroughput
(data_loader, model, logger)
classification/main.py:332
↓ 2 callersMethodupcast_vae
(self)
t2i/src/pipelines/pipeline_highres_sdxl.py:806
↓ 2 callersFunctionupdate_ema
Step the EMA model towards the current model.
generation/train.py:58
↓ 1 callersMethod__init__
(self, model, timestep_map, original_num_steps)
generation/diffusion/respace.py:124
↓ 1 callersMethod__init__
(self, optimizer: torch.optim.Optimizer, t_initial: int, lr
classification/utils/lr_scheduler.py:71
↓ 1 callersMethod__init__
(self, root, loader, extensions, ann_file='', img_prefix='', transform=None, target_transform=None,
classification/data/cached_image_folder.py:92
↓ 1 callersMethod__initgspnv1__
( self, # basic dims =========== feat_size, items_each_chunk=8, d_mode
classification/models/gspn.py:40
↓ 1 callersMethod__len__
(self)
classification/data/cached_image_folder.py:161
↓ 1 callersMethod__reduce__
(self)
t2i/src/eval/persistence.py:123
↓ 1 callersFunction_bias_act_cuda
Fast CUDA implementation of `bias_act()` using custom ops.
t2i/src/eval/ops/bias_act.py:132
↓ 1 callersFunction_bias_act_ref
Slow reference implementation of `bias_act()` using standard TensorFlow ops.
t2i/src/eval/ops/bias_act.py:97
↓ 1 callersFunction_check_pickleable
r"""Check that the given object is pickleable, raising an exception if it is not. This function is expected to be considerably more efficient
t2i/src/eval/persistence.py:237
↓ 1 callersFunction_chunked_feed_forward
(ff: nn.Module, hidden_states: torch.Tensor, chunk_dim: int, chunk_size: int)
t2i/src/tools.py:754
↓ 1 callersFunction_create_feature_graph
(input_batch)
generation/evaluator.py:594
↓ 1 callersFunction_create_softmax_graph
(input_batch)
generation/evaluator.py:611
↓ 1 callersFunction_find_compiler_bindir
()
t2i/src/eval/custom_ops.py:28
↓ 1 callersMethod_forward
(self, hidden_states: torch.FloatTensor, scale: float = 1.0)
t2i/src/distrifuser/modules/pp/attn.py:109
↓ 1 callersMethod_forward
(self, hidden_states: torch.FloatTensor, scale: float = 1.0)
t2i/src/distrifuser/modules/pp/attn.py:199
↓ 1 callersMethod_forward
(self, input: torch.Tensor)
classification/models/gspn.py:277
↓ 1 callersFunction_init
()
t2i/src/eval/ops/bias_act.py:53
↓ 1 callersFunction_init
()
t2i/src/eval/ops/upfirdn2d.py:37
↓ 1 callersMethod_load_image
(self, path)
classification/data/imagenet22k_dataset.py:30
↓ 1 callersMethod_make_layer
( feat_size, items_each_chunk=8, dim=96, drop_path=[0.1, 0.1], use_c
classification/models/gspn.py:498
↓ 1 callersFunction_module_to_src
r"""Query the source code of a given Python module.
t2i/src/eval/persistence.py:212
↓ 1 callersFunction_numpy_partition
(arr, kth, **kwargs)
generation/evaluator.py:644
↓ 1 callersFunction_open_npy_file
(path: str, arr_name: str)
generation/evaluator.py:572
↓ 1 callersMethod_pos_embed
(embed_dims, patch_size, img_size)
classification/models/gspn.py:426
↓ 1 callersMethod_prior_bpd
Get the prior KL term for the variational lower-bound, measured in bits-per-dim. This term can't be optimized, as it only dep
generation/diffusion/gaussian_diffusion.py:796
↓ 1 callersFunction_read_bytes
Copied from: https://github.com/numpy/numpy/blob/fb215c76967739268de71aa4bda55dd1b062bc2e/numpy/lib/format.py#L788-L886 Read from file-like
generation/evaluator.py:542
↓ 1 callersFunction_should_use_custom_op
()
t2i/src/eval/ops/grid_sample_gradfix.py:34
↓ 1 callersFunction_src_to_module
r"""Get or create a Python module for the given source code.
t2i/src/eval/persistence.py:222
↓ 1 callersFunction_sync
r"""Synchronize the global cumulative counters across devices and processes. Called internally by `Collector.update()`.
t2i/src/eval/training_stats.py:233
↓ 1 callersFunction_update_config_from_file
(config, cfg_file)
classification/config.py:219
↓ 1 callersFunction_update_shapes
(pool3)
generation/evaluator.py:625
↓ 1 callersFunction_upfirdn2d_ref
Slow reference implementation of `upfirdn2d()` using standard PyTorch ops.
t2i/src/eval/ops/upfirdn2d.py:172
↓ 1 callersMethod_warmed_up
(self)
generation/diffusion/timestep_sampler.py:155
↓ 1 callersFunctionaccimage_loader
(path)
classification/data/cached_image_folder.py:192
↓ 1 callersFunctionadjust_learning_rate
Decay the learning rate with half-cycle cosine after warmup
generation/train.py:92
↓ 1 callersFunctionbetas_for_alpha_bar
Create a beta schedule that discretizes the given alpha_t_bar function, which defines the cumulative product of (1-beta) over time from t = [
generation/diffusion/gaussian_diffusion.py:131
↓ 1 callersFunctionbuild_gspn_model
(config, is_pretrain=False)
classification/models/__init__.py:9
↓ 1 callersFunctionbuild_loader
(config)
classification/data/build.py:44
↓ 1 callersFunctionbuild_loader_finetune
(config)
classification/data/data_simmim_ft.py:18
↓ 1 callersFunctionbuild_loader_simmim
(config)
classification/data/data_simmim_pt.py:92
↓ 1 callersFunctionbuild_model
(config, is_pretrain=False)
classification/models/__init__.py:50
↓ 1 callersFunctionbuild_optimizer
Build optimizer, set weight decay of normalization to 0 by default.
classification/utils/optimizer.py:14
↓ 1 callersFunctionbuild_transform
(is_train, config)
classification/data/data_simmim_ft.py:75
↓ 1 callersFunctionbuild_transform
(is_train, config)
classification/data/build.py:144
↓ 1 callersFunctioncalculate_activation_statistics
Calculation of the statistics used by the FID. Params: -- files : List of image files paths -- model : Instance of inception m
generation/tools/fid_score.py:189
↓ 1 callersFunctioncalculate_frechet_distance
Numpy implementation of the Frechet Distance. The Frechet distance between two multivariate Gaussians X_1 ~ N(mu_1, C_1) and X_2 ~ N(mu_2, C_2
generation/tools/fid_score.py:132
↓ 1 callersFunctioncall_func_by_name
Finds the python object with the given name and calls it as a function.
t2i/src/eval/dnnlib/util.py:292
↓ 1 callersFunctioncenter_crop_arr
Center cropping implementation from ADM. https://github.com/openai/guided-diffusion/blob/8fb3ad9197f16bbc40620447b2742e13458d2831/guided_diff
generation/extract_features.py:87
↓ 1 callersFunctioncheck_env
()
t2i/src/distrifuser/utils.py:7
↓ 1 callersMethodcheck_inputs
( self, prompt, prompt_2, height, width, callback_steps,
t2i/src/pipelines/pipeline_highres_sdxl.py:633
↓ 1 callersMethodcheck_inputs
( self, prompt, prompt_2, height, width, callback_steps,
t2i/src/pipelines/pipeline_superres_sdxl.py:634
↓ 1 callersFunctionchunked_forward_unet
( self, sample: torch.Tensor, timestep: Union[torch.Tensor, float, int], encoder_hidden_states
t2i/src/tools.py:323
↓ 1 callersMethodclose
Flush, close possible files, and remove stdout/stderr mirroring.
t2i/src/eval/dnnlib/util.py:99
↓ 1 callersFunctioncompress_to_npz
(folder_path, num=50000)
t2i/src/eval/eval.py:84
↓ 1 callersFunctioncompute_clip_score
( dataset: DataLoader, clip_model="ViT-B/32", device="cuda", how_many=5000)
t2i/src/eval/calculate_metrics.py:35
↓ 1 callersFunctioncompute_fid
(fake_dir: Path, gt_dir: Path, resize_size=None, feature_extractor="clip")
t2i/src/eval/calculate_metrics.py:85
↓ 1 callersMethodcompute_inception_score
(self, activations: np.ndarray, split_size: int = 5000)
generation/evaluator.py:187
↓ 1 callersMethodcompute_prec_recall
( self, activations_ref: np.ndarray, activations_sample: np.ndarray )
generation/evaluator.py:202
↓ 1 callersMethodcompute_statistics
(self, activations: np.ndarray)
generation/evaluator.py:182
↓ 1 callersMethodcondition_mean
Compute the mean for the previous step, given a function cond_fn that computes the gradient of a conditional log probability with res
generation/diffusion/gaussian_diffusion.py:352
↓ 1 callersMethodcreate_buffer
(self)
t2i/src/distrifuser/utils.py:152
↓ 1 callersFunctioncreate_logger
Create a logger that writes to a log file and stdout.
generation/train.py:78
↓ 1 callersFunctioncreate_logger
(output_dir, dist_rank=0, name='')
classification/utils/logger.py:16
↓ 1 callersFunctioncreate_npz_from_sample_folder
Builds a single .npz file from a folder of .png samples.
generation/sample_ddp.py:36
↓ 1 callersMethodddim_sample
Sample x_{t-1} from the model using DDIM. Same usage as p_sample().
generation/diffusion/gaussian_diffusion.py:519
↓ 1 callersMethodddim_sample_loop_progressive
Use DDIM to sample from the model and yield intermediate samples from each timestep of DDIM. Same usage as p_sample_loop_prog
generation/diffusion/gaussian_diffusion.py:639
↓ 1 callersFunctiondiscretized_gaussian_log_likelihood
Compute the log-likelihood of a Gaussian distribution discretizing to a given image. :param x: the target images. It is assumed that this
generation/diffusion/diffusion_utils.py:68
↓ 1 callersMethodencode_image
(self, image, device, num_images_per_prompt, output_hidden_states=None)
t2i/src/pipelines/pipeline_superres_sdxl.py:546
↓ 1 callersMethodencode_prompt
r""" Encodes the prompt into text encoder hidden states. Args: prompt (`str` or `List[str]`, *optional*):
t2i/src/pipelines/pipeline_superres_sdxl.py:311
↓ 1 callersFunctionevaluate_model
(opt)
t2i/src/eval/calculate_metrics.py:112
← previousnext →101–200 of 643, ranked by callers