MCPcopy Create free account

hub / github.com/NVlabs/GSPN / functions

Functions643 in github.com/NVlabs/GSPN

↓ 1 callersFunctionfid_inception_v3
Build pretrained Inception model for FID computation The Inception model for FID computation uses a different set of weights and has a slight
generation/tools/inception.py:197
↓ 1 callersFunctionfind_classes
(dir)
classification/data/cached_image_folder.py:29
↓ 1 callersMethodflops
(self, shape=(3, 224, 224), verbose=False)
generation/gspn.py:495
↓ 1 callersMethodflops
(self, shape=(3, 224, 224), verbose=True)
classification/models/gspn.py:566
↓ 1 callersMethodforward
(self, X, B, G1, G2, G3)
ops/gaterecurrent/gaterecurrent2dnoind.py:120
↓ 1 callersMethodforward
(self, x, t, y=None, low_mem=False)
generation/gspn.py:426
↓ 1 callersFunctionforward_crossattndownblock2d
( self, hidden_states: torch.Tensor, temb: Optional[torch.Tensor] = None, encoder_hidden_state
t2i/src/tools.py:677
↓ 1 callersFunctionforward_crossattnupblock2d
( self, hidden_states: torch.Tensor, res_hidden_states_tuple: Tuple[torch.Tensor, ...], temb:
t2i/src/tools.py:539
↓ 1 callersFunctionforward_downblock2d
( self, hidden_states: torch.Tensor, temb: Optional[torch.Tensor] = None, *args, **kwargs )
t2i/src/tools.py:631
↓ 1 callersFunctionforward_resnet
(self, input_tensor: torch.Tensor, temb: torch.Tensor, *args, **kwargs)
t2i/src/tools.py:370
↓ 1 callersFunctionforward_transformer_block
( self, hidden_states: torch.Tensor, attention_mask: Optional[torch.Tensor] = None, encoder_hi
t2i/src/tools.py:769
↓ 1 callersFunctionforward_unet
r""" The [`UNet2DConditionModel`] forward method. Args: sample (`torch.Tensor`): The noisy input tensor with the followin
t2i/src/tools.py:48
↓ 1 callersFunctionforward_upblock2d
( self, hidden_states: torch.Tensor, res_hidden_states_tuple: Tuple[torch.Tensor, ...], temb:
t2i/src/tools.py:467
↓ 1 callersFunctiongaterecurrent2dnoind_pytorch
PyTorch implementation of GateRecurrent2dnoind
ops/gaterecurrent/gaterecurrent2dnoind.py:67
↓ 1 callersFunctiongaussian_filter
(latents, kernel_size=3, sigma=1.0)
t2i/src/pipelines/pipeline_highres_sdxl.py:101
↓ 1 callersFunctiongaussian_filter
(latents, kernel_size=3, sigma=1.0)
t2i/src/pipelines/pipeline_superres_sdxl.py:102
↓ 1 callersFunctiongaussian_kernel
(kernel_size=3, sigma=1.0, channels=3)
t2i/src/pipelines/pipeline_highres_sdxl.py:92
↓ 1 callersFunctiongaussian_kernel
(kernel_size=3, sigma=1.0, channels=3)
t2i/src/pipelines/pipeline_superres_sdxl.py:92
↓ 1 callersMethodgen_fn
()
generation/evaluator.py:451
↓ 1 callersFunctionget_2d_sincos_pos_embed_from_grid
(embed_dim, grid)
generation/gspn.py:544
↓ 1 callersFunctionget_activations
Calculates the activations of the pool_3 layer for all images. Params: -- files : List of image files paths -- model : Instan
generation/tools/fid_score.py:74
↓ 1 callersFunctionget_beta_schedule
This is the deprecated API for creating beta schedules. See get_named_beta_schedule() for the new library of schedules.
generation/diffusion/gaussian_diffusion.py:71
↓ 1 callersFunctionget_config
Get a yacs CfgNode object with default values.
classification/config.py:295
↓ 1 callersFunctionget_finetune_param_groups
(model, lr, weight_decay, get_layer_func, scales, skip_list=(), skip_keywords=())
classification/utils/optimizer.py:141
↓ 1 callersMethodget_guidance_scale_embedding
See https://github.com/google-research/vdm/blob/dc27b98a554f65cdc654b800da5aa1846545d41b/model_vdm.py#L298 Args: w (`tor
t2i/src/pipelines/pipeline_highres_sdxl.py:825
↓ 1 callersMethodget_guidance_scale_embedding
See https://github.com/google-research/vdm/blob/dc27b98a554f65cdc654b800da5aa1846545d41b/model_vdm.py#L298 Args: w (`tor
t2i/src/pipelines/pipeline_superres_sdxl.py:826
↓ 1 callersFunctionget_laion_dataset
( tokenizer, resolution=512, path="bhargavsdesai/laion_improved_aesthetics_6.5plus_with_images", )
t2i/src/train/distill.py:43
↓ 1 callersFunctionget_laion_dataset
( tokenizer, tokenizer_2, resolution=1024, path="bhargavsdesai/laion_improved_aesthetics_6.5pl
t2i/src/train/distill_sdxl.py:43
↓ 1 callersFunctionget_last_step
(features_path, image_size)
generation/extract_features.py:120
↓ 1 callersFunctionget_latest_sample_index
(sample_folder_dir)
generation/sample_ddp.py:53
↓ 1 callersFunctionget_obj_by_name
Finds the python object with the given name.
t2i/src/eval/dnnlib/util.py:286
↓ 1 callersFunctionget_pretrain_param_groups
(model, skip_list=(), skip_keywords=())
classification/utils/optimizer.py:105
↓ 1 callersMethodget_timesteps
(self, num_inference_steps, strength, device, denoising_start=None)
t2i/src/pipelines/pipeline_highres_sdxl.py:729
↓ 1 callersMethodget_timesteps
(self, num_inference_steps, strength, device, denoising_start=None)
t2i/src/pipelines/pipeline_superres_sdxl.py:730
↓ 1 callersFunctionget_world_size
()
t2i/src/eval/distributed.py:43
↓ 1 callersFunctionhas_file_allowed_extension
Checks if a file is an allowed extension. Args: filename (string): path to a file Returns: bool: True if the filename ends wit
classification/data/cached_image_folder.py:18
↓ 1 callersMethodinit_cache
(self)
classification/data/cached_image_folder.py:123
↓ 1 callersMethodinitialize_weights
(self)
generation/gspn.py:388
↓ 1 callersFunctionis_power_of_2
(n: int)
t2i/src/distrifuser/utils.py:20
↓ 1 callersFunctionis_top_level_function
Determine whether the given object is a top-level function, i.e., defined at module scope using 'def'.
t2i/src/eval/dnnlib/util.py:311
↓ 1 callersFunctionis_url
Determine whether the given object is a valid URL string.
t2i/src/eval/dnnlib/util.py:377
↓ 1 callersFunctionis_zip_path
judge if this is a zip path
classification/data/zipreader.py:18
↓ 1 callersMethodless_thans
(self, batch_1, radii_1, batch_2, radii_2)
generation/evaluator.py:410
↓ 1 callersFunctionload_checkpoint_ema
(config, model, optimizer, lr_scheduler, loss_scaler, logger, model_ema: ModelEma=None)
classification/utils/utils.py:43
↓ 1 callersMethodload_dataset
(self)
t2i/src/eval/data_util.py:81
↓ 1 callersFunctionload_pretrained_ema
(config, model, logger, model_ema: ModelEma=None)
classification/utils/utils.py:85
↓ 1 callersFunctionmain
(args)
generation/train.py:160
↓ 1 callersFunctionmain
()
generation/evaluator.py:35
↓ 1 callersFunctionmain
Trains a new GSPN model.
generation/extract_features.py:131
↓ 1 callersFunctionmain
Run sampling.
generation/sample_ddp.py:60
↓ 1 callersFunctionmain
(outdir, subdirs, seeds, max_batch_size, num_fid_samples, text_prompts, repo_id, model_name, device=torch.devi
t2i/src/eval/eval.py:134
↓ 1 callersFunctionmain
()
t2i/src/train/distill.py:216
↓ 1 callersFunctionmain
()
t2i/src/train/distill_sdxl.py:267
↓ 1 callersFunctionmain
(config, args)
classification/main.py:99
↓ 1 callersFunctionmake_cache_dir_path
(*paths: str)
t2i/src/eval/dnnlib/util.py:123
↓ 1 callersFunctionmake_cuda_ext
(name, module, sources, include_dirs, sources_cuda=[])
setup.py:18
↓ 1 callersFunctionmake_dataset
(dir, class_to_idx, extensions)
classification/data/cached_image_folder.py:36
↓ 1 callersFunctionmake_dataset_with_ann
(ann_file, img_prefix, extensions)
classification/data/cached_image_folder.py:54
↓ 1 callersFunctionmodulate
(x, shift, scale)
generation/gspn.py:33
↓ 1 callersFunctionnan_to_num
(input, nan=0.0, posinf=None, neginf=None, *, out=None)
t2i/src/eval/misc.py:48
↓ 1 callersMethodnatural_sort
(self, l)
t2i/src/eval/data_util.py:76
↓ 1 callersFunctionnormalize_w
(Gl, Gm, Gr, method)
classification/models/modules.py:14
↓ 1 callersMethodnormalize_w
(self, Gl, Gm, Gr)
generation/gspn.py:198
↓ 1 callersMethodnormalize_w
(self, Gl, Gm, Gr)
t2i/src/fusion/gspn.py:74
↓ 1 callersMethodnum
r"""Returns the number of scalars that were accumulated for the given statistic between the last two calls to `update()`, or zero if n
t2i/src/eval/training_stats.py:179
↓ 1 callersFunctionopen_npz_array
(path: str, arr_name: str)
generation/evaluator.py:525
↓ 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
generation/diffusion/gaussian_diffusion.py:382
↓ 1 callersMethodp_sample_loop
Generate samples from the model. :param model: the model module. :param shape: the shape of the samples, (N, C, H, W).
generation/diffusion/gaussian_diffusion.py:425
↓ 1 callersMethodp_sample_loop_progressive
Generate samples from the model and yield intermediate samples from each timestep of diffusion. Arguments are the same as p_s
generation/diffusion/gaussian_diffusion.py:470
↓ 1 callersFunctionparse_args
()
t2i/src/train/distill.py:91
↓ 1 callersFunctionparse_args
()
t2i/src/train/distill_sdxl.py:134
↓ 1 callersFunctionparse_int_list
(s)
t2i/src/eval/eval.py:54
↓ 1 callersFunctionparse_option
()
classification/main.py:47
↓ 1 callersFunctionpersistent_class
r"""Class decorator that extends a given class to save its source code when pickled. Example: from torch_utils import persistence
t2i/src/eval/persistence.py:34
↓ 1 callersMethodprepare_extra_step_kwargs
(self, generator, eta)
t2i/src/pipelines/pipeline_highres_sdxl.py:616
↓ 1 callersMethodprepare_extra_step_kwargs
(self, generator, eta)
t2i/src/pipelines/pipeline_superres_sdxl.py:617
↓ 1 callersMethodprepare_ip_adapter_image_embeds
( self, ip_adapter_image, ip_adapter_image_embeds, device, num_images_per_prompt, do_classifier_free_g
t2i/src/pipelines/pipeline_highres_sdxl.py:570
↓ 1 callersMethodprepare_ip_adapter_image_embeds
( self, ip_adapter_image, ip_adapter_image_embeds, device, num_images_per_prompt, do_classifier_free_g
t2i/src/pipelines/pipeline_superres_sdxl.py:571
↓ 1 callersMethodprepare_latents
(self, batch_size, num_channels_latents, height, width, dtype, device, generator, latents=None)
t2i/src/pipelines/pipeline_superres_sdxl.py:767
↓ 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
generation/diffusion/gaussian_diffusion.py:209
↓ 1 callersMethodread_batch
(self, batch_size: int)
generation/evaluator.py:443
↓ 1 callersMethodread_batches
(self, batch_size: int)
generation/evaluator.py:450
↓ 1 callersFunctionread_file_to_sentences
(filename)
t2i/src/eval/eval.py:66
↓ 1 callersFunctionrecurse
(obj)
t2i/src/eval/persistence.py:242
↓ 1 callersMethodremaining
(self)
generation/evaluator.py:447
↓ 1 callersFunctionreplace_submodule
(model, module_name, new_submodule)
t2i/src/fusion/gspnfusion.py:23
↓ 1 callersFunctionreport
r"""Broadcasts the given set of scalars to all interested instances of `Collector`, across device and process boundaries. This function is ex
t2i/src/eval/training_stats.py:55
↓ 1 callersFunctionrequires_grad
Set requires_grad flag for all parameters in a model.
generation/train.py:70
↓ 1 callersFunctionretrieve_latents
( encoder_output: torch.Tensor, generator: Optional[torch.Generator] = None, sample_mode: str = "sample" )
t2i/src/pipelines/pipeline_highres_sdxl.py:125
↓ 1 callersFunctionretrieve_latents
( encoder_output: torch.Tensor, generator: Optional[torch.Generator] = None, sample_mode: str = "sample" )
t2i/src/pipelines/pipeline_superres_sdxl.py:126
↓ 1 callersFunctionretrieve_timesteps
Calls the scheduler's `set_timesteps` method and retrieves timesteps from the scheduler after the call. Handles custom timesteps. Any kwargs
t2i/src/pipelines/pipeline_highres_sdxl.py:139
↓ 1 callersFunctionretrieve_timesteps
Calls the scheduler's `set_timesteps` method and retrieves timesteps from the scheduler after the call. Handles custom timesteps. Any kwargs
t2i/src/pipelines/pipeline_superres_sdxl.py:140
↓ 1 callersFunctionsave_checkpoint_ema
(config, epoch, model, max_accuracy, optimizer, lr_scheduler, loss_scaler, logger, model_ema: ModelEma=None, m
classification/utils/utils.py:111
↓ 1 callersMethodset_comm_manager
(self, comm_manager: PatchParallelismCommManager)
t2i/src/distrifuser/models/base_model.py:33
↓ 1 callersFunctionset_weight_decay
(model, skip_list=(), skip_keywords=())
classification/utils/optimizer.py:42
↓ 1 callersMethodsetup_cuda_graph
(self, static_outputs, cuda_graphs)
t2i/src/distrifuser/models/base_model.py:39
↓ 1 callersFunctionsetup_for_distributed
This function disables printing when not in master process
generation/train.py:42
↓ 1 callersFunctionsetup_for_distributed
This function disables printing when not in master process
classification/main.py:351
↓ 1 callersMethodsliced_forward
(self, x: torch.Tensor)
t2i/src/distrifuser/modules/pp/conv2d.py:20
↓ 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
generation/diffusion/respace.py:18
← previousnext →201–300 of 643, ranked by callers