MCPcopy Create free account

hub / github.com/TencentARC/AnimeGamer / functions

Functions1,003 in github.com/TencentARC/AnimeGamer

↓ 1 callersMethodinit_decoder
(self, config)
VDM_Decoder/sgm/modules/autoencoding/losses/lpips.py:27
↓ 1 callersMethodinit_from_ckpt
(self, path, ignore_keys=list())
VDM_Decoder/vae_modules/autoencoder.py:75
↓ 1 callersFunctioninitialize_context_parallel
(context_parallel_size)
VDM_Decoder/sgm/util.py:32
↓ 1 callersFunctioninitialize_distributed
Initialize torch.distributed.
VDM_Decoder/arguments.py:185
↓ 1 callersFunctioninject_trainable_lora_extended
( model: nn.Module, target_replace_module: Set[str] = None, rank: int = 4, scale: float = 1.0,
VDM_Decoder/sgm/modules/diffusionmodules/lora.py:286
↓ 1 callersMethodinner_training_step
(self, batch: dict, batch_idx: int, optimizer_idx: int = 0)
VDM_Decoder/vae_modules/autoencoder.py:241
↓ 1 callersFunctionis_context_parallel_initialized
()
VDM_Decoder/vae_modules/utils.py:18
↓ 1 callersFunctionis_dist_avail_and_initialized
()
MLLM/src/train/dist_utils.py:12
↓ 1 callersMethodkl
(self, other=None)
VDM_Decoder/sgm/modules/distributions/distributions.py:42
↓ 1 callersMethodkl
(self, other=None)
VDM_Decoder/vae_modules/regularizers.py:28
↓ 1 callersFunctionlatent_dynamic_thresholding
(x0)
VDM_Decoder/sgm/modules/diffusionmodules/sampling_utils.py:43
↓ 1 callersFunctionlinear_multistep_coeff
(order, t, i, j, epsrel=1e-4)
VDM_Decoder/sgm/modules/diffusionmodules/sampling_utils.py:120
↓ 1 callersMethodlist_avail_args
List all available args of the current model.
VDM_Decoder/sgm/models/sat_ours/base_model.py:264
↓ 1 callersMethodload_from_pretrained
(self, name="vgg_lpips")
VDM_Decoder/sgm/modules/autoencoding/lpips/loss/lpips.py:28
↓ 1 callersFunctionlog
(t, eps=1e-5)
VDM_Decoder/sgm/modules/autoencoding/regularizers/lookup_free_quantization.py:51
↓ 1 callersMethodlog_conditionings
Defines heuristics to log different conditionings. These can be lists of strings (text-to-image), tensors, ints, ...
VDM_Decoder/diffusion_video.py:292
↓ 1 callersMethodlog_images
(self, batch: dict, additional_log_kwargs: Optional[Dict] = None, **kwargs)
VDM_Decoder/vae_modules/autoencoder.py:399
↓ 1 callersFunctionmeasure_perplexity
(predicted_indices: torch.Tensor, num_centroids: int)
VDM_Decoder/sgm/modules/autoencoding/regularizers/base.py:29
↓ 1 callersMethodmode
(self)
VDM_Decoder/sgm/modules/distributions/distributions.py:70
↓ 1 callersMethodmode
(self)
VDM_Decoder/vae_modules/regularizers.py:56
↓ 1 callersFunctionpack_one
(t, pattern)
VDM_Decoder/sgm/modules/autoencoding/regularizers/lookup_free_quantization.py:40
↓ 1 callersFunctionpack_one
(t, pattern)
VDM_Decoder/sgm/modules/autoencoding/regularizers/finite_scalar_quantization.py:30
↓ 1 callersFunctionpair
(t)
VDM_Decoder/sgm/modules/autoencoding/magvit2_pytorch.py:56
↓ 1 callersMethodpossibly_get_ucg_val
(self, embedder: AbstractEmbModel, batch: Dict)
VDM_Decoder/sgm/modules/encoders/modules.py:116
↓ 1 callersMethodpossibly_quantize_c_noise
(self, c_noise)
VDM_Decoder/sgm/modules/diffusionmodules/denoiser.py:19
↓ 1 callersMethodpossibly_quantize_sigma
(self, sigma)
VDM_Decoder/sgm/modules/diffusionmodules/denoiser.py:16
↓ 1 callersMethodpreprocess
(self, x)
VDM_Decoder/sgm/modules/encoders/ip_encoder.py:79
↓ 1 callersFunctionprocess_config_to_args
Fetch args from only --base
VDM_Decoder/arguments.py:262
↓ 1 callersFunctionpytorch_worker_info
Return node and worker info for PyTorch and some distributed environments.
VDM_Decoder/sgm/webds.py:17
↓ 1 callersFunctionpytorch_worker_seed
Compute a distinct, deterministic RNG seed for each worker and node.
VDM_Decoder/sgm/webds.py:45
↓ 1 callersMethodquantize
Quantizes z, returns quantized zhat, same shape as z.
VDM_Decoder/sgm/modules/autoencoding/regularizers/finite_scalar_quantization.py:98
↓ 1 callersFunctionread_from_cli
()
inference_Decoder.py:70
↓ 1 callersFunctionread_from_file
(p, rank=0, world_size=1)
inference_Decoder.py:81
↓ 1 callersMethodremap_to_used
(self, inds)
VDM_Decoder/sgm/modules/autoencoding/vqvae/quantize.py:45
↓ 1 callersMethodremap_to_used
(self, inds)
VDM_Decoder/sgm/modules/autoencoding/vqvae/quantize.py:178
↓ 1 callersMethodrestore
Restore the parameters stored with the `store` method. Useful to validate the model with EMA parameters without affecting the
VDM_Decoder/sgm/modules/ema.py:70
↓ 1 callersMethodreverse
(self, output)
VDM_Decoder/sgm/modules/autoencoding/lpips/util.py:93
↓ 1 callersFunctionrotate_half
(x)
VDM_Decoder/dit_video_concat.py:311
↓ 1 callersFunctionround_ste
Round with straight through gradients.
VDM_Decoder/sgm/modules/autoencoding/regularizers/finite_scalar_quantization.py:41
↓ 1 callersMethodsample
(self)
VDM_Decoder/sgm/modules/distributions/distributions.py:35
↓ 1 callersMethodsample
(self)
VDM_Decoder/vae_modules/regularizers.py:21
↓ 1 callersMethodsampler_step
(self, sigma, next_sigma, denoiser, x, cond, uc=None, s_noise=0.0)
VDM_Decoder/sgm/modules/diffusionmodules/sampling.py:134
↓ 1 callersMethodsampler_step
( self, old_denoised, previous_sigma, sigma, next_sigma, denoi
VDM_Decoder/sgm/modules/diffusionmodules/sampling.py:321
↓ 1 callersMethodsampler_step
( self, old_denoised, previous_sigma, sigma, next_sigma, denoi
VDM_Decoder/sgm/modules/diffusionmodules/sampling.py:392
↓ 1 callersMethodsampler_step
( self, alpha_cumprod_sqrt, next_alpha_cumprod_sqrt, denoiser, x,
VDM_Decoder/sgm/modules/diffusionmodules/sampling.py:528
↓ 1 callersMethodsampler_step
( self, old_denoised, previous_alpha_cumprod_sqrt, alpha_cumprod_sqrt,
VDM_Decoder/sgm/modules/diffusionmodules/sampling.py:601
↓ 1 callersMethodsampler_step
( self, old_denoised, previous_alpha_cumprod_sqrt, alpha_cumprod_sqrt,
VDM_Decoder/sgm/modules/diffusionmodules/sampling.py:718
↓ 1 callersFunctionsampling_main
(args, model_cls)
inference_Decoder.py:161
↓ 1 callersMethodsave
(self, path, overwrite=True)
VDM_Decoder/sgm/modules/autoencoding/magvit2_pytorch.py:1359
↓ 1 callersMethodsave_attention_map
(self, attention_map)
MLLM/src/models/vit.py:82
↓ 1 callersFunctionsave_video_as_grid_and_mp4
(video_batch: torch.Tensor, save_path: str, fps: int = 5, args=None, key=None)
app.py:98
↓ 1 callersFunctionsave_video_as_grid_and_mp4
(video_batch: torch.Tensor, save_path: str, fps: int = 5, args=None, key=None)
inference_Decoder.py:115
↓ 1 callersMethodschedule
(self, n, **kwargs)
VDM_Decoder/sgm/lr_scheduler.py:26
↓ 1 callersMethodschedule
(self, n, **kwargs)
VDM_Decoder/sgm/lr_scheduler.py:69
↓ 1 callersFunctionset_context_parallel_group
(size, group)
VDM_Decoder/sgm/util.py:25
↓ 1 callersFunctionspatial_average
(x, keepdim=True)
VDM_Decoder/sgm/modules/autoencoding/lpips/loss/lpips.py:131
↓ 1 callersFunctionstandard_attention
(query_layer, key_layer, value_layer, attention_mask, attention_dropout=None, log_atten
VDM_Decoder/sgm/models/sat_ours/transformer_defaults.py:52
↓ 1 callersMethodstate_dict
(self, *args, **kwargs)
VDM_Decoder/sgm/modules/autoencoding/magvit2_pytorch.py:1352
↓ 1 callersMethodstore
Save the current parameters for restoring later. Args: parameters: Iterable of `torch.nn.Parameter`; the parameters to be
VDM_Decoder/sgm/modules/ema.py:61
↓ 1 callersMethodsurely_get_ucg_val
(self, embedder: AbstractEmbModel, batch: Dict, cond_or_not)
VDM_Decoder/sgm/modules/encoders/modules.py:125
↓ 1 callersFunctiontar_file_expander_with_meta
Expand a stream of open tar files into a stream of tar file contents. This returns an iterator over (filename, file_contents).
VDM_Decoder/sgm/webds.py:179
↓ 1 callersFunctiontar_file_iterator_with_meta
Iterate over tar file, yielding filename, content pairs for the given tar stream. :param fileobj: byte stream suitable for tarfile :param met
VDM_Decoder/sgm/webds.py:95
↓ 1 callersMethodunmap_to_all
(self, inds)
VDM_Decoder/sgm/modules/autoencoding/vqvae/quantize.py:59
↓ 1 callersMethodunmap_to_all
(self, inds)
VDM_Decoder/sgm/modules/autoencoding/vqvae/quantize.py:192
↓ 1 callersFunctionunpatchify
x: (N, T/2 * S, patch_size**3 * C) imgs: (N, T, H, W, C)
VDM_Decoder/dit_video_concat.py:417
↓ 1 callersFunctionupdate_lora_scale
( model: nn.Module, target_module: Set[str] = None, scale: float = 1.0, )
VDM_Decoder/sgm/modules/diffusionmodules/lora.py:352
↓ 1 callersFunctionurl_opener
Open URLs and yield a stream of url+stream pairs. Args: data: iterator over dict(url=...) handler: exception handler. kw:
VDM_Decoder/sgm/webds.py:201
↓ 1 callersMethodw
(self, sigma)
VDM_Decoder/sgm/modules/diffusionmodules/denoiser.py:22
↓ 1 callersMethodweight_update
(self, num_tokens)
VDM_Decoder/sgm/modules/autoencoding/regularizers/quantize.py:317
Method__call__
(self, n, **kwargs)
VDM_Decoder/sgm/lr_scheduler.py:41
Method__call__
(self, n, **kwargs)
VDM_Decoder/sgm/lr_scheduler.py:86
Method__call__
(self, x)
VDM_Decoder/sgm/util.py:375
Method__call__
(self, network, denoiser, conditioner, input, batch)
VDM_Decoder/sgm/modules/diffusionmodules/loss.py:41
Method__call__
(self, network, denoiser, conditioner, clip_img_encoder, input, batch)
VDM_Decoder/sgm/modules/diffusionmodules/loss.py:75
Method__call__
(self, sigma)
VDM_Decoder/sgm/modules/diffusionmodules/denoiser_weighting.py:5
Method__call__
(self, sigma)
VDM_Decoder/sgm/modules/diffusionmodules/denoiser_weighting.py:13
Method__call__
(self, sigma)
VDM_Decoder/sgm/modules/diffusionmodules/denoiser_weighting.py:23
Method__call__
(self, sigma: torch.Tensor)
VDM_Decoder/sgm/modules/diffusionmodules/denoiser_scaling.py:9
Method__call__
(self, sigma: torch.Tensor)
VDM_Decoder/sgm/modules/diffusionmodules/denoiser_scaling.py:17
Method__call__
(self, sigma: torch.Tensor)
VDM_Decoder/sgm/modules/diffusionmodules/denoiser_scaling.py:26
Method__call__
(self, sigma: torch.Tensor)
VDM_Decoder/sgm/modules/diffusionmodules/denoiser_scaling.py:35
Method__call__
(self, sigma: torch.Tensor)
VDM_Decoder/sgm/modules/diffusionmodules/denoiser_scaling.py:44
Method__call__
( self, alphas_cumprod_sqrt: torch.Tensor, **additional_model_inputs )
VDM_Decoder/sgm/modules/diffusionmodules/denoiser_scaling.py:53
Method__call__
(self, uncond, cond, scale)
VDM_Decoder/sgm/modules/diffusionmodules/sampling_utils.py:9
Method__call__
(self, uncond, cond, scale)
VDM_Decoder/sgm/modules/diffusionmodules/sampling_utils.py:15
Method__call__
(self, uncond, cond, scale)
VDM_Decoder/sgm/modules/diffusionmodules/sampling_utils.py:64
Method__call__
(self, uncond, cond, scale)
VDM_Decoder/sgm/modules/diffusionmodules/sampling_utils.py:78
Method__call__
(self, uncond, cond, scale)
VDM_Decoder/sgm/modules/diffusionmodules/sampling_utils.py:96
Method__call__
(self, n, do_append_zero=True, device="cpu", flip=False, return_idx=False)
VDM_Decoder/sgm/modules/diffusionmodules/discretizer.py:16
Method__call__
(self, denoiser, x, cond, uc=None, num_steps=None)
VDM_Decoder/sgm/modules/diffusionmodules/sampling.py:108
Method__call__
(self, denoiser, x, cond, uc=None, num_steps=None)
VDM_Decoder/sgm/modules/diffusionmodules/sampling.py:144
Method__call__
(self, denoiser, x, cond, uc=None, num_steps=None)
VDM_Decoder/sgm/modules/diffusionmodules/sampling.py:183
Method__call__
(self, denoiser, x, cond, uc=None, num_steps=None, **kwargs)
VDM_Decoder/sgm/modules/diffusionmodules/sampling.py:210
Method__call__
(self, denoiser, x, cond, uc=None, num_steps=None, **kwargs)
VDM_Decoder/sgm/modules/diffusionmodules/sampling.py:350
Method__call__
(self, denoiser, x, cond, uc=None, num_steps=None, scale=None, **kwargs)
VDM_Decoder/sgm/modules/diffusionmodules/sampling.py:422
Method__call__
(self, denoiser, image, randn, cond, uc=None, num_steps=None, edit_ratio=None)
VDM_Decoder/sgm/modules/diffusionmodules/sampling.py:447
Method__call__
(self, denoiser, x, cond, uc=None, num_steps=None, scale=None, scale_emb=None)
VDM_Decoder/sgm/modules/diffusionmodules/sampling.py:551
Method__call__
(self, denoiser, x, cond, uc=None, num_steps=None, scale=None, scale_emb=None, flow=None, aroutput=None)
VDM_Decoder/sgm/modules/diffusionmodules/sampling.py:645
Method__call__
(self, denoiser, x, cond, uc=None, num_steps=None, scale=None, **kwargs)
VDM_Decoder/sgm/modules/diffusionmodules/sampling.py:755
Method__call__
(self, n_samples, rand=None)
VDM_Decoder/sgm/modules/diffusionmodules/sigma_sampling.py:14
← previousnext →301–400 of 1,003, ranked by callers