MCPcopy Create free account

hub / github.com/TencentARC/AnimeGamer / functions

Functions1,003 in github.com/TencentARC/AnimeGamer

Functionis_context_parallel_initialized
()
VDM_Decoder/sgm/util.py:18
Functionis_odd
(n)
VDM_Decoder/sgm/modules/autoencoding/vqvae/movq_dec_3d.py:18
Functionis_power_of_two
chat.openai.com/chat Return True if n is a power of 2, otherwise return False. The function is_power_of_two takes an integer n as input
VDM_Decoder/sgm/util.py:124
Functionis_power_of_two
chat.openai.com/chat Return True if n is a power of 2, otherwise return False. The function is_power_of_two takes an integer n as input
VDM_Decoder/vae_modules/utils.py:118
Methodis_trainable
(self)
VDM_Decoder/sgm/modules/encoders/modules.py:37
Functionisheatmap
(x)
VDM_Decoder/sgm/util.py:210
Functionisheatmap
(x)
VDM_Decoder/vae_modules/utils.py:204
Functionisimage
(x)
VDM_Decoder/sgm/util.py:204
Functionisimage
(x)
VDM_Decoder/vae_modules/utils.py:198
Functionismap
(x)
VDM_Decoder/sgm/util.py:198
Functionismap
(x)
VDM_Decoder/vae_modules/utils.py:192
Functionisneighbors
(x)
VDM_Decoder/sgm/util.py:217
Functionisneighbors
(x)
VDM_Decoder/vae_modules/utils.py:211
Functionl2norm
(t)
VDM_Decoder/sgm/modules/autoencoding/magvit2_pytorch.py:96
Methodlayer_forward
( self, hidden_states, mask, *args, **kwargs, )
VDM_Decoder/dit_video_concat.py:557
Functionlayer_forward_default
hidden_states: [batch, seq_len, hidden_size] mask: [(1, 1), seq_len, seq_len]
VDM_Decoder/sgm/models/sat_ours/transformer_defaults.py:277
Functionleaky_relu
(p=0.1)
VDM_Decoder/vae_modules/cp_enc_dec.py:72
Functionload_model_from_config
(config, ckpt, verbose=True, freeze=True)
VDM_Decoder/sgm/util.py:286
Functionload_model_from_config
(config, ckpt, verbose=True, freeze=True)
VDM_Decoder/vae_modules/utils.py:280
Functionload_partial_from_config
(config)
VDM_Decoder/sgm/util.py:152
Functionload_partial_from_config
(config)
VDM_Decoder/vae_modules/utils.py:146
Methodlog_images
(self, inputs: torch.Tensor, reconstructions: torch.Tensor)
VDM_Decoder/sgm/modules/autoencoding/losses/discriminator_loss.py:90
Functionlog_txt_as_img
(wh, xc, size=10)
VDM_Decoder/vae_modules/utils.py:150
Methodlog_video
( self, batch: Dict, N: int = 8, ucg_keys: List[str] = None, only_log_
VDM_Decoder/diffusion_video.py:325
Methodlog_videos
(self, batch: dict, additional_log_kwargs: Optional[Dict] = None, **kwargs)
VDM_Decoder/vae_modules/autoencoder.py:541
Functionmake_path_absolute
(path)
VDM_Decoder/sgm/util.py:191
Functionmake_path_absolute
(path)
VDM_Decoder/vae_modules/utils.py:185
Functionmake_time_attn
( in_channels, attn_type="vanilla", attn_kwargs=None, alpha: float = 0, merge_strategy: st
VDM_Decoder/sgm/modules/autoencoding/temporal_ae.py:240
Functionmax_neg_value
(t)
VDM_Decoder/sgm/modules/attention.py:70
Functionmean_flat
https://github.com/openai/guided-diffusion/blob/27c20a8fab9cb472df5d6bdd6c8d11c8f430b924/guided_diffusion/nn.py#L86 Take the mean over all no
VDM_Decoder/sgm/util.py:239
Functionmean_flat
Take the mean over all non-batch dimensions.
VDM_Decoder/sgm/modules/diffusionmodules/util.py:168
Functionmean_flat
https://github.com/openai/guided-diffusion/blob/27c20a8fab9cb472df5d6bdd6c8d11c8f430b924/guided_diffusion/nn.py#L86 Take the mean over all no
VDM_Decoder/vae_modules/utils.py:233
Functionmeasure_perplexity
(predicted_indices: torch.Tensor, num_centroids: int)
VDM_Decoder/vae_modules/regularizers.py:80
Functionmixed_checkpoint
Evaluate a function without caching intermediate activations, allowing for reduced memory at the expense of extra compute in the backward pas
VDM_Decoder/sgm/modules/diffusionmodules/util.py:37
Methodmlp_forward
(self, hidden_states, **kw_args)
VDM_Decoder/dit_video_concat.py:497
Functionmlp_forward_default
(self, hidden_states, expert_id=-1, **kw_args)
VDM_Decoder/sgm/models/sat_ours/transformer_defaults.py:214
Methodmode
(self)
VDM_Decoder/sgm/modules/distributions/distributions.py:9
Methodmode
(self)
VDM_Decoder/sgm/modules/distributions/distributions.py:20
Methodnll
(self, sample, dims=[1, 2, 3])
VDM_Decoder/sgm/modules/distributions/distributions.py:61
Methodnll
(self, sample, dims=[1, 2, 3])
VDM_Decoder/vae_modules/regularizers.py:47
Functionnon_conflict
mark a hook function as non-conflict, so that it can be compatible with any already defined hooks. e.g. PrefixTuningMixin.attention_fn
VDM_Decoder/sgm/models/sat_ours/base_model.py:24
Functionnormal_kl
source: https://github.com/openai/guided-diffusion/blob/27c20a8fab9cb472df5d6bdd6c8d11c8f430b924/guided_diffusion/losses.py#L12 Compute the K
VDM_Decoder/sgm/modules/distributions/distributions.py:74
Methodon_train_batch_end
(self, *args, **kwargs)
VDM_Decoder/vae_modules/autoencoder.py:92
Functionpair
(t)
VDM_Decoder/vae_modules/cp_enc_dec.py:42
Functionpartialclass
(cls, *args, **kwargs)
VDM_Decoder/vae_modules/utils.py:178
Functionpeft_model_animegamer
( model, peft_config=None, model_id=None, vocab_size=None, torch_dtype='bf16' )
MLLM/src/models_clm/peft_models.py:23
Methodposition_embedding_forward
(self, position_ids, **kwargs)
VDM_Decoder/dit_video_concat.py:235
Methodposition_embedding_forward
(self, position_ids, **kwargs)
VDM_Decoder/dit_video_concat.py:270
Methodposition_embedding_forward
(self, position_ids, **kwargs)
VDM_Decoder/dit_video_concat.py:377
Functionposition_embedding_forward_default
(self, position_ids, output_cross_layer, **kw_args)
VDM_Decoder/sgm/models/sat_ours/transformer_defaults.py:265
Methodpossible_correction_step
(self, euler_step, x, d, dt, next_sigma, denoiser, cond, uc)
VDM_Decoder/sgm/modules/diffusionmodules/sampling.py:231
Methodpossibly_quantize_c_noise
(self, c_noise)
VDM_Decoder/sgm/modules/diffusionmodules/denoiser.py:68
Methodpossibly_quantize_sigma
(self, sigma)
VDM_Decoder/sgm/modules/diffusionmodules/denoiser.py:65
Methodprepare_inputs
(self, x, s, c, uc)
VDM_Decoder/sgm/modules/diffusionmodules/guiders.py:44
Methodprepare_inputs
(self, x, s, c, uc)
VDM_Decoder/sgm/modules/diffusionmodules/guiders.py:81
Methodprepare_inputs_for_generation
( self, input_ids, past_key_values=None, attention_mask=None, inputs_embeds=None, **kwargs )
MLLM/src/models/mistral/modeling_mistral.py:1162
Methodprepare_sampling_loop
(self, x, cond, uc=None, num_steps=None)
VDM_Decoder/sgm/modules/diffusionmodules/sampling.py:46
Functionprocess_input
(characters, motion_adverb, motion, time, background, video_dir, history)
app.py:422
Functionread_from_cli
()
app.py:79
Functionread_from_file
(p, rank=0, world_size=1)
app.py:89
Functionread_labels_and_videos
(folder_path)
inference_Decoder.py:41
Methodreinit
(self, parent_model=None)
VDM_Decoder/diffusion_video.py:149
Methodreinit
(self, parent_model=None)
VDM_Decoder/dit_video_concat.py:123
Methodreinit
(self, parent_model=None)
VDM_Decoder/dit_video_concat.py:238
Methodreinit
(self, parent_model=None)
VDM_Decoder/dit_video_concat.py:276
Methodreinit
(self, parent_model=None)
VDM_Decoder/dit_video_concat.py:475
Methodreinit
(self, parent_model=None)
VDM_Decoder/dit_video_concat.py:638
Methodreinit
(self, mixin_names=None)
VDM_Decoder/sgm/models/sat_ours/base_model.py:100
Functionremove_vgg
(fn)
VDM_Decoder/sgm/modules/autoencoding/magvit2_pytorch.py:156
Methodrepartition
(self)
VDM_Decoder/sgm/models/sat_ours/transformer.py:120
Methodrepartition
(self)
VDM_Decoder/sgm/models/sat_ours/transformer.py:200
Functionreplacable
mark a hook function as replacable, so that it can be replaced by mixins added after it. e.g. FP32AttentionMixin.attention_fn
VDM_Decoder/sgm/models/sat_ours/base_model.py:32
Methodreset_num_updates
(self)
VDM_Decoder/sgm/modules/ema.py:27
Functionresize_for_rectangle_crop
(arr, image_size, reshape_mode="random")
inference_Decoder.py:130
Functionrestart_conversation
(video_dir)
app.py:574
Functionrouting_forward_default
(self, hidden_states, **kw_args)
VDM_Decoder/sgm/models/sat_ours/transformer_defaults.py:199
Methodsample
(self)
VDM_Decoder/sgm/modules/distributions/distributions.py:6
Methodsample
(self)
VDM_Decoder/sgm/modules/distributions/distributions.py:17
Methodsampler_step
(self, sigma, next_sigma, denoiser, x, cond, uc, *args, **kwargs)
VDM_Decoder/sgm/modules/diffusionmodules/sampling.py:78
Methodsampler_step
(self, sigma, next_sigma, denoiser, x, cond, uc)
VDM_Decoder/sgm/modules/diffusionmodules/sampling.py:251
Methodsampler_step
(self, sigma, next_sigma, denoiser, x, cond, uc=None, **kwargs)
VDM_Decoder/sgm/modules/diffusionmodules/sampling.py:275
Methodsave_attn_gradients
(self, attn_gradients)
MLLM/src/models/vit.py:74
Functionscale_module
Scale the parameters of a module and return it.
VDM_Decoder/sgm/modules/diffusionmodules/util.py:159
Methodschedule
(self, n, **kwargs)
VDM_Decoder/sgm/lr_scheduler.py:91
Methodset_decoder
(self, decoder)
MLLM/src/models/mistral/modeling_mistral.py:1066
Methodset_input_embeddings
(self, value)
MLLM/src/models/mistral/modeling_mistral.py:882
Methodset_input_embeddings
(self, value)
MLLM/src/models/mistral/modeling_mistral.py:1057
Methodset_lora_layer
(self, lora_layer: Optional[LoRAConv2dLayer])
VDM_Decoder/sgm/modules/diffusionmodules/lora.py:93
Methodset_lora_layer
(self, lora_layer: Optional[LoRALinearLayer])
VDM_Decoder/sgm/modules/diffusionmodules/lora.py:163
Methodset_output_embeddings
(self, new_embeddings)
MLLM/src/models/mistral/modeling_mistral.py:1063
Methodshared_step
(self, batch: Dict)
VDM_Decoder/diffusion_video.py:175
Functiontarfile_samples_with_meta
(src, meta_names, handler=reraise_exception)
VDM_Decoder/sgm/webds.py:237
Methodto_colormap
(b, 1, ...) -> (b, 3, ...)
VDM_Decoder/sgm/modules/autoencoding/losses/discriminator_loss.py:103
Methodtokenize
(self, video)
VDM_Decoder/sgm/modules/autoencoding/magvit2_pytorch.py:1504
Methodtraining_step
(self, batch: dict, batch_idx: int)
VDM_Decoder/vae_modules/autoencoder.py:295
Methoducg_rate
(self)
VDM_Decoder/sgm/modules/encoders/modules.py:41
Functionuniq
(arr)
VDM_Decoder/sgm/modules/attention.py:60
Methodvalidation_step
(self, batch: dict, batch_idx: int)
VDM_Decoder/vae_modules/autoencoder.py:310
Functionvanilla_d_loss
(logits_real, logits_fake)
VDM_Decoder/sgm/modules/autoencoding/lpips/vqperceptual.py:12
Functionweights_init
(m)
VDM_Decoder/sgm/modules/autoencoding/lpips/model/model.py:8
← previousnext →901–1,000 of 1,003, ranked by callers