Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/character-ai/Ovi
/ functions
Functions
478 in github.com/character-ai/Ovi
⨍
Functions
478
◇
Types & classes
112
Function
attention_with_weights
Compute attention with explicit attention weights for visualization. Returns both output and attention weights.
ovi/modules/attention.py:139
Function
audio_path_to_tensor
(path, target_sr=16000)
ovi/utils/processing_utils.py:285
Method
backward
(ctx, output_grads)
ovi/modules/mmaudio/ext/bigvgan_v2/alias_free_activation/cuda/activation1d.py:30
Method
backward
(ctx: Any, *grad_output: Tensor)
ovi/distributed_comms/communications.py:121
Method
backward
(ctx, grad_output)
ovi/distributed_comms/communications.py:178
Method
backward
(ctx, grad_output)
ovi/distributed_comms/communications.py:227
Method
begin_index
The index for the first timestep. It should be set from pipeline with `set_begin_index` method.
ovi/utils/fm_solvers.py:209
Method
begin_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
Function
broadcast
(input_: torch.Tensor)
ovi/distributed_comms/communications.py:13
Function
build_env
(config, config_name, path)
ovi/modules/mmaudio/ext/bigvgan_v2/env.py:14
Function
build_env
(config, config_name, path)
ovi/modules/mmaudio/ext/bigvgan/env.py:14
Function
cache_image
(tensor, save_file, nrow=8, normalize=True, va
ovi/utils/utils.py:104
Function
cache_video
(tensor, save_file=None, fps=30, suffix='.mp4',
ovi/utils/utils.py:63
Function
calc_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
Method
compile
(self)
ovi/modules/mmaudio/features_utils.py:51
Function
compute_rope_rotations
(length: int, dim: int, theta: int,
ovi/modules/mmaudio/ext/rotary_embeddings.py:11
Method
cross_attn_ffn
(x, context, context_lens, e)
ovi/modules/model.py:462
Method
decode
(self, zs)
ovi/modules/vae2_2.py:1038
Method
decode
(self, z: torch.Tensor)
ovi/modules/mmaudio/ext/autoencoder/autoencoder.py:50
Function
destroy_sequence_parallel_group
Destroy the sequence parallel group.
ovi/distributed_comms/parallel_states.py:75
Method
device
(self)
ovi/modules/mmaudio/features_utils.py:79
Method
device
(self)
ovi/modules/mmaudio/ext/stft_converter_mel.py:55
Method
device
(self)
ovi/modules/mmaudio/ext/mel_converter.py:54
Method
device
(self)
ovi/modules/mmaudio/ext/stft_converter.py:55
Method
dtype
(self)
ovi/modules/mmaudio/features_utils.py:83
Method
encode
(self, videos)
ovi/modules/vae2_2.py:1024
Method
encode
(self, x: torch.Tensor)
ovi/modules/mmaudio/ext/autoencoder/autoencoder.py:46
Method
extend
(self, prompt, system_prompt, seed=-1, *args, **kwargs)
ovi/utils/prompt_extend.py:196
Method
extend
(self, prompt, system_prompt, seed=-1, *args, **kwargs)
ovi/utils/prompt_extend.py:366
Method
extend_with_img
(self, prompt, system_prompt, image: U
ovi/utils/prompt_extend.py:232
Method
extend_with_img
(self, prompt, system_prompt, image: U
ovi/utils/prompt_extend.py:397
Method
forward
(self, x)
ovi/modules/clip.py:43
Method
forward
(self, x)
ovi/modules/clip.py:49
Method
forward
x: [B, L, C].
ovi/modules/clip.py:74
Method
forward
(self, x)
ovi/modules/clip.py:147
Method
forward
x: [B, L, C].
ovi/modules/clip.py:187
Method
forward
(self, x, interpolation=False, use_31_block=False)
ovi/modules/clip.py:282
Method
forward
(self, ids)
ovi/modules/clip.py:318
Method
forward
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
Method
forward
(self, x)
ovi/modules/t5.py:48
Method
forward
(self, x)
ovi/modules/t5.py:61
Method
forward
x: [B, L1, C]. context: [B, L2, C] or None. mask: [B, L2] or [B, L1, L2] or None.
ovi/modules/t5.py:86
Method
forward
(self, x)
ovi/modules/t5.py:136
Method
forward
(self, x, mask=None, pos_bias=None)
ovi/modules/t5.py:170
Method
forward
(self, x, mask=None, encoder_states=None, enco
ovi/modules/t5.py:206
Method
forward
(self, lq, lk)
ovi/modules/t5.py:233
Method
forward
(self, ids, mask=None)
ovi/modules/t5.py:303
Method
forward
(self, ids, mask=None, encoder_states=None, encoder_mask=None)
ovi/modules/t5.py:351
Method
forward
(self, encoder_ids, encoder_mask, decoder_ids, decoder_mask)
ovi/modules/t5.py:408
Method
forward
(self, x, cache_x=None)
ovi/modules/vae.py:28
Method
forward
(self, x)
ovi/modules/vae.py:51
Method
forward
Fix bfloat16 support for nearest neighbor interpolation.
ovi/modules/vae.py:59
Method
forward
(self, x, feat_cache=None, feat_idx=[0])
ovi/modules/vae.py:101
Method
forward
(self, x, feat_cache=None, feat_idx=[0])
ovi/modules/vae.py:202
Method
forward
(self, x)
ovi/modules/vae.py:240
Method
forward
(self, x, feat_cache=None, feat_idx=[0])
ovi/modules/vae.py:318
Method
forward
(self, x, feat_cache=None, feat_idx=[0])
ovi/modules/vae.py:423
Method
forward
(self, x, cache_x=None)
ovi/modules/vae2_2.py:34
Method
forward
(self, x)
ovi/modules/vae2_2.py:57
Method
forward
Fix bfloat16 support for nearest neighbor interpolation.
ovi/modules/vae2_2.py:64
Method
forward
(self, x, feat_cache=None, feat_idx=[0])
ovi/modules/vae2_2.py:112
Method
forward
(self, x, feat_cache=None, feat_idx=[0])
ovi/modules/vae2_2.py:214
Method
forward
(self, x)
ovi/modules/vae2_2.py:255
Method
forward
(self, x: torch.Tensor)
ovi/modules/vae2_2.py:335
Method
forward
(self, x, feat_cache=None, feat_idx=[0])
ovi/modules/vae2_2.py:447
Method
forward
(self, x, feat_cache=None, feat_idx=[0], first_chunk=False)
ovi/modules/vae2_2.py:489
Method
forward
(self, x, feat_cache=None, feat_idx=[0])
ovi/modules/vae2_2.py:559
Method
forward
(self, x, feat_cache=None, feat_idx=[0], first_chunk=False)
ovi/modules/vae2_2.py:672
Method
forward
(self, x, scale=[0, 1])
ovi/modules/vae2_2.py:778
Method
forward
( self, vid, audio, t, vid_context, audio_context, vid
ovi/modules/fusion.py:242
Method
forward
x: [B, L, C].
ovi/modules/xlm_roberta.py:27
Method
forward
(self, x, mask)
ovi/modules/xlm_roberta.py:66
Method
forward
ids: [B, L] of torch.LongTensor.
ovi/modules/xlm_roberta.py:118
Method
forward
(self, x: torch.Tensor)
ovi/modules/model.py:112
Method
forward
(self, x)
ovi/modules/model.py:163
Method
forward
r""" Args: x(Tensor): Shape [B, L, C]
ovi/modules/model.py:174
Method
forward
r""" Args: x(Tensor): Shape [B, L, C]
ovi/modules/model.py:190
Method
forward
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
Method
forward
r""" Args: x(Tensor): Shape [B, L1, C] context(Tensor): Shape [B, L2, C] context_lens(Tensor): Shape [B]
ovi/modules/model.py:279
Method
forward
r""" Args: x(Tensor): Shape [B, L1, C] context(Tensor): Shape [B, L2, C] context_lens(Tensor): Shape [B]
ovi/modules/model.py:329
Method
forward
(self, e)
ovi/modules/model.py:373
Method
forward
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
Method
forward
(self, image_embeds)
ovi/modules/model.py:515
Method
forward
r""" Forward pass through the diffusion model Args: x (List[Tensor]): List of input video tensors, each w
ovi/modules/model.py:825
Method
forward
(self, waveform: torch.Tensor)
ovi/modules/mmaudio/ext/stft_converter_mel.py:58
Method
forward
(self, waveform: torch.Tensor, center: bool = False)
ovi/modules/mmaudio/ext/mel_converter.py:57
Method
forward
(self, waveform: torch.Tensor)
ovi/modules/mmaudio/ext/stft_converter.py:58
Method
forward
( self, x: torch.Tensor, sample_posterior: bool = True, rng: Optional[torch.Ge
ovi/modules/mmaudio/ext/autoencoder/vae.py:135
Method
forward
(self, x)
ovi/modules/mmaudio/ext/autoencoder/vae.py:239
Method
forward
(self, z)
ovi/modules/mmaudio/ext/autoencoder/vae.py:323
Method
forward
(self, x: torch.Tensor)
ovi/modules/mmaudio/ext/autoencoder/vae_modules.py:32
Method
forward
(self, x)
ovi/modules/mmaudio/ext/autoencoder/vae_modules.py:64
Method
forward
(self, x)
ovi/modules/mmaudio/ext/autoencoder/vae_modules.py:90
Method
forward
(self, x)
ovi/modules/mmaudio/ext/autoencoder/vae_modules.py:107
Method
forward
(self, x)
ovi/modules/mmaudio/ext/autoencoder/edm2_utils.py:70
Method
forward
(self, x)
ovi/modules/mmaudio/ext/autoencoder/edm2_utils.py:112
Method
forward
(self, x, gain=1)
ovi/modules/mmaudio/ext/autoencoder/edm2_utils.py:151
Method
forward
(self, x)
ovi/modules/mmaudio/ext/bigvgan_v2/bigvgan.py:112
Method
forward
(self, x)
ovi/modules/mmaudio/ext/bigvgan_v2/bigvgan.py:197
Method
forward
(self, x)
ovi/modules/mmaudio/ext/bigvgan_v2/bigvgan.py:307
← previous
next →
301–400 of 478, ranked by callers