MCPcopy Create free account

hub / github.com/horseee/DeepCache / functions

Functions1,211 in github.com/horseee/DeepCache

↓ 2 callersMethodsample
(self)
experiments/ddpm/ddpm/runners/diffusion.py:238
↓ 2 callersMethodset_attn_processor
r""" Sets the attention processor to use to compute attention. Parameters: processor (`dict` of `AttentionProcessor` or o
DeepCache/sd/unet_2d_condition.py:619
↓ 2 callersFunctionset_random_seed
(seed)
experiments/generate.py:14
↓ 2 callersFunctionset_random_seed
(seed)
experiments/ddpm/ddpm/utils/tools.py:23
↓ 2 callersMethodsetup
(self, stage=None)
experiments/ldm/main.py:189
↓ 2 callersFunctionshift_pixel
shift pixel for super-resolution with different scale factors Args: x: WxHxC or WxH sf: scale factor upper_left: shift dir
experiments/ldm/ldm/modules/image_degradation/bsrgan_light.py:99
↓ 2 callersFunctionshift_pixel
shift pixel for super-resolution with different scale factors Args: x: WxHxC or WxH sf: scale factor upper_left: shift dir
experiments/ldm/ldm/modules/image_degradation/bsrgan.py:99
↓ 2 callersMethodstore
Save the current parameters for restoring later. Args: parameters: Iterable of `torch.nn.Parameter`; the parameters to be
experiments/ldm/ldm/modules/ema.py:55
↓ 2 callersMethodtest
(self, model, total_n_samples, timesteps, save_id = None)
experiments/ddpm/ddpm/runners/diffusion.py:442
↓ 2 callersFunctiontimestep_embedding
Create sinusoidal timestep embeddings. :param timesteps: a 1-D Tensor of N indices, one per batch element. These may be
experiments/ldm/ldm/modules/diffusionmodules/util.py:151
↓ 2 callersMethodto_rgb
(self, x)
experiments/ldm/ldm/models/autoencoder.py:417
↓ 2 callersFunctionvariant_compatible_siblings
(filenames, variant=None)
DeepCache/sdxl/pipeline_utils.py:187
↓ 2 callersFunctionvariant_compatible_siblings
(filenames, variant=None)
DeepCache/svd/pipeline_utils.py:185
↓ 2 callersFunctionvariant_compatible_siblings
(filenames, variant=None)
DeepCache/sd/pipeline_utils.py:187
↓ 1 callersMethod__init__
(self, batch_size=2)
DeepCache/sd/pipeline_text_to_video_zero.py:89
↓ 1 callersMethod__init__
(self, root, classes="train", transform=None, target_transform=None)
experiments/ddpm/ddpm/datasets/lsun.py:75
↓ 1 callersMethod__len__
(self)
experiments/ddpm/ddpm/datasets/vision.py:31
↓ 1 callersMethod__len__
(self)
experiments/ldm/ldm/data/base.py:18
↓ 1 callersFunction_append_dims
Appends dimensions to the end of a tensor until it has target_dims dimensions.
DeepCache/svd/pipeline_stable_video_diffusion.py:34
↓ 1 callersFunction_augment
(img)
experiments/ldm/ldm/modules/image_degradation/utils_image.py:475
↓ 1 callersFunction_compute_padding
Compute padding tuple.
DeepCache/svd/pipeline_stable_video_diffusion.py:584
↓ 1 callersMethod_encode_image
(self, image, device, num_videos_per_prompt, do_classifier_free_guidance)
DeepCache/svd/pipeline_stable_video_diffusion.py:114
↓ 1 callersMethod_encode_prompt
( self, prompt, device, num_images_per_prompt, do_classifier_free_guid
DeepCache/sd/pipeline_stable_diffusion.py:267
↓ 1 callersMethod_encode_vae_image
( self, image: torch.Tensor, device, num_videos_per_prompt, do_classif
DeepCache/svd/pipeline_stable_video_diffusion.py:156
↓ 1 callersMethod_filter_relpaths
(self, relpaths)
experiments/ldm/ldm/data/imagenet.py:48
↓ 1 callersFunction_gaussian_blur2d
(input, kernel_size, sigma)
DeepCache/svd/pipeline_stable_video_diffusion.py:646
↓ 1 callersMethod_get_add_time_ids
( self, original_size, crops_coords_top_left, target_size, aesthetic_s
DeepCache/sdxl/pipeline_stable_diffusion_xl_img2img.py:594
↓ 1 callersMethod_get_add_time_ids
( self, fps, motion_bucket_id, noise_aug_strength, dtype, batc
DeepCache/svd/pipeline_stable_video_diffusion.py:179
↓ 1 callersFunction_get_confirm_token
(response)
experiments/ddpm/ddpm/datasets/utils.py:169
↓ 1 callersFunction_get_paths_from_images
(path)
experiments/ldm/ldm/modules/image_degradation/utils_image.py:74
↓ 1 callersMethod_load
(self)
experiments/ldm/ldm/data/imagenet.py:93
↓ 1 callersMethod_prepare
(self)
experiments/ldm/ldm/data/imagenet.py:45
↓ 1 callersMethod_prepare_human_to_integer_label
(self)
experiments/ldm/ldm/data/imagenet.py:80
↓ 1 callersMethod_prepare_idx_to_synset
(self)
experiments/ldm/ldm/data/imagenet.py:74
↓ 1 callersMethod_prepare_synset_to_human
(self)
experiments/ldm/ldm/data/imagenet.py:66
↓ 1 callersFunction_resize_with_antialiasing
(input, size, interpolation="bicubic", align_corners=True)
DeepCache/svd/pipeline_stable_video_diffusion.py:555
↓ 1 callersFunction_save_response_content
(response, destination, chunk_size=32768)
experiments/ddpm/ddpm/datasets/utils.py:177
↓ 1 callersMethod_verify_classes
(self, classes)
experiments/ddpm/ddpm/datasets/lsun.py:96
↓ 1 callersFunctionadd_batch_counter_hook_function
(module)
DeepCache/flops.py:510
↓ 1 callersFunctionadd_batch_counter_variables_or_reset
(module)
DeepCache/flops.py:505
↓ 1 callersFunctionadd_flops_counting_methods
(net_main_module)
DeepCache/flops.py:395
↓ 1 callersFunctionadd_sharpening
USM sharpening. borrowed from real-ESRGAN Input image: I; Blurry image: B. 1. K = I + weight * (I - B) 2. Mask = 1 if abs(I - B) > thresho
experiments/ldm/ldm/modules/image_degradation/bsrgan.py:299
↓ 1 callersFunctionanisotropic_Gaussian
generate an anisotropic Gaussian kernel Args: ksize : e.g., 15, kernel size theta : [0, pi], rotation angle range l1
experiments/ldm/ldm/modules/image_degradation/bsrgan_light.py:65
↓ 1 callersFunctionanisotropic_Gaussian
generate an anisotropic Gaussian kernel Args: ksize : e.g., 15, kernel size theta : [0, pi], rotation angle range l1
experiments/ldm/ldm/modules/image_degradation/bsrgan.py:65
↓ 1 callersFunctionaugment_img
Kai Zhang (github: https://github.com/cszn)
experiments/ldm/ldm/modules/image_degradation/utils_image.py:380
↓ 1 callersFunctionavg_pool_nd
Create a 1D, 2D, or 3D average pooling module.
experiments/ldm/ldm/modules/diffusionmodules/util.py:238
↓ 1 callersFunctionbgr2ycbcr
bgr version of rgb2ycbcr only_y: only return Y channel Input: uint8, [0, 255] float, [0, 1]
experiments/ldm/ldm/modules/image_degradation/utils_image.py:573
↓ 1 callersFunctioncalculate_activation_statistics
Calculation of the statistics used by the FID. Params: -- files : List of image files paths -- model : Instance of inception m
experiments/ddpm/fid.py:240
↓ 1 callersMethodcalculate_adaptive_weight
(self, nll_loss, g_loss, last_layer=None)
experiments/ldm/ldm/modules/losses/vqperceptual.py:85
↓ 1 callersMethodcalculate_adaptive_weight
(self, nll_loss, g_loss, last_layer=None)
experiments/ldm/ldm/modules/losses/contperceptual.py:32
↓ 1 callersFunctioncalculate_fid_given_paths
Calculates the FID of two paths
experiments/ddpm/fid.py:286
↓ 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
experiments/ddpm/fid.py:183
↓ 1 callersMethodcheck_frequency
(self, check_idx)
experiments/ldm/main.py:372
↓ 1 callersMethodcheck_inputs
( self, prompt, prompt_2, height, width, callback_steps,
DeepCache/sdxl/pipeline_stable_diffusion_xl.py:428
↓ 1 callersMethodcheck_inputs
( self, prompt, prompt_2, strength, num_inference_steps, callb
DeepCache/sdxl/pipeline_stable_diffusion_xl_img2img.py:436
↓ 1 callersMethodcheck_inputs
(self, image, height, width)
DeepCache/svd/pipeline_stable_video_diffusion.py:235
↓ 1 callersFunctionchunk
(it, size)
experiments/ldm/scripts/knn2img.py:36
↓ 1 callersFunctionconvert_to_variant
(filename)
DeepCache/sdxl/pipeline_utils.py:237
↓ 1 callersFunctionconvert_to_variant
(filename)
DeepCache/svd/pipeline_utils.py:235
↓ 1 callersFunctionconvert_to_variant
(filename)
DeepCache/sd/pipeline_utils.py:237
↓ 1 callersFunctionconvsample
(model, shape, return_intermediates=True, verbose=True, make_prog_row=False)
experiments/ldm/scripts/sample_diffusion.py:54
↓ 1 callersFunctionconvsample_ddim
(model, cond, steps, shape, eta=1.0, callback=None, normals_sequence=None, mask=None, x0=N
experiments/ldm/notebook_helpers.py:188
↓ 1 callersFunctionconvsample_ddim
(model, steps, shape, eta=1.0 )
experiments/ldm/scripts/sample_diffusion.py:69
↓ 1 callersFunctioncoords_grid
(batch, ht, wd, device)
DeepCache/sd/pipeline_text_to_video_zero.py:231
↓ 1 callersFunctioncount_params
(model, verbose=False)
experiments/ldm/ldm/util.py:71
↓ 1 callersFunctioncreate_motion_field
Create translation motion field Args: motion_field_strength_x: motion strength along x-axis motion_field_strength_y: motion
DeepCache/sd/pipeline_text_to_video_zero.py:265
↓ 1 callersFunctioncreate_motion_field_and_warp_latents
Creates translation motion and warps the latents accordingly Args: motion_field_strength_x: motion strength along x-axis mot
DeepCache/sd/pipeline_text_to_video_zero.py:288
↓ 1 callersFunctiondata_transform
(config, X)
experiments/ddpm/ddpm/datasets/__init__.py:189
↓ 1 callersMethodddim_sampling
(self, cond, shape, x_T=None, ddim_use_original_steps=False, callb
experiments/ldm/ldm/models/diffusion/ddim.py:117
↓ 1 callersMethoddecode_latents
(self, latents, num_frames, decode_chunk_size=14)
DeepCache/svd/pipeline_stable_video_diffusion.py:207
↓ 1 callersMethoddecode_latents
(self, latents)
DeepCache/sd/pipeline_stable_diffusion.py:470
↓ 1 callersFunctiondict2namespace
(config)
experiments/ddpm/ddim.py:18
↓ 1 callersMethoddownload
r""" Download and cache a PyTorch diffusion pipeline from pretrained pipeline weights. Parameters: pretrained_model_name
DeepCache/sdxl/pipeline_utils.py:1332
↓ 1 callersMethoddownload
r""" Download and cache a PyTorch diffusion pipeline from pretrained pipeline weights. Parameters: pretrained_model_name
DeepCache/svd/pipeline_utils.py:1535
↓ 1 callersMethoddownload
r""" Download and cache a PyTorch diffusion pipeline from pretrained pipeline weights. Parameters: pretrained_model_name
DeepCache/sd/pipeline_utils.py:1332
↓ 1 callersMethoddownload
(self)
experiments/ddpm/ddpm/datasets/celeba.py:120
↓ 1 callersFunctiondownload_file_from_google_drive
Download a Google Drive file from and place it in root. Args: file_id (str): id of file to be downloaded root (str): Directory t
experiments/ddpm/ddpm/datasets/utils.py:134
↓ 1 callersFunctiondownload_models
(mode)
experiments/ldm/notebook_helpers.py:19
↓ 1 callersMethodema_copy
(self, module, accelerator)
experiments/ddpm/ddpm/models/ema.py:30
↓ 1 callersMethodenable_attention_slicing
r""" Enable sliced attention computation. When this option is enabled, the attention module splits the input tensor in slices to compu
DeepCache/sdxl/pipeline_utils.py:1783
↓ 1 callersMethodenable_attention_slicing
r""" Enable sliced attention computation. When this option is enabled, the attention module splits the input tensor in slices to compu
DeepCache/svd/pipeline_utils.py:2050
↓ 1 callersMethodenable_attention_slicing
r""" Enable sliced attention computation. When this option is enabled, the attention module splits the input tensor in slices to compu
DeepCache/sd/pipeline_utils.py:1783
↓ 1 callersMethodenable_model_cpu_offload
r""" Offloads all models to CPU using accelerate, reducing memory usage with a low impact on performance. Compared to `enable_sequenti
DeepCache/svd/pipeline_utils.py:1392
↓ 1 callersMethodencode
(self, text)
experiments/ldm/ldm/modules/encoders/modules.py:101
↓ 1 callersMethodencode
(self, x)
experiments/ldm/ldm/models/autoencoder.py:324
↓ 1 callersMethodencode_prompt
r""" Encodes the prompt into text encoder hidden states. Args: prompt (`str` or `List[str]`, *optional*):
DeepCache/sdxl/pipeline_stable_diffusion_xl.py:215
↓ 1 callersMethodencode_prompt
r""" Encodes the prompt into text encoder hidden states. Args: prompt (`str` or `List[str]`, *optional*):
DeepCache/sdxl/pipeline_stable_diffusion_xl_img2img.py:223
↓ 1 callersMethodencode_with_pretrained
(self,x)
experiments/ldm/ldm/modules/diffusionmodules/model.py:816
↓ 1 callersFunctionequals
(val)
experiments/ldm/ldm/modules/x_transformer.py:76
↓ 1 callersMethodextra_repr
(self)
experiments/ddpm/ddpm/datasets/vision.py:54
↓ 1 callersMethodforward_loop
Perform DDPM forward process from time t0 to t1. This is the same as adding noise with corresponding variance. Args: x_t
DeepCache/sd/pipeline_text_to_video_zero.py:363
↓ 1 callersFunctionfspecial_gaussian
(hsize, sigma)
experiments/ldm/ldm/modules/image_degradation/bsrgan_light.py:187
↓ 1 callersFunctionfspecial_gaussian
(hsize, sigma)
experiments/ldm/ldm/modules/image_degradation/bsrgan.py:187
↓ 1 callersFunctionfspecial_laplacian
(alpha)
experiments/ldm/ldm/modules/image_degradation/bsrgan_light.py:201
↓ 1 callersFunctionfspecial_laplacian
(alpha)
experiments/ldm/ldm/modules/image_degradation/bsrgan.py:201
↓ 1 callersFunctionget_activations
Calculates the activations of the pool_3 layer for all images. Params: -- files : List of image files paths -- model : Instan
experiments/ddpm/fid.py:100
↓ 1 callersMethodget_base
(self)
experiments/ldm/ldm/data/imagenet.py:379
↓ 1 callersFunctionget_beta_schedule
(beta_schedule, *, beta_start, beta_end, num_diffusion_timesteps)
experiments/ddpm/ddpm/runners/diffusion.py:28
↓ 1 callersFunctionget_beta_schedule
(beta_schedule, *, beta_start, beta_end, num_diffusion_timesteps)
experiments/ddpm/ddpm/runners/deepcache.py:30
↓ 1 callersFunctionget_class_obj_and_candidates
Simple helper method to retrieve class object of module as well as potential parent class objects
DeepCache/sdxl/pipeline_utils.py:308
← previousnext →201–300 of 1,211, ranked by callers