MCPcopy Create free account

hub / github.com/horseee/DeepCache / functions

Functions1,211 in github.com/horseee/DeepCache

Methodmodule_is_sequentially_offloaded
(module)
DeepCache/svd/pipeline_utils.py:819
Methodmodule_is_sequentially_offloaded
(module)
DeepCache/sd/pipeline_utils.py:688
Functionmultihead_attention_counter_hook
(multihead_attention_module, input, output)
DeepCache/flops.py:205
Methodname_or_path
(self)
DeepCache/sdxl/pipeline_utils.py:1206
Methodname_or_path
(self)
DeepCache/svd/pipeline_utils.py:1367
Methodname_or_path
(self)
DeepCache/sd/pipeline_utils.py:1206
Methodnll
(self, sample, dims=[1,2,3])
experiments/ldm/ldm/modules/distributions/distributions.py:53
Functionnoise_deepcache_loss
(model, x0: torch.Tensor, t: torch.LongTensor,
experiments/ddpm/ddpm/functions/losses.py:17
Functionnoise_estimation_loss
(model, x0: torch.Tensor, t: torch.LongTensor,
experiments/ddpm/ddpm/functions/losses.py:4
Methodnum_timesteps
(self)
DeepCache/svd/pipeline_stable_video_diffusion.py:295
Methodnumpy_to_pil
Convert a NumPy image or a batch of images to a PIL image.
DeepCache/sdxl/pipeline_utils.py:1698
Methodnumpy_to_pil
Convert a NumPy image or a batch of images to a PIL image.
DeepCache/svd/pipeline_utils.py:1965
Methodon_keyboard_interrupt
(self, trainer, pl_module)
experiments/ldm/main.py:251
Methodon_pretrain_routine_start
(self, trainer, pl_module)
experiments/ldm/main.py:257
Methodon_train_batch_end
(self, trainer, pl_module, outputs, batch, batch_idx, dataloader_idx)
experiments/ldm/main.py:383
Methodon_train_batch_end
(self, *args, **kwargs)
experiments/ldm/ldm/models/autoencoder.py:92
Methodon_train_batch_end
(self, *args, **kwargs)
experiments/ldm/ldm/models/diffusion/ddpm.py:366
Methodon_train_batch_start
(self, batch, batch_idx, dataloader_idx)
experiments/ldm/ldm/models/diffusion/ddpm.py:478
Methodon_train_epoch_end
(self, trainer, pl_module, outputs)
experiments/ldm/main.py:403
Methodon_train_epoch_start
(self, trainer, pl_module)
experiments/ldm/main.py:397
Methodon_train_epoch_start
(self)
experiments/ldm/ldm/models/diffusion/classifier.py:157
Methodon_validation_batch_end
(self, trainer, pl_module, outputs, batch, batch_idx, dataloader_idx)
experiments/ldm/main.py:387
Methodon_validation_start
(self)
experiments/ldm/ldm/models/diffusion/classifier.py:206
Methodpack_weights
(layers, prefix)
DeepCache/sdxl/pipeline_stable_diffusion_xl.py:1003
Methodpack_weights
(layers, prefix)
DeepCache/sdxl/pipeline_stable_diffusion_xl_img2img.py:1153
Functionpick_and_pop
(keys, d)
experiments/ldm/ldm/modules/x_transformer.py:88
Functionpool_flops_counter_hook
(module, input, output)
DeepCache/flops.py:79
Functionread_img
(path)
experiments/ldm/ldm/modules/image_degradation/utils_image.py:220
Functionrearrange_0
(tensor, f)
DeepCache/sd/pipeline_text_to_video_zero.py:58
Functionrearrange_1
(tensor)
DeepCache/sd/pipeline_text_to_video_zero.py:64
Methodregister_schedule
(self, given_betas=None, beta_schedule="linear", timesteps=1000,
experiments/ldm/ldm/models/diffusion/ddpm.py:493
Functionrelu_flops_counter_hook
(module, input, output)
DeepCache/flops.py:66
Functionremove_flops_counter_hook_function
(module)
DeepCache/flops.py:542
Functionremove_flops_counter_variables
(module)
DeepCache/flops.py:549
Methodrescale_bbox
(bbox)
experiments/ldm/ldm/models/diffusion/ddpm.py:882
Functionreset_flops_count
A method that will be available after add_flops_counting_methods() is called on a desired net object. Resets statistics computed so far.
DeepCache/flops.py:481
Functionrestore_random_status
(rng_status)
experiments/ddpm/ddpm/utils/tools.py:20
Functionrgb2ycbcr
same as matlab rgb2ycbcr only_y: only return Y channel Input: uint8, [0, 255] float, [0, 1]
experiments/ldm/ldm/modules/image_degradation/utils_image.py:529
Functionrnn_cell_flops_counter_hook
(rnn_cell_module, input, output)
DeepCache/flops.py:188
Functionrnn_flops_counter_hook
Takes into account batch goes at first position, contrary to pytorch common rule (but actually it doesn't matter). If sigmoid and tanh ar
DeepCache/flops.py:155
Functionrun
(model, selected_path, task, custom_steps, resize_enabled=False, classifier_ckpt=None, global_step=None)
experiments/ldm/notebook_helpers.py:131
Methodsample
(self)
experiments/ddpm/ddpm/runners/deepcache.py:99
Methodsample
(self)
experiments/ldm/ldm/modules/distributions/distributions.py:6
Methodsample
(self)
experiments/ldm/ldm/modules/distributions/distributions.py:35
Methodsample
(self, S, batch_size, shape, conditioning=None,
experiments/ldm/ldm/models/diffusion/plms.py:58
Functionsample_from_quad
(total_numbers, n_samples, pow=1.2)
DeepCache/sd/pipeline_stable_diffusion.py:72
Functionsample_from_quad
(total_numbers, n_samples, pow=1.2)
DeepCache/sd/pipeline_text_to_video_zero.py:32
Functionsample_from_quad
(total_numbers, n_samples, pow=1.2)
experiments/ddpm/ddpm/functions/deepcache_denoising.py:33
Functionsample_gaussian_centered
(n=1000, sample_size=100, std_dev=100)
DeepCache/sd/pipeline_stable_diffusion.py:59
Functionsample_gaussian_centered
(n=1000, sample_size=100, std_dev=100)
DeepCache/sd/pipeline_text_to_video_zero.py:19
Functionsample_gaussian_centered
(n=1000, sample_size=100, std_dev=100, shift=0)
experiments/ddpm/ddpm/functions/deepcache_denoising.py:6
Functionsave_and_set_random_status
(seed=1234)
experiments/ddpm/ddpm/utils/tools.py:15
Methodsave_lora_weights
( self, save_directory: Union[str, os.PathLike], unet_lora_layers: Dict[str, Union[tor
DeepCache/sdxl/pipeline_stable_diffusion_xl.py:990
Methodsave_lora_weights
( self, save_directory: Union[str, os.PathLike], unet_lora_layers: Dict[str, Union[tor
DeepCache/sdxl/pipeline_stable_diffusion_xl_img2img.py:1140
Methodsave_pretrained
Save all saveable variables of the pipeline to a directory. A pipeline variable can be saved and loaded if its class implements both
DeepCache/sdxl/pipeline_utils.py:564
Methodsave_pretrained
Save all saveable variables of the pipeline to a directory. A pipeline variable can be saved and loaded if its class implements both
DeepCache/svd/pipeline_utils.py:612
Methodsave_pretrained
Save all saveable variables of the pipeline to a directory. A pipeline variable can be saved and loaded if its class implements both
DeepCache/sd/pipeline_utils.py:565
Functionscale_module
Scale the parameters of a module and return it.
experiments/ldm/ldm/modules/diffusionmodules/util.py:183
Methodschedule
(self, n, **kwargs)
experiments/ldm/ldm/lr_scheduler.py:83
Functionselect_cond_path
(mode)
experiments/ldm/notebook_helpers.py:92
Methodset_default_attn_processor
Disables custom attention processors and sets the default attention implementation.
DeepCache/sdxl/unet_2d_condition.py:655
Methodset_default_attn_processor
Disables custom attention processors and sets the default attention implementation.
DeepCache/svd/unet_spatio_temporal_condition.py:310
Methodset_default_attn_processor
Disables custom attention processors and sets the default attention implementation.
DeepCache/sd/unet_2d_condition.py:655
Methodset_progress_bar_config
(self, **kwargs)
DeepCache/sdxl/pipeline_utils.py:1719
Methodset_progress_bar_config
(self, **kwargs)
DeepCache/svd/pipeline_utils.py:1986
Methodset_progress_bar_config
(self, **kwargs)
DeepCache/sd/pipeline_utils.py:1719
Methodsetup_image_folder
(self, image_folder)
experiments/ddpm/ddpm/utils/logging.py:119
Methodshared_step
(self, batch, **kwargs)
experiments/ldm/ldm/models/diffusion/ddpm.py:865
Functionshave
(img_in, border=0)
experiments/ldm/ldm/modules/image_degradation/utils_image.py:510
Functionsingle2tensor3
(img)
experiments/ldm/ldm/modules/image_degradation/utils_image.py:302
Functionsingle2tensor4
(img)
experiments/ldm/ldm/modules/image_degradation/utils_image.py:307
Functionsingle2tensor5
(img)
experiments/ldm/ldm/modules/image_degradation/utils_image.py:329
Functionsingle2uint
(img)
experiments/ldm/ldm/modules/image_degradation/utils_image.py:254
Functionsingle2uint16
(img)
experiments/ldm/ldm/modules/image_degradation/utils_image.py:264
Functionsingle32tensor5
(img)
experiments/ldm/ldm/modules/image_degradation/utils_image.py:333
Functionsingle42tensor4
(img)
experiments/ldm/ldm/modules/image_degradation/utils_image.py:337
Methodslerp
(z1, z2, alpha)
experiments/ddpm/ddpm/runners/diffusion.py:355
Functionsplit_imageset
split the large images from original_dataroot into small overlapped images with size (p_size)x(p_size), and save them into taget_dataroot; on
experiments/ldm/ldm/modules/image_degradation/utils_image.py:125
Functionsrmd_degradation
blur + bicubic downsampling Args: x: HxWxC image, [0, 1] k: hxw, double sf: down-scale factor Return: downsam
experiments/ldm/ldm/modules/image_degradation/bsrgan_light.py:240
Functionsrmd_degradation
blur + bicubic downsampling Args: x: HxWxC image, [0, 1] k: hxw, double sf: down-scale factor Return: downsam
experiments/ldm/ldm/modules/image_degradation/bsrgan.py:240
Functionstart_flops_count
A method that will be available after add_flops_counting_methods() is called on a desired net object. Activates the computation of mean f
DeepCache/flops.py:433
Functionstop_flops_count
A method that will be available after add_flops_counting_methods() is called on a desired net object. Stops computing the mean flops cons
DeepCache/flops.py:469
Functionstr2bool
(v)
experiments/ldm/main.py:25
Functionstring_begins_with
(prefix, str)
experiments/ldm/ldm/modules/x_transformer.py:102
Functionsurf
(Z, cmap='rainbow', figsize=None)
experiments/ldm/ldm/modules/image_degradation/utils_image.py:47
Functiontensor2img
Converts a torch Tensor into an image Numpy array of BGR channel order Input: 4D(B,(3/1),H,W), 3D(C,H,W), or 2D(H,W), any range, RGB channel
experiments/ldm/ldm/modules/image_degradation/utils_image.py:342
Functiontensor2single
(img)
experiments/ldm/ldm/modules/image_degradation/utils_image.py:312
Functiontensor2single3
(img)
experiments/ldm/ldm/modules/image_degradation/utils_image.py:320
Functiontensor2uint
(img)
experiments/ldm/ldm/modules/image_degradation/utils_image.py:289
Functiontimm_multihead_attention_counter_hook
(multihead_attention_module, input, output)
DeepCache/flops.py:263
Functiontorch2hwcuint8
(x, clip=False)
experiments/ddpm/ddpm/runners/diffusion.py:21
Functiontorch2hwcuint8
(x, clip=False)
experiments/ddpm/ddpm/runners/deepcache.py:23
Methodtraining_step
(self, batch, batch_idx, optimizer_idx)
experiments/ldm/ldm/models/autoencoder.py:142
Methodtraining_step
(self, batch, batch_idx, optimizer_idx)
experiments/ldm/ldm/models/autoencoder.py:351
Methodtraining_step
(self, batch, batch_idx)
experiments/ldm/ldm/models/diffusion/classifier.py:198
Methodtraining_step
(self, batch, batch_idx)
experiments/ldm/ldm/models/diffusion/ddpm.py:342
Functionuint162single
(img)
experiments/ldm/ldm/modules/image_degradation/utils_image.py:259
Functionuint2single
(img)
experiments/ldm/ldm/modules/image_degradation/utils_image.py:249
Functionuint2tensor3
(img)
experiments/ldm/ldm/modules/image_degradation/utils_image.py:282
Functionuint2tensor4
(img)
experiments/ldm/ldm/modules/image_degradation/utils_image.py:275
← previousnext →1,101–1,200 of 1,211, ranked by callers