MCPcopy Create free account

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

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

↓ 1 callersFunctionmain
()
packages/ltx-pipelines/src/ltx_pipelines/distilled.py:183
↓ 1 callersFunctionmain
()
packages/ltx-pipelines/src/ltx_pipelines/t2a_one_stage.py:154
↓ 1 callersFunctionmain
CLI entry point for retake (regenerate a time region).
packages/ltx-pipelines/src/ltx_pipelines/retake.py:285
↓ 1 callersFunctionmain
()
packages/ltx-pipelines/src/ltx_pipelines/a2vid_two_stage.py:241
↓ 1 callersFunctionmain
()
packages/ltx-pipelines/src/ltx_pipelines/ti2vid_one_stage.py:188
↓ 1 callersFunctionmain
()
packages/ltx-pipelines/src/ltx_pipelines/keyframe_interpolation.py:236
↓ 1 callersFunctionmake_linear_nd
( dims: int, in_channels: int, out_channels: int, bias: bool = True, )
packages/ltx-core/src/ltx_core/model/video_vae/convolution.py:76
↓ 1 callersMethodmel_spectrogram
Compute log-mel spectrogram and auxiliary spectral quantities. Args: y: Waveform tensor of shape (B, T). Returns:
packages/ltx-core/src/ltx_core/model/audio_vae/vocoder.py:480
↓ 1 callersMethodmeta_model
(self, config: dict, module_ops: tuple[ModuleOps, ...])
packages/ltx-core/src/ltx_core/loader/single_gpu_model_builder.py:201
↓ 1 callersMethodmetadata
(self, path: str)
packages/ltx-core/src/ltx_core/loader/sft_loader.py:17
↓ 1 callersMethodmodel_config
(self)
packages/ltx-core/src/ltx_core/loader/single_gpu_model_builder.py:198
↓ 1 callersMethodmodel_context
Build the transformer, yield it, then free its memory on exit. Keyword arguments are forwarded to the underlying builder (e.g. ``video
packages/ltx-pipelines/src/ltx_pipelines/utils/blocks.py:319
↓ 1 callersFunctionnorm_and_concat_per_token_rms
Per-token RMSNorm normalization for V2 models. Args: encoded_text: [B, T, D, L] attention_mask: [B, T] binary mask Returns:
packages/ltx-core/src/ltx_core/text_encoders/gemma/feature_extractor.py:48
↓ 1 callersMethodnormalize
(self, x: torch.Tensor)
packages/ltx-core/src/ltx_core/model/video_vae/ops.py:79
↓ 1 callersFunctionpack_i420
Pack Y and UV planes into I420 layout for pyav. I420 packs the three planes into a single 2D array of height ``H * 3 // 2`` and width ``W``.
packages/ltx-pipelines/src/ltx_pipelines/utils/color_conversion.py:186
↓ 1 callersMethodparams
Return params effective for the given sigma (getter; single source of truth).
packages/ltx-core/src/ltx_core/components/guiders.py:332
↓ 1 callersFunctionpatchify
Rearrange spatial dimensions into channels. Divides image into patch_size x patch_size blocks and moves pixels from each block into separate
packages/ltx-core/src/ltx_core/model/video_vae/ops.py:6
↓ 1 callersMethodpatchify
( self, latents: torch.Tensor, )
packages/ltx-core/src/ltx_core/components/patchifiers.py:27
↓ 1 callersMethodpatchify
Flattens the audio latent tensor along time. Use `get_patch_grid_bounds` to derive timestamps for each latent frame based on the conf
packages/ltx-core/src/ltx_core/components/patchifiers.py:287
↓ 1 callersFunctionpatchify_lipdub_audio_reference_latent
Patchify audio VAE latents and build RoPE positions (optional negative shift for reference).
packages/ltx-pipelines/src/ltx_pipelines/lipdub.py:269
↓ 1 callersFunctionphi
Compute φⱼ(z) where z = -h (negative step size in log-space) φ₁(z) = (e^z - 1) / z φ₂(z) = (e^z - 1 - z) / z² φⱼ(z) = (e^z - Σₖ₌₀^(j-
packages/ltx-pipelines/src/ltx_pipelines/utils/res2s.py:4
↓ 1 callersFunctionprepare_tiles_for_encoding
Prepare tiles for VAE encoding. Args: video: Input video tensor (B, 3, F, H, W) in range [-1, 1] tiling_config: Tiling configurati
packages/ltx-core/src/ltx_core/model/video_vae/video_vae.py:413
↓ 1 callersMethodprepare_training_inputs
Prepare training inputs by processing video and audio modalities.
packages/ltx-trainer/src/ltx_trainer/training_strategies/flexible.py:260
↓ 1 callersFunctionpreprocess
(image: np.array, crf: float = DEFAULT_IMAGE_CRF)
packages/ltx-pipelines/src/ltx_pipelines/utils/media_io.py:693
↓ 1 callersFunctionpreprocess_dataset
Run the preprocessing pipeline with convention-based column detection.
packages/ltx-trainer/scripts/process_dataset.py:54
↓ 1 callersFunctionprint_config
Print configuration as a nicely formatted table with sections.
packages/ltx-trainer/src/ltx_trainer/config_display.py:12
↓ 1 callersFunctionprocess_media
Process videos and images to compute condition on videos. Args: input_path: Path to input video/image file or directory output_pat
packages/ltx-trainer/scripts/compute_reference.py:142
↓ 1 callersFunctionpush_to_hub
Push the trained LoRA weights to HuggingFace Hub.
packages/ltx-trainer/src/ltx_trainer/hf_hub_utils.py:15
↓ 1 callersFunctionquantize_model
Quantize a model using optimum-quanto. For large models with transformer_blocks, this function quantizes block-by-block on GPU then moves
packages/ltx-trainer/src/ltx_trainer/quantization.py:52
↓ 1 callersFunctionquantize_weight_to_fp8_per_tensor
Quantize a weight tensor to ``float8_e4m3fn`` with a per-tensor scale.
packages/ltx-core/src/ltx_core/quantization/fp8_scaled_mm.py:93
↓ 1 callersFunctionread_hdr_lora_config
Read HDR config from LoRA safetensors metadata. Returns ``None`` when the LoRA has no HDR metadata.
packages/ltx-pipelines/src/ltx_pipelines/hdr_ic_lora.py:168
↓ 1 callersMethodread_into
(self, target: dict[str, torch.Tensor], block_idx: int)
packages/ltx-core/src/ltx_core/block_streaming/disk.py:65
↓ 1 callersFunctionread_lora_reference_temporal_scale_factor
Read ``reference_temporal_scale_factor`` from LoRA safetensors metadata (default 1).
packages/ltx-pipelines/src/ltx_pipelines/iclora_utils.py:34
↓ 1 callersMethodrelease
Return a raw slot to the free list. The *buffer* must be the exact tensor object returned by :meth:`acquire` (reuse is keyed on its id
packages/ltx-core/src/ltx_core/block_streaming/pool.py:62
↓ 1 callersMethodresample_audio
Resample audio to the processor's target sample rate if needed.
packages/ltx-core/src/ltx_core/model/audio_vae/ops.py:36
↓ 1 callersMethodreset_parameters
(self)
packages/ltx-core/src/ltx_core/model/video_vae/convolution.py:158
↓ 1 callersFunctionresize_aspect_ratio_preserving
Resize image preserving aspect ratio (filling target long side). Preserves the input dimensions order. Args: image: Input image t
packages/ltx-pipelines/src/ltx_pipelines/utils/media_io.py:35
↓ 1 callersFunctionresolve_attr
Resolve a dotted attribute path like ``'model.language_model.layers'``.
packages/ltx-core/src/ltx_core/block_streaming/utils.py:25
↓ 1 callersFunctionresolve_cross_mask
Convert an attention_mask (scalar or tensor) to a (B, M) cross_mask tensor. Args: attention_mask: Scalar value applied uniformly, 1D tenso
packages/ltx-core/src/ltx_core/conditioning/mask_utils.py:13
↓ 1 callersFunctionresolve_path
(path: str)
packages/ltx-pipelines/src/ltx_pipelines/utils/args.py:214
↓ 1 callersFunctionrgb_to_yuv
Convert an RGB image to YUV. The image data is assumed to be in the range of ``[0, 1]``. Uses a single matrix multiply for better memory local
packages/ltx-pipelines/src/ltx_pipelines/utils/color_conversion.py:113
↓ 1 callersFunctionrgb_to_yuv420
Convert an RGB image to YUV 4:2:0 with chroma subsampling. Chroma is subsampled by averaging 2x2 pixel blocks (chroma siting ``(128, 128)``).
packages/ltx-pipelines/src/ltx_pipelines/utils/color_conversion.py:153
↓ 1 callersMethodsample
(self, batch_size: int, seq_length: int | None = None, device: torch.device = None)
packages/ltx-trainer/src/ltx_trainer/timestep_samplers.py:38
↓ 1 callersFunctionsave_image
Save an image tensor to a file. Args: image_tensor: Image tensor of shape [C, H, W] or [C, 1, H, W] in range [0, 1] or [0, 255].
packages/ltx-trainer/src/ltx_trainer/utils.py:53
↓ 1 callersFunctionset_attention_module_op
Build a ``ModuleOps`` that overrides the attention callables on every ``Attention`` submodule of a model. Applied via ``create_meta_model`` so
packages/ltx-core/src/ltx_core/loader/attention_ops.py:15
↓ 1 callersMethodset_gradient_checkpointing
Enable or disable gradient checkpointing for transformer blocks. Gradient checkpointing trades compute for memory by recomputing activations
packages/ltx-core/src/ltx_core/model/transformer/model.py:351
↓ 1 callersFunctionsplit_freqs_cis
(freqs: torch.Tensor, pad_size: int, num_attention_heads: int)
packages/ltx-core/src/ltx_core/model/transformer/rope.py:162
↓ 1 callersFunctionsplit_temporal
Split a temporal axis in video frame space into overlapping tiles. Args: tile_size_frames: Tile length in frames. overlap_frames:
packages/ltx-core/src/ltx_core/tiling.py:197
↓ 1 callersMethodstart_sampling
Start validation sampling progress tracking. Creates a task that shows current video and denoising step progress. Format: "Sampling X/
packages/ltx-trainer/src/ltx_trainer/progress.py:150
↓ 1 callersMethodstart_video
Start tracking a new video (resets step progress).
packages/ltx-trainer/src/ltx_trainer/progress.py:29
↓ 1 callersFunctionstate_with_conditionings
Apply a list of conditionings to a latent state. Iterates through the conditioning items and applies each one to the latent state in sequence.
packages/ltx-pipelines/src/ltx_pipelines/utils/helpers.py:244
↓ 1 callersMethodteardown
Remove hooks and release all resources.
packages/ltx-core/src/ltx_core/block_streaming/wrapper.py:77
↓ 1 callersFunctiontemporal_subsample
VAE-aligned temporal subsampling: keep frame 0, then every Nth frame.
packages/ltx-pipelines/src/ltx_pipelines/iclora_utils.py:80
↓ 1 callersMethodtile_modality
Slice *modality* to the tokens covered by *tile*. Selects generated tokens belonging to the tile's spatial region and conditioning tok
packages/ltx-core/src/ltx_core/modality_tiling.py:73
↓ 1 callersMethodto_dict
(self)
packages/ltx-core/src/ltx_core/text_encoders/gemma/config.py:71
↓ 1 callersMethodto_save_dict
Build dict suitable for torch.save -- recurses BaseModel sub-models, passes tensors/dicts through.
packages/ltx-trainer/src/ltx_trainer/training_state.py:33
↓ 1 callersFunctionto_vae_range
Map [0, 1] to [-1, 1] (VAE input convention).
packages/ltx-pipelines/src/ltx_pipelines/utils/media_io.py:96
↓ 1 callersMethodtokenize_with_weights
Tokenize the given text and return token IDs and attention weights. Args: text (str): The input string to tokenize.
packages/ltx-core/src/ltx_core/text_encoders/gemma/tokenizer.py:35
↓ 1 callersMethodtrain
Start the training process. Args: disable_progress_bars: Disable Rich progress bars (useful for multi-process runs).
packages/ltx-trainer/src/ltx_trainer/trainer.py:119
↓ 1 callersFunctiontrtllm_scaled_mm_usable
()
packages/ltx-core/src/ltx_core/quantization/trtllm_scaled_usable.py:18
↓ 1 callersMethodupdate_training
Update the training progress display. Args: loss: Current training loss lr: Current learning rate step_tim
packages/ltx-trainer/src/ltx_trainer/progress.py:122
↓ 1 callersFunctionupsample_video
Apply upsampling to the latent representation using the provided upsampler, with normalization and un-normalization based on the video encode
packages/ltx-core/src/ltx_core/model/upsampler/model.py:128
↓ 1 callersMethodupscale
(self, scale_factors: SpatioTemporalScaleFactors = VIDEO_SCALE_FACTORS)
packages/ltx-core/src/ltx_core/types.py:91
↓ 1 callersFunctionvalidate_output_dir
Validate and create output directory if it doesn't exist. Args: output_dir: Path to the output directory Returns: Path object
packages/ltx-trainer/scripts/split_scenes.py:105
↓ 1 callersFunctionvideo_editing_arg_parser
Base argument parser for video-editing pipelines (retake, extension, inpainting, sticker movement). Uses the same actions and conventions as basic
packages/ltx-pipelines/src/ltx_pipelines/utils/args.py:455
↓ 1 callersFunctionvideo_latent_from_file
Load video from a file, and construct the video latent conforming to video output shape. Args: video_encoder: Model used to encode pixel f
packages/ltx-pipelines/src/ltx_pipelines/utils/helpers.py:63
↓ 1 callersMethodwith_fuse_rule
Return a copy of this builder with the given LoRA fuse rule (e.g. from a quantization policy).
packages/ltx-core/src/ltx_core/loader/primitives.py:115
↓ 1 callersMethodwith_loras
Return a copy of this builder with the given LoRAs to fuse at build time.
packages/ltx-core/src/ltx_core/loader/primitives.py:107
↓ 1 callersMethodwith_sd_ops
Return a copy of this builder with the given state-dict key remapping ops.
packages/ltx-core/src/ltx_core/loader/primitives.py:99
Method__call__
( # noqa: PLR0913 self, prompt: str, seed: int, height: int, width: i
packages/ltx-pipelines/src/ltx_pipelines/lipdub.py:146
Method__call__
Generate video with IC-LoRA conditioning. Args: prompt: Text prompt for video generation. seed: Random seed f
packages/ltx-pipelines/src/ltx_pipelines/ic_lora.py:131
Method__call__
Generate video with IC-LoRA conditioning and HDR output. Returns a linear HDR float tensor ``[f, h, w, c]``. Args: seed: R
packages/ltx-pipelines/src/ltx_pipelines/hdr_ic_lora.py:298
Method__call__
( # noqa: PLR0913 self, prompt: str, negative_prompt: str, seed: int,
packages/ltx-pipelines/src/ltx_pipelines/ti2vid_two_stages_hq.py:114
Method__call__
( # noqa: PLR0913 self, prompt: str, negative_prompt: str, seed: int,
packages/ltx-pipelines/src/ltx_pipelines/ti2vid_two_stages.py:103
Method__call__
( # noqa: PLR0913 self, prompt: str, seed: int, height: int, width: i
packages/ltx-pipelines/src/ltx_pipelines/distilled.py:88
Method__call__
( self, prompt: str, negative_prompt: str, seed: int, num_frames: int,
packages/ltx-pipelines/src/ltx_pipelines/t2a_one_stage.py:94
Method__call__
Regenerate ``[start_time, end_time]`` of the source video (retake). Parameters ---------- video_path : str Path to
packages/ltx-pipelines/src/ltx_pipelines/retake.py:132
Method__call__
( # noqa: PLR0913 self, prompt: str, negative_prompt: str, seed: int,
packages/ltx-pipelines/src/ltx_pipelines/a2vid_two_stage.py:94
Method__call__
( # noqa: PLR0913 self, prompt: str, negative_prompt: str, seed: int,
packages/ltx-pipelines/src/ltx_pipelines/ti2vid_one_stage.py:102
Method__call__
( # noqa: PLR0913 self, prompt: str, negative_prompt: str, seed: int,
packages/ltx-pipelines/src/ltx_pipelines/keyframe_interpolation.py:104
Method__call__
Build transformer -> run denoising loop -> free transformer. Returns ``(video_state | None, audio_state | None)`` with cleared conditi
packages/ltx-pipelines/src/ltx_pipelines/utils/blocks.py:394
Method__call__
Encode *prompts* through Gemma -> embeddings processor, freeing each model after use.
packages/ltx-pipelines/src/ltx_pipelines/utils/blocks.py:525
Method__call__
Build video encoder → call *fn(encoder)* → free encoder.
packages/ltx-pipelines/src/ltx_pipelines/utils/blocks.py:579
Method__call__
Upsample *latent* using video encoder + spatial upsampler, then free both.
packages/ltx-pipelines/src/ltx_pipelines/utils/blocks.py:616
Method__call__
Decode *latent* to pixel-space video chunks. Decoder freed after exhaustion.
packages/ltx-pipelines/src/ltx_pipelines/utils/blocks.py:659
Method__call__
Decode audio *latent* through VAE decoder + vocoder, then free both.
packages/ltx-pipelines/src/ltx_pipelines/utils/blocks.py:702
Method__call__
Build audio encoder → call *fn(encoder)* → free encoder.
packages/ltx-pipelines/src/ltx_pipelines/utils/blocks.py:739
Method__call__
(self, frames: torch.Tensor)
packages/ltx-pipelines/src/ltx_pipelines/utils/color_conversion.py:109
Method__call__
( self, transformer: X0Model, video_state: LatentState | None, audio_state: La
packages/ltx-pipelines/src/ltx_pipelines/utils/types.py:88
Method__call__
( self, transformer: X0Model, video_state: LatentState | None, audio_state: La
packages/ltx-pipelines/src/ltx_pipelines/utils/denoisers.py:216
Method__call__
( self, transformer: X0Model, video_state: LatentState | None, audio_state: La
packages/ltx-pipelines/src/ltx_pipelines/utils/denoisers.py:256
Method__call__
( self, transformer: X0Model, video_state: LatentState | None, audio_state: La
packages/ltx-pipelines/src/ltx_pipelines/utils/denoisers.py:303
Method__call__
( self, parser: argparse.ArgumentParser, # noqa: ARG002 namespace: argparse.Namespace
packages/ltx-pipelines/src/ltx_pipelines/utils/args.py:30
Method__call__
( self, parser: argparse.ArgumentParser, # noqa: ARG002 namespace: argparse.Namespace
packages/ltx-pipelines/src/ltx_pipelines/utils/args.py:53
Method__call__
( self, parser: argparse.ArgumentParser, # noqa: ARG002 namespace: argparse.Namespace
packages/ltx-pipelines/src/ltx_pipelines/utils/args.py:70
Method__call__
( self, parser: argparse.ArgumentParser, # noqa: ARG002 namespace: argparse.Namespace
packages/ltx-pipelines/src/ltx_pipelines/utils/args.py:93
Method__call__
( self, parser: argparse.ArgumentParser, # noqa: ARG002 namespace: argparse.Namespace
packages/ltx-pipelines/src/ltx_pipelines/utils/args.py:127
Method__call__
(self, func: F)
packages/ltx-trainer/src/ltx_trainer/gpu_utils.py:58
Method__call__
(self, latent_state: LatentState, noise_scale: float)
packages/ltx-core/src/ltx_core/components/noisers.py:12
Method__call__
(self, latent_state: LatentState, noise_scale: float = 1.0)
packages/ltx-core/src/ltx_core/components/noisers.py:30
← previousnext →601–700 of 1,165, ranked by callers