MCPcopy Create free account

hub / github.com/horseee/DeepCache / functions

Functions1,211 in github.com/horseee/DeepCache

↓ 1 callersFunctionget_class_obj_and_candidates
Simple helper method to retrieve class object of module as well as potential parent class objects
DeepCache/svd/pipeline_utils.py:319
↓ 1 callersFunctionget_class_obj_and_candidates
Simple helper method to retrieve class object of module as well as potential parent class objects
DeepCache/sd/pipeline_utils.py:308
↓ 1 callersFunctionget_cond
(mode, selected_path)
experiments/ldm/notebook_helpers.py:107
↓ 1 callersFunctionget_dataset
(args, config)
experiments/ddpm/ddpm/datasets/__init__.py:30
↓ 1 callersFunctionget_down_block
( down_block_type, num_layers, in_channels, out_channels, temb_channels, add_downsampl
DeepCache/sdxl/unet_2d_blocks.py:38
↓ 1 callersFunctionget_down_block
( down_block_type: str, num_layers: int, in_channels: int, out_channels: int, temb_channel
DeepCache/svd/unet_3d_blocks.py:38
↓ 1 callersFunctionget_down_block
( down_block_type, num_layers, in_channels, out_channels, temb_channels, add_downsampl
DeepCache/sd/unet_2d_blocks.py:38
↓ 1 callersFunctionget_image_paths
(dataroot)
experiments/ldm/ldm/modules/image_degradation/utils_image.py:67
↓ 1 callersFunctionget_model
()
experiments/ldm/sample_ddp_deepcache.py:37
↓ 1 callersFunctionget_obj_from_str
(string, reload=False)
experiments/ldm/ldm/util.py:88
↓ 1 callersFunctionget_optimizer
(config, parameters)
experiments/ddpm/ddpm/functions/__init__.py:4
↓ 1 callersFunctionget_parser
(**parser_kwargs)
experiments/ldm/main.py:24
↓ 1 callersFunctionget_parser
()
experiments/ldm/scripts/sample_diffusion.py:162
↓ 1 callersFunctionget_timestamp
()
experiments/ldm/ldm/modules/image_degradation/utils_image.py:33
↓ 1 callersFunctionget_timestep_embedding
This matches the implementation in Denoising Diffusion Probabilistic Models: From Fairseq. Build sinusoidal embeddings. This matches
experiments/ddpm/ddpm/models/diffusion.py:6
↓ 1 callersFunctionget_timestep_embedding
This matches the implementation in Denoising Diffusion Probabilistic Models: From Fairseq. Build sinusoidal embeddings. This matches
experiments/ddpm/ddpm/models/deepcache_diffusion.py:7
↓ 1 callersFunctionget_timestep_embedding
This matches the implementation in Denoising Diffusion Probabilistic Models: From Fairseq. Build sinusoidal embeddings. This matches
experiments/ldm/ldm/modules/diffusionmodules/model.py:12
↓ 1 callersMethodget_timesteps
(self, num_inference_steps, strength, device, denoising_start=None)
DeepCache/sdxl/pipeline_stable_diffusion_xl_img2img.py:503
↓ 1 callersFunctionget_up_block
( up_block_type, num_layers, in_channels, out_channels, prev_output_channel, temb_chan
DeepCache/sdxl/unet_2d_blocks.py:247
↓ 1 callersFunctionget_up_block
( up_block_type: str, num_layers: int, in_channels: int, out_channels: int, prev_output_ch
DeepCache/svd/unet_3d_blocks.py:166
↓ 1 callersFunctionget_up_block
( up_block_type, num_layers, in_channels, out_channels, prev_output_channel, temb_chan
DeepCache/sd/unet_2d_blocks.py:247
↓ 1 callersMethodget_x_noisy
(self, x, t, noise=None)
experiments/ldm/ldm/models/diffusion/classifier.py:110
↓ 1 callersFunctiongm_blur_kernel
(mean, cov, size=15)
experiments/ldm/ldm/modules/image_degradation/bsrgan_light.py:86
↓ 1 callersFunctiongm_blur_kernel
(mean, cov, size=15)
experiments/ldm/ldm/modules/image_degradation/bsrgan.py:86
↓ 1 callersFunctionimread_uint
(path, n_channels=3)
experiments/ldm/ldm/modules/image_degradation/utils_image.py:185
↓ 1 callersFunctionimssave
imgs: list, N images of size WxHxC
experiments/ldm/ldm/modules/image_degradation/utils_image.py:112
↓ 1 callersMethodinit_
(self)
experiments/ldm/ldm/modules/x_transformer.py:31
↓ 1 callersMethodinit_
(self)
experiments/ldm/ldm/modules/x_transformer.py:595
↓ 1 callersMethodinit_from_ckpt
(self, path, ignore_keys=list())
experiments/ldm/ldm/models/autoencoder.py:78
↓ 1 callersMethodinit_from_ckpt
(self, path, ignore_keys=list())
experiments/ldm/ldm/models/autoencoder.py:313
↓ 1 callersMethodinit_from_ckpt
(self, path, ignore_keys=list(), only_model=False)
experiments/ldm/ldm/models/diffusion/classifier.py:70
↓ 1 callersMethodinstantiate_cond_stage
(self, config)
experiments/ldm/ldm/models/diffusion/ddpm.py:509
↓ 1 callersMethodinstantiate_first_stage
(self, config)
experiments/ldm/ldm/models/diffusion/ddpm.py:502
↓ 1 callersMethodinstantiate_pretrained
(self, config)
experiments/ldm/ldm/modules/diffusionmodules/model.py:807
↓ 1 callersFunctionis_image_file
(filename)
experiments/ldm/ldm/modules/image_degradation/utils_image.py:29
↓ 1 callersMethodis_skip_step
(self, block_i, layer_i, blocktype = "down")
DeepCache/extension/deepcache.py:24
↓ 1 callersFunctionisimage
(x)
experiments/ldm/ldm/util.py:47
↓ 1 callersMethodkl
(self, other=None)
experiments/ldm/ldm/modules/distributions/distributions.py:39
↓ 1 callersMethodload_classifier
(self, ckpt_path, pool)
experiments/ldm/ldm/models/diffusion/classifier.py:95
↓ 1 callersMethodload_database
(self)
experiments/ldm/scripts/knn2img.py:104
↓ 1 callersFunctionload_datapool
(dpath)
experiments/ldm/scripts/train_searcher.py:28
↓ 1 callersMethodload_diffusion
(self)
experiments/ldm/ldm/models/diffusion/classifier.py:88
↓ 1 callersFunctionload_model
(config, ckpt, gpu, eval_mode)
experiments/ldm/scripts/sample_diffusion.py:228
↓ 1 callersFunctionload_model_from_config
(config, ckpt)
experiments/ldm/notebook_helpers.py:40
↓ 1 callersFunctionload_model_from_config
(config, ckpt)
experiments/ldm/sample_ddp_deepcache.py:26
↓ 1 callersFunctionload_model_from_config
(config, sd)
experiments/ldm/scripts/sample_diffusion.py:220
↓ 1 callersFunctionload_model_from_config
(config, ckpt, verbose=False)
experiments/ldm/scripts/txt2img.py:15
↓ 1 callersFunctionload_model_from_config
(config, ckpt, verbose=False)
experiments/ldm/scripts/knn2img.py:41
↓ 1 callersMethodload_retriever
(self, version='ViT-L/14', )
experiments/ldm/scripts/knn2img.py:123
↓ 1 callersMethodload_searcher
(self)
experiments/ldm/scripts/knn2img.py:130
↓ 1 callersFunctionload_single_file
(saved_embeddings)
experiments/ldm/scripts/train_searcher.py:31
↓ 1 callersMethodload_single_file
(self, saved_embeddings)
experiments/ldm/scripts/knn2img.py:91
↓ 1 callersFunctionload_sub_model
Helper method to load the module `name` from `library_name` and `class_name`
DeepCache/sdxl/pipeline_utils.py:370
↓ 1 callersFunctionload_sub_model
Helper method to load the module `name` from `library_name` and `class_name`
DeepCache/svd/pipeline_utils.py:411
↓ 1 callersFunctionload_sub_model
Helper method to load the module `name` from `library_name` and `class_name`
DeepCache/sd/pipeline_utils.py:371
↓ 1 callersMethodlog_images
(self, batch, only_inputs=False, plot_ema=False, **kwargs)
experiments/ldm/ldm/models/autoencoder.py:233
↓ 1 callersMethodlog_images
(self, batch, N=8, n_row=2, sample=True, return_keys=None, **kwargs)
experiments/ldm/ldm/models/diffusion/ddpm.py:378
↓ 1 callersMethodlog_local
(self, save_dir, split, images, global_step, current_epoch, batch_idx)
experiments/ldm/main.py:321
↓ 1 callersFunctionlogit_transform
(image, lam=1e-6)
experiments/ddpm/ddpm/datasets/__init__.py:184
↓ 1 callersFunctionmain
(args)
experiments/generate.py:20
↓ 1 callersFunctionmain
()
experiments/ddpm/ddim.py:121
↓ 1 callersFunctionmain
()
experiments/ddpm/fid.py:325
↓ 1 callersFunctionmain
()
experiments/ldm/sample_ddp_deepcache.py:42
↓ 1 callersFunctionmake_batch
(image, mask, device)
experiments/ldm/scripts/inpaint.py:11
↓ 1 callersFunctionmake_beta_schedule
(schedule, n_timestep, linear_start=1e-4, linear_end=2e-2, cosine_s=8e-3)
experiments/ldm/ldm/modules/diffusionmodules/util.py:21
↓ 1 callersMethodmake_cond_schedule
(self, )
experiments/ldm/ldm/models/diffusion/ddpm.py:471
↓ 1 callersFunctionmake_convolutional_sample
(batch, model, mode="vanilla", custom_steps=None, eta=1.0, swap_mode=False, masked=False,
experiments/ldm/notebook_helpers.py:208
↓ 1 callersFunctionmake_convolutional_sample
(model, batch_size, vanilla=False, custom_steps=None, eta=1.0,)
experiments/ldm/scripts/sample_diffusion.py:79
↓ 1 callersMethodmake_schedule
(self, ddim_num_steps, ddim_discretize="uniform", ddim_eta=0., verbose=True)
experiments/ldm/ldm/models/diffusion/ddim.py:24
↓ 1 callersMethodmake_schedule
(self, ddim_num_steps, ddim_discretize="uniform", ddim_eta=0., verbose=True)
experiments/ldm/ldm/models/diffusion/plms.py:24
↓ 1 callersFunctionmax_neg_value
(tensor)
experiments/ldm/ldm/modules/x_transformer.py:82
↓ 1 callersMethodmaybe_free_model_hooks
r""" Function that offloads all components, removes all model hooks that were added when using `enable_model_cpu_offload` and then app
DeepCache/svd/pipeline_utils.py:1462
↓ 1 callersFunctionmaybe_raise_or_warn
Simple helper method to raise or warn in case incorrect module has been passed
DeepCache/sdxl/pipeline_utils.py:276
↓ 1 callersFunctionmaybe_raise_or_warn
Simple helper method to raise or warn in case incorrect module has been passed
DeepCache/svd/pipeline_utils.py:288
↓ 1 callersFunctionmaybe_raise_or_warn
Simple helper method to raise or warn in case incorrect module has been passed
DeepCache/sd/pipeline_utils.py:276
↓ 1 callersFunctionmean_flat
Take the mean over all non-batch dimensions.
experiments/ldm/ldm/modules/diffusionmodules/util.py:192
↓ 1 callersFunctionmeasure_perplexity
(predicted_indices, n_embed)
experiments/ldm/ldm/modules/losses/vqperceptual.py:26
↓ 1 callersFunctionmelk
(*args, **kwargs)
experiments/ldm/main.py:697
↓ 1 callersFunctionnondefault_trainer_args
(opt)
experiments/ldm/main.py:126
↓ 1 callersFunctionnormal_kl
source: https://github.com/openai/guided-diffusion/blob/27c20a8fab9cb472df5d6bdd6c8d11c8f430b924/guided_diffusion/losses.py#L12 Compute the K
experiments/ldm/ldm/modules/distributions/distributions.py:65
↓ 1 callersFunctionnot_equals
(val)
experiments/ldm/ldm/modules/x_transformer.py:70
↓ 1 callersMethodnumpy_to_pil
Convert a NumPy image or a batch of images to a PIL image.
DeepCache/sd/pipeline_utils.py:1698
↓ 1 callersMethodp_losses
(self, x_start, t, noise=None)
experiments/ldm/ldm/models/diffusion/ddpm.py:294
↓ 1 callersMethodp_losses
(self, x_start, cond, t, noise=None)
experiments/ldm/ldm/models/diffusion/ddpm.py:1012
↓ 1 callersMethodp_mean_variance
(self, x, t, clip_denoised: bool)
experiments/ldm/ldm/models/diffusion/ddpm.py:231
↓ 1 callersMethodp_mean_variance
(self, x, c, t, clip_denoised: bool, return_codebook_ids=False, quantize_denoised=False,
experiments/ldm/ldm/models/diffusion/ddpm.py:1047
↓ 1 callersMethodp_sample
(self, x, t, clip_denoised=True, repeat_noise=False)
experiments/ldm/ldm/models/diffusion/ddpm.py:244
↓ 1 callersMethodp_sample_ddim
(self, x, c, t, index, repeat_noise=False, use_original_steps=False, quantize_denoised=False,
experiments/ldm/ldm/models/diffusion/ddim.py:172
↓ 1 callersMethodp_sample_loop
(self, cond, shape, return_intermediates=False, x_T=None, verbose=True, callback=None, t
experiments/ldm/ldm/models/diffusion/ddpm.py:1166
↓ 1 callersMethodp_sample_plms
(self, x, c, t, index, repeat_noise=False, use_original_steps=False, quantize_denoised=False,
experiments/ldm/ldm/models/diffusion/plms.py:173
↓ 1 callersFunctionparse_args_and_config
()
experiments/ddpm/ddim.py:28
↓ 1 callersFunctionpatches_from_image
(img, p_size=512, p_overlap=64, p_max=800)
experiments/ldm/ldm/modules/image_degradation/utils_image.py:93
↓ 1 callersMethodplms_sampling
(self, cond, shape, x_T=None, ddim_use_original_steps=False, callb
experiments/ldm/ldm/models/diffusion/plms.py:115
↓ 1 callersMethodprepare_data
(self)
experiments/ldm/main.py:185
↓ 1 callersMethodprepare_extra_step_kwargs
(self, generator, eta)
DeepCache/sdxl/pipeline_stable_diffusion_xl.py:411
↓ 1 callersMethodprepare_extra_step_kwargs
(self, generator, eta)
DeepCache/sdxl/pipeline_stable_diffusion_xl_img2img.py:419
↓ 1 callersMethodprepare_latents
(self, batch_size, num_channels_latents, height, width, dtype, device, generator, latents=None)
DeepCache/sdxl/pipeline_stable_diffusion_xl.py:502
↓ 1 callersMethodprepare_latents
( self, image, timestep, batch_size, num_images_per_prompt, dtype, device, generator=None, add_noise=T
DeepCache/sdxl/pipeline_stable_diffusion_xl_img2img.py:527
↓ 1 callersMethodprepare_latents
( self, batch_size, num_frames, num_channels_latents, height,
DeepCache/svd/pipeline_stable_video_diffusion.py:249
↓ 1 callersMethodprogress_bar
(self, iterable=None, total=None)
DeepCache/svd/pipeline_utils.py:1971
← previousnext →301–400 of 1,211, ranked by callers