MCPcopy Create free account

hub / github.com/character-ai/Ovi / functions

Functions478 in github.com/character-ai/Ovi

Functionattention_with_weights
Compute attention with explicit attention weights for visualization. Returns both output and attention weights.
ovi/modules/attention.py:139
Functionaudio_path_to_tensor
(path, target_sr=16000)
ovi/utils/processing_utils.py:285
Methodbackward
(ctx, output_grads)
ovi/modules/mmaudio/ext/bigvgan_v2/alias_free_activation/cuda/activation1d.py:30
Methodbackward
(ctx: Any, *grad_output: Tensor)
ovi/distributed_comms/communications.py:121
Methodbackward
(ctx, grad_output)
ovi/distributed_comms/communications.py:178
Methodbackward
(ctx, grad_output)
ovi/distributed_comms/communications.py:227
Methodbegin_index
The index for the first timestep. It should be set from pipeline with `set_begin_index` method.
ovi/utils/fm_solvers.py:209
Methodbegin_index
The index for the first timestep. It should be set from pipeline with `set_begin_index` method.
ovi/utils/fm_solvers_unipc.py:142
Functionbroadcast
(input_: torch.Tensor)
ovi/distributed_comms/communications.py:13
Functionbuild_env
(config, config_name, path)
ovi/modules/mmaudio/ext/bigvgan_v2/env.py:14
Functionbuild_env
(config, config_name, path)
ovi/modules/mmaudio/ext/bigvgan/env.py:14
Functioncache_image
(tensor, save_file, nrow=8, normalize=True, va
ovi/utils/utils.py:104
Functioncache_video
(tensor, save_file=None, fps=30, suffix='.mp4',
ovi/utils/utils.py:63
Functioncalc_dims_from_area
Calculate width and height given an aspect ratio (h:w), total area, and divisibility constraint. Args: aspect_ratio (str):
ovi/utils/processing_utils.py:102
Methodcompile
(self)
ovi/modules/mmaudio/features_utils.py:51
Functioncompute_rope_rotations
(length: int, dim: int, theta: int,
ovi/modules/mmaudio/ext/rotary_embeddings.py:11
Methodcross_attn_ffn
(x, context, context_lens, e)
ovi/modules/model.py:462
Methoddecode
(self, zs)
ovi/modules/vae2_2.py:1038
Methoddecode
(self, z: torch.Tensor)
ovi/modules/mmaudio/ext/autoencoder/autoencoder.py:50
Functiondestroy_sequence_parallel_group
Destroy the sequence parallel group.
ovi/distributed_comms/parallel_states.py:75
Methoddevice
(self)
ovi/modules/mmaudio/features_utils.py:79
Methoddevice
(self)
ovi/modules/mmaudio/ext/stft_converter_mel.py:55
Methoddevice
(self)
ovi/modules/mmaudio/ext/mel_converter.py:54
Methoddevice
(self)
ovi/modules/mmaudio/ext/stft_converter.py:55
Methoddtype
(self)
ovi/modules/mmaudio/features_utils.py:83
Methodencode
(self, videos)
ovi/modules/vae2_2.py:1024
Methodencode
(self, x: torch.Tensor)
ovi/modules/mmaudio/ext/autoencoder/autoencoder.py:46
Methodextend
(self, prompt, system_prompt, seed=-1, *args, **kwargs)
ovi/utils/prompt_extend.py:196
Methodextend
(self, prompt, system_prompt, seed=-1, *args, **kwargs)
ovi/utils/prompt_extend.py:366
Methodextend_with_img
(self, prompt, system_prompt, image: U
ovi/utils/prompt_extend.py:232
Methodextend_with_img
(self, prompt, system_prompt, image: U
ovi/utils/prompt_extend.py:397
Methodforward
(self, x)
ovi/modules/clip.py:43
Methodforward
(self, x)
ovi/modules/clip.py:49
Methodforward
x: [B, L, C].
ovi/modules/clip.py:74
Methodforward
(self, x)
ovi/modules/clip.py:147
Methodforward
x: [B, L, C].
ovi/modules/clip.py:187
Methodforward
(self, x, interpolation=False, use_31_block=False)
ovi/modules/clip.py:282
Methodforward
(self, ids)
ovi/modules/clip.py:318
Methodforward
imgs: [B, 3, H, W] of torch.float32. - mean: [0.48145466, 0.4578275, 0.40821073] - std: [0.26862954, 0.2613025
ovi/modules/clip.py:409
Methodforward
(self, x)
ovi/modules/t5.py:48
Methodforward
(self, x)
ovi/modules/t5.py:61
Methodforward
x: [B, L1, C]. context: [B, L2, C] or None. mask: [B, L2] or [B, L1, L2] or None.
ovi/modules/t5.py:86
Methodforward
(self, x)
ovi/modules/t5.py:136
Methodforward
(self, x, mask=None, pos_bias=None)
ovi/modules/t5.py:170
Methodforward
(self, x, mask=None, encoder_states=None, enco
ovi/modules/t5.py:206
Methodforward
(self, lq, lk)
ovi/modules/t5.py:233
Methodforward
(self, ids, mask=None)
ovi/modules/t5.py:303
Methodforward
(self, ids, mask=None, encoder_states=None, encoder_mask=None)
ovi/modules/t5.py:351
Methodforward
(self, encoder_ids, encoder_mask, decoder_ids, decoder_mask)
ovi/modules/t5.py:408
Methodforward
(self, x, cache_x=None)
ovi/modules/vae.py:28
Methodforward
(self, x)
ovi/modules/vae.py:51
Methodforward
Fix bfloat16 support for nearest neighbor interpolation.
ovi/modules/vae.py:59
Methodforward
(self, x, feat_cache=None, feat_idx=[0])
ovi/modules/vae.py:101
Methodforward
(self, x, feat_cache=None, feat_idx=[0])
ovi/modules/vae.py:202
Methodforward
(self, x)
ovi/modules/vae.py:240
Methodforward
(self, x, feat_cache=None, feat_idx=[0])
ovi/modules/vae.py:318
Methodforward
(self, x, feat_cache=None, feat_idx=[0])
ovi/modules/vae.py:423
Methodforward
(self, x, cache_x=None)
ovi/modules/vae2_2.py:34
Methodforward
(self, x)
ovi/modules/vae2_2.py:57
Methodforward
Fix bfloat16 support for nearest neighbor interpolation.
ovi/modules/vae2_2.py:64
Methodforward
(self, x, feat_cache=None, feat_idx=[0])
ovi/modules/vae2_2.py:112
Methodforward
(self, x, feat_cache=None, feat_idx=[0])
ovi/modules/vae2_2.py:214
Methodforward
(self, x)
ovi/modules/vae2_2.py:255
Methodforward
(self, x: torch.Tensor)
ovi/modules/vae2_2.py:335
Methodforward
(self, x, feat_cache=None, feat_idx=[0])
ovi/modules/vae2_2.py:447
Methodforward
(self, x, feat_cache=None, feat_idx=[0], first_chunk=False)
ovi/modules/vae2_2.py:489
Methodforward
(self, x, feat_cache=None, feat_idx=[0])
ovi/modules/vae2_2.py:559
Methodforward
(self, x, feat_cache=None, feat_idx=[0], first_chunk=False)
ovi/modules/vae2_2.py:672
Methodforward
(self, x, scale=[0, 1])
ovi/modules/vae2_2.py:778
Methodforward
( self, vid, audio, t, vid_context, audio_context, vid
ovi/modules/fusion.py:242
Methodforward
x: [B, L, C].
ovi/modules/xlm_roberta.py:27
Methodforward
(self, x, mask)
ovi/modules/xlm_roberta.py:66
Methodforward
ids: [B, L] of torch.LongTensor.
ovi/modules/xlm_roberta.py:118
Methodforward
(self, x: torch.Tensor)
ovi/modules/model.py:112
Methodforward
(self, x)
ovi/modules/model.py:163
Methodforward
r""" Args: x(Tensor): Shape [B, L, C]
ovi/modules/model.py:174
Methodforward
r""" Args: x(Tensor): Shape [B, L, C]
ovi/modules/model.py:190
Methodforward
r""" Args: x(Tensor): Shape [B, L, C] seq_lens(Tensor): Shape [B] grid_sizes(Tensor): Shape [B, 3], the se
ovi/modules/model.py:239
Methodforward
r""" Args: x(Tensor): Shape [B, L1, C] context(Tensor): Shape [B, L2, C] context_lens(Tensor): Shape [B]
ovi/modules/model.py:279
Methodforward
r""" Args: x(Tensor): Shape [B, L1, C] context(Tensor): Shape [B, L2, C] context_lens(Tensor): Shape [B]
ovi/modules/model.py:329
Methodforward
(self, e)
ovi/modules/model.py:373
Methodforward
r""" Args: x(Tensor): Shape [B, L, C] e(Tensor): Shape [B, L1, 6, C] seq_lens(Tensor): Shape [B], length o
ovi/modules/model.py:430
Methodforward
(self, image_embeds)
ovi/modules/model.py:515
Methodforward
r""" Forward pass through the diffusion model Args: x (List[Tensor]): List of input video tensors, each w
ovi/modules/model.py:825
Methodforward
(self, waveform: torch.Tensor)
ovi/modules/mmaudio/ext/stft_converter_mel.py:58
Methodforward
(self, waveform: torch.Tensor, center: bool = False)
ovi/modules/mmaudio/ext/mel_converter.py:57
Methodforward
(self, waveform: torch.Tensor)
ovi/modules/mmaudio/ext/stft_converter.py:58
Methodforward
( self, x: torch.Tensor, sample_posterior: bool = True, rng: Optional[torch.Ge
ovi/modules/mmaudio/ext/autoencoder/vae.py:135
Methodforward
(self, x)
ovi/modules/mmaudio/ext/autoencoder/vae.py:239
Methodforward
(self, z)
ovi/modules/mmaudio/ext/autoencoder/vae.py:323
Methodforward
(self, x: torch.Tensor)
ovi/modules/mmaudio/ext/autoencoder/vae_modules.py:32
Methodforward
(self, x)
ovi/modules/mmaudio/ext/autoencoder/vae_modules.py:64
Methodforward
(self, x)
ovi/modules/mmaudio/ext/autoencoder/vae_modules.py:90
Methodforward
(self, x)
ovi/modules/mmaudio/ext/autoencoder/vae_modules.py:107
Methodforward
(self, x)
ovi/modules/mmaudio/ext/autoencoder/edm2_utils.py:70
Methodforward
(self, x)
ovi/modules/mmaudio/ext/autoencoder/edm2_utils.py:112
Methodforward
(self, x, gain=1)
ovi/modules/mmaudio/ext/autoencoder/edm2_utils.py:151
Methodforward
(self, x)
ovi/modules/mmaudio/ext/bigvgan_v2/bigvgan.py:112
Methodforward
(self, x)
ovi/modules/mmaudio/ext/bigvgan_v2/bigvgan.py:197
Methodforward
(self, x)
ovi/modules/mmaudio/ext/bigvgan_v2/bigvgan.py:307
← previousnext →301–400 of 478, ranked by callers