MCPcopy Create free account

hub / github.com/Doubiiu/ToonCrafter / functions

Functions475 in github.com/Doubiiu/ToonCrafter

↓ 46 callersMethodregister_buffer
(self, name, attr)
lvdm/models/samplers/ddim.py:18
↓ 22 callersFunctionextract_into_tensor
(a, t, x_shape)
lvdm/common.py:25
↓ 21 callersFunctioninstantiate_from_config
(config)
utils/utils.py:27
↓ 17 callersFunctionexists
(val)
lvdm/modules/x_transformer.py:53
↓ 15 callersMethod__init__
(self, *, ch, out_ch, ch_mult=(1,2,4,8), num_res_blocks, attn_resolutions, dropout=0.0, resam
lvdm/modules/networks/ae_modules.py:215
↓ 13 callersMethod__init__
( self, *, ch, out_ch, ch_mult=(1, 2, 4, 8), num_res_blo
lvdm/models/autoencoder_dualref.py:372
↓ 13 callersMethodregister_buffer
(self, name, attr)
lvdm/models/samplers/ddim_multiplecond.py:18
↓ 12 callersMethod__init__
(self, value, fn)
lvdm/modules/x_transformer.py:117
↓ 12 callersFunctioncheckpoint
Evaluate a function without caching intermediate activations, allowing for reduced memory at the expense of extra compute in the backward pas
lvdm/common.py:81
↓ 12 callersMethodget_learned_conditioning
(self, c)
lvdm/models/ddpm3d.py:599
↓ 11 callersFunctionconv_nd
Create a 1D, 2D, or 3D convolution module.
lvdm/basics.py:36
↓ 11 callersFunctiondefault
(val, d)
lvdm/common.py:37
↓ 10 callersMethod__init__
(self, dim_in, dim_out)
lvdm/modules/attention_svd.py:88
↓ 10 callersFunctionnonlinearity
(x)
lvdm/modules/networks/ae_modules.py:12
↓ 9 callersFunctionNormalize
(in_channels, num_groups=32)
lvdm/modules/networks/ae_modules.py:17
↓ 9 callersMethodapply_model
(self, x_noisy, t, cond, **kwargs)
lvdm/models/ddpm3d.py:735
↓ 9 callersMethoddecode_first_stage
(self, z, **kwargs)
lvdm/models/ddpm3d.py:682
↓ 8 callersMethod__init__
(self, dim_in, dim_out)
lvdm/modules/attention.py:416
↓ 8 callersMethod__init__
(self, embed_dim, n_classes=1000, key='class', ucg_rate=0.1)
lvdm/modules/encoders/condition.py:25
↓ 7 callersMethodencode
(self, x, return_hidden_states=False, **kwargs)
lvdm/models/autoencoder.py:100
↓ 7 callersMethodget_input
(self, batch, k)
lvdm/models/ddpm3d.py:369
↓ 7 callersFunctionmake_attn
(in_channels, attn_type="vanilla")
lvdm/modules/networks/ae_modules.py:82
↓ 7 callersMethodq_sample
(self, x_start, t, noise=None)
lvdm/models/ddpm3d.py:306
↓ 7 callersMethodsample
(self, batch_size=16, return_intermediates=False)
lvdm/models/ddpm3d.py:300
↓ 7 callersFunctionzero_module
Zero out the parameters of a module and return it.
lvdm/basics.py:19
↓ 6 callersFunctionNormalize
(in_channels, num_groups=32)
lvdm/models/autoencoder_dualref.py:29
↓ 6 callersFunctiondefault
(val, d)
lvdm/modules/x_transformer.py:57
↓ 6 callersMethodforward
(self, z, ref_context=None, **kwargs)
lvdm/models/autoencoder_dualref.py:489
↓ 5 callersMethoddecode
(self, z, **kwargs)
lvdm/models/autoencoder.py:112
↓ 5 callersFunctiondefault
(val, d)
lvdm/modules/attention_svd.py:69
↓ 5 callersMethodencode_first_stage
(self, x)
lvdm/models/ddpm3d.py:622
↓ 5 callersMethodget_first_stage_encoding
(self, encoder_posterior, noise=None)
lvdm/models/ddpm3d.py:612
↓ 5 callersFunctionlinear
Create a linear module.
lvdm/basics.py:49
↓ 5 callersFunctionnormalization
Make a standard normalization layer. :param channels: number of input channels. :return: an nn.Module for normalization.
lvdm/basics.py:81
↓ 5 callersFunctionpartialclass
(cls, *args, **kwargs)
lvdm/models/autoencoder_dualref.py:839
↓ 4 callersMethod__init__
(self, channels, use_conv, dims=2, out_channels=None, padding=1)
lvdm/modules/networks/openaimodel3d.py:89
↓ 4 callersMethodema_scope
(self, context=None)
lvdm/models/ddpm3d.py:190
↓ 4 callersFunctionexists
(val)
lvdm/common.py:42
↓ 4 callersFunctionexists
(val)
lvdm/modules/attention_svd.py:61
↓ 4 callersMethodget_last_layer
(self)
lvdm/models/autoencoder.py:190
↓ 4 callersMethodmode
(self)
lvdm/distributions.py:20
↓ 4 callersFunctionnoise_like
(shape, device, repeat=False)
lvdm/common.py:31
↓ 4 callersFunctionnonlinearity
(x)
lvdm/models/autoencoder_dualref.py:24
↓ 4 callersFunctiontimestep_embedding
Create sinusoidal timestep embeddings. :param timesteps: a 1-D Tensor of N indices, one per batch element. These may be
lvdm/models/utils_diffusion.py:8
↓ 3 callersMethod__init__
(self, unet_config, timesteps=1000, beta_schedule="linear",
lvdm/models/ddpm3d.py:43
↓ 3 callersMethodattention
(self, h_: torch.Tensor)
lvdm/models/autoencoder_dualref.py:121
↓ 3 callersMethodencode
(self, *args, **kwargs)
lvdm/modules/encoders/condition.py:15
↓ 3 callersMethodget_input
(self, batch, k)
lvdm/models/autoencoder.py:134
↓ 3 callersMethodget_loss
(self, pred, target, mean=True)
lvdm/models/ddpm3d.py:317
↓ 3 callersMethodregister_schedule
(self, given_betas=None, beta_schedule="linear", timesteps=1000, linear_start=1e-4,
lvdm/models/ddpm3d.py:124
↓ 3 callersFunctionreshape_tensor
(x, heads)
lvdm/modules/encoders/resampler.py:37
↓ 3 callersMethodshared_step
(self, batch)
lvdm/models/ddpm3d.py:379
↓ 2 callersFunctionNormalize
(in_channels)
lvdm/modules/attention_svd.py:125
↓ 2 callersMethod__init__
( self, dim=1024, depth=8, dim_head=64, heads=16, num_qu
lvdm/modules/encoders/resampler.py:97
↓ 2 callersMethod__init__
(self, ddconfig, lossconfig, embed_dim, ck
lvdm/models/autoencoder.py:14
↓ 2 callersMethod_get_denoise_row_from_list
(self, samples, desc='')
lvdm/models/ddpm3d.py:812
↓ 2 callersMethod_get_rows_from_list
(self, samples)
lvdm/models/ddpm3d.py:412
↓ 2 callersMethod_make_attn
(self)
lvdm/models/autoencoder_dualref.py:477
↓ 2 callersMethod_make_resblock
(self)
lvdm/models/autoencoder_dualref.py:480
↓ 2 callersFunctionalways
(val)
lvdm/modules/x_transformer.py:63
↓ 2 callersFunctionbatch_ddim_sampling
(model, cond, noise_shape, n_samples=1, ddim_steps=50, ddim_eta=1.0,\ cfg_scale=1.0,
scripts/evaluation/funcs.py:14
↓ 2 callersFunctioncheck_config_attribute
(config, name)
main/utils_train.py:28
↓ 2 callersFunctioncount_params
(model, verbose=False)
utils/utils.py:8
↓ 2 callersMethoddecode_core
(self, z, **kwargs)
lvdm/models/ddpm3d.py:647
↓ 2 callersFunctionfill_with_black_squares
(video, desired_len: int)
utils/save_video.py:140
↓ 2 callersMethodget_batch_input
(self, batch, random_uncond, return_first_stage_outputs=False, return_original_cond=False)
lvdm/models/ddpm3d.py:690
↓ 2 callersMethodget_batch_input
(self, batch, random_uncond, return_first_stage_outputs=False, return_original_cond=False, return_fs=False, re
lvdm/models/ddpm3d.py:1070
↓ 2 callersFunctionget_filelist
(data_dir, postfixes)
scripts/evaluation/inference.py:19
↓ 2 callersMethodget_v
(self, x, noise, t)
lvdm/models/ddpm3d.py:311
↓ 2 callersFunctiongroup_dict_by_key
(cond, d)
lvdm/modules/x_transformer.py:92
↓ 2 callersFunctiongroupby_prefix_and_trim
(prefix, d)
lvdm/modules/x_transformer.py:109
↓ 2 callersMethodinit_from_ckpt
(self, path, ignore_keys=list(), only_model=False)
lvdm/models/ddpm3d.py:204
↓ 2 callersFunctionload_model_checkpoint
(model, ckpt)
scripts/evaluation/funcs.py:113
↓ 2 callersMethodlog_batch_imgs
generate images, then save and log to tensorboard
main/callbacks.py:58
↓ 2 callersFunctionmake_ddim_sampling_parameters
(alphacums, ddim_timesteps, eta, verbose=True)
lvdm/models/utils_diffusion.py:79
↓ 2 callersFunctionmake_ddim_timesteps
(ddim_discr_method, num_ddim_timesteps, num_ddpm_timesteps, verbose=True)
lvdm/models/utils_diffusion.py:56
↓ 2 callersMethodp_sample_ddim
(self, x, c, t, index, repeat_noise=False, use_original_steps=False, quantize_denoised=False,
lvdm/models/samplers/ddim_multiplecond.py:211
↓ 2 callersMethodp_sample_ddim
(self, x, c, t, index, repeat_noise=False, use_original_steps=False, quantize_denoised=False,
lvdm/models/samplers/ddim.py:206
↓ 2 callersMethodpredict_eps_from_z_and_v
(self, x_t, t, v)
lvdm/models/ddpm3d.py:248
↓ 2 callersMethodpredict_start_from_noise
(self, x_t, t, noise)
lvdm/models/ddpm3d.py:234
↓ 2 callersMethodpredict_start_from_z_and_v
(self, x_t, t, v)
lvdm/models/ddpm3d.py:240
↓ 2 callersMethodq_posterior
(self, x_start, x_t, t)
lvdm/models/ddpm3d.py:254
↓ 2 callersMethodquantize
(self, x, *args, **kwargs)
lvdm/models/autoencoder.py:229
↓ 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
lvdm/models/utils_diffusion.py:147
↓ 2 callersMethodsample
(self, S, batch_size, shape, conditioning=None,
lvdm/models/samplers/ddim.py:60
↓ 2 callersMethodsample_log
(self, cond, batch_size, ddim, ddim_steps, **kwargs)
lvdm/models/ddpm3d.py:1004
↓ 2 callersFunctionsave_videos
(batch_tensors, savedir, filenames, fps=10)
scripts/evaluation/funcs.py:219
↓ 2 callersMethodto_rgb
(self, x)
lvdm/models/autoencoder.py:210
↓ 2 callersFunctionzero_module
Zero out the parameters of a module and return it.
lvdm/modules/attention_svd.py:116
↓ 1 callersFunctionFeedForward
(dim, mult=4)
lvdm/modules/encoders/resampler.py:27
↓ 1 callersMethod__init__
(self, dataset)
main/utils_data.py:34
↓ 1 callersMethod__len__
(self)
lvdm/data/base.py:18
↓ 1 callersMethod_forward
( self, x, context=None, additional_tokens=None, n_times_crossframe_attn_in_self=0 )
lvdm/modules/attention_svd.py:551
↓ 1 callersMethod_forward
( self, x, context=None, mask=None, )
lvdm/models/autoencoder_dualref.py:270
↓ 1 callersMethod_forward
(self, x, context)
lvdm/models/autoencoder_dualref.py:357
↓ 1 callersMethod_forward
(self, x: torch.Tensor, emb: torch.Tensor)
lvdm/models/autoencoder_dualref.py:672
↓ 1 callersMethod_forward
(self, x, context=None, timesteps=None)
lvdm/models/autoencoder_dualref.py:799
↓ 1 callersMethod_get_video_path
(self, sample)
lvdm/data/webvid.py:83
↓ 1 callersMethod_init_embedder
(self, config, freeze=True)
lvdm/models/ddpm3d.py:1056
↓ 1 callersMethod_init_img_ctx_projector
(self, config, trainable)
lvdm/models/ddpm3d.py:1048
next →1–100 of 475, ranked by callers