MCPcopy Create free account

hub / github.com/Lightricks/LTX-2 / functions

Functions1,165 in github.com/Lightricks/LTX-2

Method__call__
( self, video: Modality | None, audio: Modality | None, perturbations: Batched
packages/ltx-core/src/ltx_core/model/model_protocol.py:34
Method__call__
( self, args: TransformerArgs, perturbations: BatchedPerturbationConfig, block
packages/ltx-core/src/ltx_core/model/transformer/compiling.py:43
Method__call__
( self, q: torch.Tensor, k: torch.Tensor, attn_module: nn.Module, mask
packages/ltx-core/src/ltx_core/model/transformer/ops.py:11
Method__call__
( self, q: torch.Tensor, k: torch.Tensor, attn_module: nn.Module, mask
packages/ltx-core/src/ltx_core/model/transformer/ops.py:23
Method__call__
( self, x: torch.Tensor, eps: float, scale: torch.Tensor, shift: torch
packages/ltx-core/src/ltx_core/model/transformer/ops.py:41
Method__call__
( self, x: torch.Tensor, eps: float, scale: torch.Tensor, shift: torch
packages/ltx-core/src/ltx_core/model/transformer/ops.py:51
Method__call__
( self, x: torch.Tensor, y: torch.Tensor, norm_weights: torch.Tensor | None,
packages/ltx-core/src/ltx_core/model/transformer/ops.py:62
Method__call__
( self, x: torch.Tensor, y: torch.Tensor, norm_weights: torch.Tensor | None,
packages/ltx-core/src/ltx_core/model/transformer/ops.py:73
Method__call__
( self, x: torch.Tensor, attn_out: torch.Tensor, attn_module: nn.Module, )
packages/ltx-core/src/ltx_core/model/transformer/ops.py:86
Method__call__
( self, x: torch.Tensor, attn_out: torch.Tensor, attn_module: nn.Module, )
packages/ltx-core/src/ltx_core/model/transformer/ops.py:95
Method__call__
(self, q: torch.Tensor, k: torch.Tensor, v: torch.Tensor, heads: int)
packages/ltx-core/src/ltx_core/model/transformer/attention.py:54
Method__call__
( self, q: torch.Tensor, k: torch.Tensor, v: torch.Tensor, heads: int, mask: torch.Tensor )
packages/ltx-core/src/ltx_core/model/transformer/attention.py:62
Method__call__
( self, q: torch.Tensor, k: torch.Tensor, v: torch.Tensor, heads: int, mask: torch.Tensor | None = Non
packages/ltx-core/src/ltx_core/model/transformer/attention.py:81
Method__call__
( self, q: torch.Tensor, k: torch.Tensor, v: torch.Tensor, heads: int,
packages/ltx-core/src/ltx_core/model/transformer/attention.py:107
Method__call__
( self, q: torch.Tensor, k: torch.Tensor, v: torch.Tensor, heads: int,
packages/ltx-core/src/ltx_core/model/transformer/attention.py:154
Method__call__
( self, q: torch.Tensor, k: torch.Tensor, v: torch.Tensor, heads: int,
packages/ltx-core/src/ltx_core/model/transformer/attention.py:177
Method__call__
( self, args: "TransformerArgs", perturbations: BatchedPerturbationConfig, blo
packages/ltx-core/src/ltx_core/model/transformer/transformer_args.py:57
Method__call__
(self, tensor_key: str, tensor_value: torch.Tensor)
packages/ltx-core/src/ltx_core/loader/sd_ops.py:46
Method__call__
( self, key: str, weight: torch.Tensor, deltas: torch.Tensor, model_sd
packages/ltx-core/src/ltx_core/loader/fuse_loras.py:51
Method__contains__
(self, key: str)
packages/ltx-core/src/ltx_core/block_streaming/disk.py:43
Method__enter__
(self)
packages/ltx-trainer/src/ltx_trainer/gpu_utils.py:49
Method__enter__
Enter the progress context, starting the live display.
packages/ltx-trainer/src/ltx_trainer/progress.py:100
Method__exit__
(self, exc_type: type | None, exc_val: Exception | None, exc_tb: object)
packages/ltx-trainer/src/ltx_trainer/gpu_utils.py:54
Method__exit__
Exit the progress context, stopping the live display.
packages/ltx-trainer/src/ltx_trainer/progress.py:112
Method__getattr__
Proxy attribute access to the wrapped model.
packages/ltx-core/src/ltx_core/batch_split.py:90
Method__getattr__
Proxy attribute access to the wrapped model.
packages/ltx-core/src/ltx_core/block_streaming/wrapper.py:91
Method__getitem__
(self, idx: int)
packages/ltx-trainer/src/ltx_trainer/datasets.py:56
Method__getitem__
(self, index: int)
packages/ltx-trainer/src/ltx_trainer/datasets.py:264
Method__getitem__
Get a single caption with optional trigger word prepended and output path.
packages/ltx-trainer/scripts/process_captions.py:137
Method__getitem__
Get a single video/image with metadata, and optionally audio.
packages/ltx-trainer/scripts/process_videos.py:144
Method__init__
( self, distilled_checkpoint_path: str, spatial_upsampler_path: str, gemma_roo
packages/ltx-pipelines/src/ltx_pipelines/lipdub.py:54
Method__init__
( self, distilled_checkpoint_path: str, spatial_upsampler_path: str, gemma_roo
packages/ltx-pipelines/src/ltx_pipelines/ic_lora.py:56
Method__init__
Args: distilled_checkpoint_path: Path to the distilled model checkpoint. spatial_upsampler_path: Path to the spatial
packages/ltx-pipelines/src/ltx_pipelines/hdr_ic_lora.py:202
Method__init__
( # noqa: PLR0913 self, checkpoint_path: str, distilled_lora: list[LoraPathStrengthAn
packages/ltx-pipelines/src/ltx_pipelines/ti2vid_two_stages_hq.py:52
Method__init__
( self, checkpoint_path: str, distilled_lora: list[LoraPathStrengthAndSDOps],
packages/ltx-pipelines/src/ltx_pipelines/ti2vid_two_stages.py:55
Method__init__
( self, distilled_checkpoint_path: str, gemma_root: str, spatial_upsampler_pat
packages/ltx-pipelines/src/ltx_pipelines/distilled.py:48
Method__init__
( self, checkpoint_path: str, gemma_root: str, loras: list[LoraPathStrengthAnd
packages/ltx-pipelines/src/ltx_pipelines/t2a_one_stage.py:49
Method__init__
( self, checkpoint_path: str, gemma_root: str, loras: list[LoraPathStrengthAnd
packages/ltx-pipelines/src/ltx_pipelines/retake.py:68
Method__init__
( self, checkpoint_path: str, distilled_lora: list[LoraPathStrengthAndSDOps],
packages/ltx-pipelines/src/ltx_pipelines/a2vid_two_stage.py:46
Method__init__
( self, checkpoint_path: str, gemma_root: str, loras: list[LoraPathStrengthAnd
packages/ltx-pipelines/src/ltx_pipelines/ti2vid_one_stage.py:51
Method__init__
( self, checkpoint_path: str, distilled_lora: list[LoraPathStrengthAndSDOps],
packages/ltx-pipelines/src/ltx_pipelines/keyframe_interpolation.py:56
Method__init__
( # noqa: PLR0913 self, checkpoint_path: str, dtype: torch.dtype, device: tor
packages/ltx-pipelines/src/ltx_pipelines/utils/blocks.py:197
Method__init__
( self, checkpoint_path: str, gemma_root: str, dtype: torch.dtype, dev
packages/ltx-pipelines/src/ltx_pipelines/utils/blocks.py:461
Method__init__
( self, checkpoint_path: str, dtype: torch.dtype, device: torch.device,
packages/ltx-pipelines/src/ltx_pipelines/utils/blocks.py:560
Method__init__
( self, checkpoint_path: str, upsampler_path: str, dtype: torch.dtype,
packages/ltx-pipelines/src/ltx_pipelines/utils/blocks.py:593
Method__init__
( self, checkpoint_path: str, dtype: torch.dtype, device: torch.device,
packages/ltx-pipelines/src/ltx_pipelines/utils/blocks.py:636
Method__init__
( self, checkpoint_path: str, dtype: torch.dtype, device: torch.device,
packages/ltx-pipelines/src/ltx_pipelines/utils/blocks.py:679
Method__init__
( self, checkpoint_path: str, dtype: torch.dtype, device: torch.device,
packages/ltx-pipelines/src/ltx_pipelines/utils/blocks.py:723
Method__init__
( self, dtype: torch.dtype, device: torch.device, )
packages/ltx-pipelines/src/ltx_pipelines/utils/types.py:28
Method__init__
( self, v_context: torch.Tensor | None, a_context: torch.Tensor | None, )
packages/ltx-pipelines/src/ltx_pipelines/utils/denoisers.py:208
Method__init__
( self, v_context: torch.Tensor | None, a_context: torch.Tensor | None, video_
packages/ltx-pipelines/src/ltx_pipelines/utils/denoisers.py:240
Method__init__
( self, v_context: torch.Tensor | None, a_context: torch.Tensor | None, video_
packages/ltx-pipelines/src/ltx_pipelines/utils/denoisers.py:286
Method__init__
(self, *, before: bool = False, after: bool = True, log: bool = False)
packages/ltx-trainer/src/ltx_trainer/gpu_utils.py:44
Method__init__
(self, progress: Progress | None, task: TaskID | None, num_prompts: int, num_steps: int)
packages/ltx-trainer/src/ltx_trainer/progress.py:23
Method__init__
Initialize progress tracking. Args: enabled: Whether to display progress bars (False for non-main processes) total_ste
packages/ltx-trainer/src/ltx_trainer/progress.py:75
Method__init__
Generic dataset for loading precomputed data from multiple sources. Args: data_root: Root directory containing preprocess
packages/ltx-trainer/src/ltx_trainer/datasets.py:88
Method__init__
( self, config: ValidationConfig, model_path: str | Path, text_encoder_path: s
packages/ltx-trainer/src/ltx_trainer/validation_runner.py:133
Method__init__
( self, bucket_boundaries: list[float] | None = None, )
packages/ltx-trainer/src/ltx_trainer/sigma_tracker.py:19
Method__init__
(self, trainer_config: LtxTrainerConfig)
packages/ltx-trainer/src/ltx_trainer/trainer.py:90
Method__init__
(self, min_value: float = 0.0, max_value: float = 1.0)
packages/ltx-trainer/src/ltx_trainer/timestep_samplers.py:34
Method__init__
(self, std: float = 1.0, eps: float = 1e-3, uniform_prob: float = 0.1)
packages/ltx-trainer/src/ltx_trainer/timestep_samplers.py:57
Method__init__
Initialize the Qwen3-Omni captioner. Args: base_url: Base URL of the vLLM OpenAI-compatible server (default ``http
packages/ltx-trainer/src/ltx_trainer/captioning.py:158
Method__init__
Initialize the Gemini captioner. Args: api_key: Gemini Developer API key. If ``None``, falls back to ``GEMINI_API_
packages/ltx-trainer/src/ltx_trainer/captioning.py:318
Method__init__
Initialize strategy with configuration. Args: config: Text-to-video configuration
packages/ltx-trainer/src/ltx_trainer/training_strategies/text_to_video.py:72
Method__init__
Initialize strategy with configuration. Args: config: Flexible strategy configuration
packages/ltx-trainer/src/ltx_trainer/training_strategies/flexible.py:249
Method__init__
Initialize strategy with configuration. Args: config: Strategy-specific configuration
packages/ltx-trainer/src/ltx_trainer/training_strategies/base_strategy.py:74
Method__init__
Initialize strategy with configuration. Args: config: Video-to-video configuration
packages/ltx-trainer/src/ltx_trainer/training_strategies/video_to_video.py:65
Method__init__
Initialize the captions dataset. Args: dataset_file: Path to CSV/JSON/JSONL metadata file caption_column: Col
packages/ltx-trainer/scripts/process_captions.py:99
Method__init__
Initialize the media dataset. Args: dataset_file: Path to CSV/JSON/JSONL metadata file video_column: Column n
packages/ltx-trainer/scripts/process_videos.py:92
Method__init__
Initialize the decoder with model configuration. Args: model_path: Path to LTX-2 checkpoint (.safetensors) device: Dev
packages/ltx-trainer/scripts/decode_latents.py:51
Method__init__
(self, model: nn.Module, max_batch_size: int)
packages/ltx-core/src/ltx_core/batch_split.py:50
Method__init__
(self, tiling: TileCountConfig, video_tools: VideoLatentTools)
packages/ltx-core/src/ltx_core/modality_tiling.py:52
Method__init__
(self, generator: torch.Generator)
packages/ltx-core/src/ltx_core/components/noisers.py:18
Method__init__
(self, patch_size: int)
packages/ltx-core/src/ltx_core/components/patchifiers.py:12
Method__init__
Patchifier tailored for spectrogram/audio latents. Args: patch_size: Number of mel bins combined into a single patch. Thi
packages/ltx-core/src/ltx_core/components/patchifiers.py:175
Method__init__
(self, eta: float = 1.0, s_noise: float = 1.0)
packages/ltx-core/src/ltx_core/components/diffusion_steps.py:138
Method__init__
( self, latent: torch.Tensor, downscale_factor: int = 1, temporal_scale_factor
packages/ltx-core/src/ltx_core/conditioning/types/reference_video_cond.py:33
Method__init__
(self, latent: torch.Tensor, mask: torch.Tensor, strength: float = 1.0)
packages/ltx-core/src/ltx_core/conditioning/types/mask_cond.py:31
Method__init__
( self, conditioning: ConditioningItem, attention_mask: float | torch.Tensor, )
packages/ltx-core/src/ltx_core/conditioning/types/attention_strength_wrapper.py:35
Method__init__
( self, patchified: torch.Tensor, positions: torch.Tensor, strength: float = 1
packages/ltx-core/src/ltx_core/conditioning/types/reference_audio_cond.py:24
Method__init__
( self, keyframes: torch.Tensor, frame_idx: int, strength: float, num_
packages/ltx-core/src/ltx_core/conditioning/types/keyframe_cond.py:24
Method__init__
(self, latent: torch.Tensor, strength: float, latent_idx: int)
packages/ltx-core/src/ltx_core/conditioning/types/latent_cond.py:16
Method__init__
( self, in_features: int, out_features: int, bias: bool = True, device
packages/ltx-core/src/ltx_core/quantization/fp8_scaled_mm.py:30
Method__init__
( self, dim: int, heads: int, dim_head: int, rope_type: LTXRopeType =
packages/ltx-core/src/ltx_core/text_encoders/gemma/embeddings_connector.py:16
Method__init__
( self, *, feature_extractor: nn.Module | None = None, video_connector: Embedd
packages/ltx-core/src/ltx_core/text_encoders/gemma/embeddings_processor.py:57
Method__init__
Initialize the tokenizer. Args: tokenizer_path (str): Path to the pretrained tokenizer files or model directory.
packages/ltx-core/src/ltx_core/text_encoders/gemma/tokenizer.py:18
Method__init__
( self, video_aggregate_embed: nn.Linear, embedding_dim: int, audio_aggregate_
packages/ltx-core/src/ltx_core/text_encoders/gemma/feature_extractor.py:103
Method__init__
( self, model: Gemma3ForConditionalGeneration | None = None, tokenizer: LTXVGemmaToken
packages/ltx-core/src/ltx_core/text_encoders/gemma/encoders/base_encoder.py:18
Method__init__
(self, dims: int, upscale_factors: tuple[int, int, int] = (2, 2, 2))
packages/ltx-core/src/ltx_core/model/upsampler/pixel_shuffle.py:25
Method__init__
(self, channels: int, mid_channels: Optional[int] = None, dims: int = 3)
packages/ltx-core/src/ltx_core/model/upsampler/res_block.py:16
Method__init__
(self, dims: int, stride: int, kernel_size: int = 5)
packages/ltx-core/src/ltx_core/model/upsampler/blur_downsample.py:14
Method__init__
( self, in_channels: int = 128, mid_channels: int = 512, num_blocks_per_stage:
packages/ltx-core/src/ltx_core/model/upsampler/model.py:24
Method__init__
(self, mid_channels: int, scale: float)
packages/ltx-core/src/ltx_core/model/upsampler/spatial_rational_resampler.py:32
Method__init__
( self, in_channels: int, with_conv: bool, causality_axis: CausalityAxis = Cau
packages/ltx-core/src/ltx_core/model/audio_vae/upsample.py:13
Method__init__
(self, latent_channels: int = 128)
packages/ltx-core/src/ltx_core/model/audio_vae/ops.py:64
Method__init__
Initialize the Decoder. Args: Arguments are configuration parameters, loaded from the audio VAE checkpoint config
packages/ltx-core/src/ltx_core/model/audio_vae/audio_vae.py:283
Method__init__
( self, in_channels: int, norm_type: NormType = NormType.GROUP, )
packages/ltx-core/src/ltx_core/model/audio_vae/attention.py:17
Method__init__
( self, in_channels: int, with_conv: bool, causality_axis: CausalityAxis = Cau
packages/ltx-core/src/ltx_core/model/audio_vae/downsample.py:18
Method__init__
( self, cutoff: float = 0.5, half_width: float = 0.6, stride: int = 1,
packages/ltx-core/src/ltx_core/model/audio_vae/vocoder.py:52
Method__init__
( self, ratio: int = 2, kernel_size: int | None = None, persistent: bool = Tru
packages/ltx-core/src/ltx_core/model/audio_vae/vocoder.py:83
← previousnext →701–800 of 1,165, ranked by callers