MCPcopy Create free account

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

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

↓ 1 callersMethod_build_embeddings_processor
Build the embeddings processor on the target device.
packages/ltx-pipelines/src/ltx_pipelines/utils/blocks.py:516
↓ 1 callersMethod_build_encoder
(self)
packages/ltx-pipelines/src/ltx_pipelines/utils/blocks.py:576
↓ 1 callersFunction_build_gemma_llm_key_ops
Build the checkpoint-key remapping for the Gemma multimodal encoder. The vision-tower mapping differs between transformers <5 and >=5 because
packages/ltx-core/src/ltx_core/text_encoders/gemma/encoders/encoder_configurator.py:107
↓ 1 callersMethod_build_pinned_source
Pre-load each block into its own contiguous pinned CPU buffer with LoRA fusion.
packages/ltx-core/src/ltx_core/block_streaming/builder.py:280
↓ 1 callersFunction_build_prequant_fold_sd_ops
Build sd-ops that fold prequant ``*_scale`` siblings into their parent tensor at load time. *scales* is keyed by the **post-rename** param key
packages/ltx-core/src/ltx_core/quantization/fp8_cast.py:274
↓ 1 callersFunction_build_sharded_dataloader
Return a DataLoader over this rank's interleaved shard of ``dataset``. When ``overwrite`` is False, items whose outputs already exist (per ``i
packages/ltx-trainer/scripts/process_captions.py:375
↓ 1 callersFunction_build_sharded_dataloader
Return a DataLoader over this rank's interleaved shard of ``dataset``. When ``overwrite`` is False, items whose outputs already exist (per ``i
packages/ltx-trainer/scripts/process_videos.py:1343
↓ 1 callersFunction_build_spatial_crop_mask
Build a binary mask from a pixel-space spatial region (y1, x1, y2, x2).
packages/ltx-trainer/src/ltx_trainer/validation_runner.py:1168
↓ 1 callersMethod_build_stg_perturbation_config
Build STG perturbation config that skips self-attention in the specified blocks.
packages/ltx-trainer/src/ltx_trainer/validation_runner.py:1074
↓ 1 callersMethod_build_text_encoder
Build the Gemma text encoder (non-streaming path).
packages/ltx-pipelines/src/ltx_pipelines/utils/blocks.py:512
↓ 1 callersMethod_build_transformer
(self, *, device: torch.device | None = None, **kwargs: object)
packages/ltx-pipelines/src/ltx_pipelines/utils/blocks.py:289
↓ 1 callersFunction_build_transformer_linear_downcast_map
Build the sd_ops downcast map from the same suffix registry as the matcher.
packages/ltx-core/src/ltx_core/quantization/fp8_cast.py:164
↓ 1 callersFunction_build_vllm_args
Construct the `vllm serve ...` argv.
packages/ltx-trainer/scripts/serve_captioner.py:56
↓ 1 callersMethod_cache_prompt_embeddings
Load text encoder, encode all validation prompts, cache on CPU, then unload.
packages/ltx-trainer/src/ltx_trainer/validation_runner.py:250
↓ 1 callersMethod_caption_video
Caption a video, sending its audio track as a separate modality. vLLM does not extract a video's audio on its own (and its ``use_audio
packages/ltx-trainer/src/ltx_trainer/captioning.py:245
↓ 1 callersFunction_causal_pad_free_and_conv
Causal-pad *x*, free it, then run the raw ``nn.Conv3d``. This avoids the peak where both the original and padded tensors are live simultaneous
packages/ltx-core/src/ltx_core/model/video_vae/memory_efficient_decode.py:221
↓ 1 callersFunction_channelwise_normalize
(x: torch.Tensor)
packages/ltx-pipelines/src/ltx_pipelines/utils/samplers.py:155
↓ 1 callersFunction_check_uninitialized
Return names of any parameters/buffers still on meta device.
packages/ltx-core/src/ltx_core/loader/single_gpu_model_builder.py:32
↓ 1 callersFunction_clamp_tile_to_latent
Clamp frame, height, and width tilings to the latent's extents. ``latent_shape`` is ``(F, H, W)`` in latent units.
packages/ltx-pipelines/src/ltx_pipelines/hdr_ic_lora.py:130
↓ 1 callersMethod_clean_llm_prefixes
Remove common LLM-generated prefixes from captions.
packages/ltx-trainer/scripts/process_captions.py:223
↓ 1 callersMethod_cleanup_checkpoints
Clean up old checkpoints.
packages/ltx-trainer/src/ltx_trainer/trainer.py:978
↓ 1 callersFunction_cleanup_iter
Wrap an iterator to clean up *model* memory once it is exhausted or abandoned.
packages/ltx-pipelines/src/ltx_pipelines/utils/blocks.py:180
↓ 1 callersMethod_cleanup_training_states
Clean up old training state files, using the same keep_last_n as checkpoints.
packages/ltx-trainer/src/ltx_trainer/trainer.py:1057
↓ 1 callersMethod_collect_trainable_params
Collect trainable parameters based on training mode.
packages/ltx-trainer/src/ltx_trainer/trainer.py:432
↓ 1 callersFunction_collect_videos
Return a list of .mp4/.mov files from *input_path* (file or directory).
packages/ltx-pipelines/src/ltx_pipelines/hdr_ic_lora.py:669
↓ 1 callersMethod_compute_audio_timings
Builds a `(B, 1, T, 2)` tensor containing timestamps for each latent frame. This helper method underpins `get_patch_grid_bounds` for
packages/ltx-core/src/ltx_core/components/patchifiers.py:251
↓ 1 callersMethod_compute_mel
Compute log-mel spectrogram from waveform using causal STFT bases. Args: audio: Waveform tensor of shape (B, C, T). Return
packages/ltx-core/src/ltx_core/model/audio_vae/vocoder.py:539
↓ 1 callersFunction_compute_right_pad_order
Compute the index permutation that places valid tokens before pads in each row. Stable sort: valid tokens keep their relative order. Idempotent fo
packages/ltx-core/src/ltx_core/text_encoders/gemma/embeddings_processor.py:22
↓ 1 callersMethod_compute_spatial_crop_mask
Compute float mask for spatial crop region (y1, x1, y2, x2) in pixel coords. Returns [B, seq_len] in {0, 1}.
packages/ltx-trainer/src/ltx_trainer/training_strategies/flexible.py:542
↓ 1 callersFunction_compute_temporal_subsample_indices
Compute VAE-aligned temporal subsample indices. Keeps frame 0 (the VAE's standalone first-frame latent), then takes every ``factor``-th frame
packages/ltx-trainer/scripts/process_videos.py:383
↓ 1 callersFunction_concatenate_videos_side_by_side
Concatenate two [C, F, H, W] videos horizontally, matching height and padding frames.
packages/ltx-trainer/src/ltx_trainer/validation_runner.py:1189
↓ 1 callersFunction_condition_targets_audio
Check if a validation condition targets the audio modality.
packages/ltx-trainer/src/ltx_trainer/config.py:173
↓ 1 callersFunction_condition_targets_video
Check if a validation condition targets the video modality.
packages/ltx-trainer/src/ltx_trainer/config.py:164
↓ 1 callersMethod_copy_to_gpu
Enqueue H2D copy + LoRA fusion on the copy stream and wait on compute. *cpu_buffer* is one contiguous source buffer carved by the same layout
packages/ltx-core/src/ltx_core/block_streaming/provider.py:84
↓ 1 callersMethod_create_audio_tools
Create AudioLatentTools for the given video duration.
packages/ltx-trainer/src/ltx_trainer/validation_runner.py:1020
↓ 1 callersMethod_create_conditionings
Create conditioning items for video generation. Args: conditioning_attention_strength: Scalar attention weight in [0, 1].
packages/ltx-pipelines/src/ltx_pipelines/ic_lora.py:288
↓ 1 callersFunction_create_feature_extractor
Select and create the appropriate feature extractor based on config. Detection logic: - V1: V2 config keys absent → projection lives in transf
packages/ltx-core/src/ltx_core/text_encoders/gemma/encoders/encoder_configurator.py:65
↓ 1 callersFunction_create_model_card
Generate and save a model card for the trained model.
packages/ltx-trainer/src/ltx_trainer/hf_hub_utils.py:113
↓ 1 callersMethod_create_scheduler
Create learning rate scheduler based on config.
packages/ltx-trainer/src/ltx_trainer/trainer.py:705
↓ 1 callersMethod_create_stage_conditionings
( self, images: list[ImageConditioningInput], reference_video_path: str, refer
packages/ltx-pipelines/src/ltx_pipelines/lipdub.py:103
↓ 1 callersMethod_create_video_tools
Create VideoLatentTools for the given output dimensions.
packages/ltx-trainer/src/ltx_trainer/validation_runner.py:1007
↓ 1 callersMethod_decode_video
Decode latent to HDR video, optionally cropping to target size. Args: crop_size: ``(width, height)`` to crop decoded frames to, or
packages/ltx-pipelines/src/ltx_pipelines/hdr_ic_lora.py:543
↓ 1 callersMethod_decode_video
Decode latents to video frames.
packages/ltx-trainer/scripts/decode_latents.py:227
↓ 1 callersMethod_denormalize_latents
(self, sample: torch.Tensor)
packages/ltx-core/src/ltx_core/model/audio_vae/audio_vae.py:401
↓ 1 callersMethod_discover_samples
Discover all valid sample files across all data sources. Uses a fast two-pass approach: first globs all sources in parallel to build f
packages/ltx-trainer/src/ltx_trainer/datasets.py:158
↓ 1 callersFunction_encode_chunks_threaded
Run libx264 frame.encode + container.mux on a background thread while the caller produces numpy chunks on the current thread. The 1-slot queue
packages/ltx-pipelines/src/ltx_pipelines/utils/media_io.py:412
↓ 1 callersMethod_encode_conditioning_media
Load VAE encoders, encode all conditioning media, cache on CPU, then unload.
packages/ltx-trainer/src/ltx_trainer/validation_runner.py:298
↓ 1 callersMethod_encode_image
Encode a conditioning image to latent space. Returns [B, C, 1, H', W'] on CPU.
packages/ltx-trainer/src/ltx_trainer/validation_runner.py:1116
↓ 1 callersMethod_encode_reference_audio_vae_latent
(self, video_path: str)
packages/ltx-pipelines/src/ltx_pipelines/lipdub.py:138
↓ 1 callersMethod_encode_sample_conditions
Encode all conditioning media for a single validation sample.
packages/ltx-trainer/src/ltx_trainer/validation_runner.py:344
↓ 1 callersMethod_encode_temporal_condition_media
Encode media for prefix/suffix/mask/spatial_crop/frozen-video conditions.
packages/ltx-trainer/src/ltx_trainer/validation_runner.py:429
↓ 1 callersFunction_encode_video
Encode video into non-patchified latent representation. Args: vae: Video VAE encoder model video: Input tensor of shape [B, C, F,
packages/ltx-trainer/scripts/process_videos.py:607
↓ 1 callersMethod_ensure_scheduled
Schedule a read for *idx* if one is not already pending.
packages/ltx-core/src/ltx_core/block_streaming/source.py:125
↓ 1 callersMethod_extract_audio
Extract audio track from a video file, trimmed/padded to match video duration.
packages/ltx-trainer/scripts/process_videos.py:196
↓ 1 callersFunction_extract_audio_wav
Extract the audio track to a 16 kHz mono PCM WAV (matches pretraining). Raises ``CalledProcessError`` when the video has no audio stream.
packages/ltx-trainer/src/ltx_trainer/captioning.py:445
↓ 1 callersMethod_fill_sample_data_files
Add a valid sample to the sample_files tracking.
packages/ltx-trainer/src/ltx_trainer/datasets.py:240
↓ 1 callersMethod_filter_valid_videos
Filter out videos with insufficient frames.
packages/ltx-trainer/scripts/process_videos.py:221
↓ 1 callersFunction_final_norm_and_conv_out
Workspace-based final norm + [ada] + SiLU + conv_out + unpatchify.
packages/ltx-core/src/ltx_core/model/video_vae/memory_efficient_decode.py:457
↓ 1 callersMethod_finalize_output
(self, h: torch.Tensor)
packages/ltx-core/src/ltx_core/model/audio_vae/audio_vae.py:217
↓ 1 callersMethod_finalize_output
(self, h: torch.Tensor)
packages/ltx-core/src/ltx_core/model/audio_vae/audio_vae.py:486
↓ 1 callersMethod_find_checkpoint
Find the checkpoint file to load, handling both file and directory paths.
packages/ltx-trainer/src/ltx_trainer/trainer.py:627
↓ 1 callersFunction_find_temporal_split_size
Find chunk size for in-place temporal convolution. The chunk size ensures the last chunk has at least 3 frames (the temporal kernel size), avo
packages/ltx-core/src/ltx_core/model/video_vae/memory_efficient_decode.py:78
↓ 1 callersMethod_fuse_block_loras
Fuse LoRA deltas directly into GPU block weights via ``fuse_rule``.
packages/ltx-core/src/ltx_core/block_streaming/provider.py:130
↓ 1 callersMethod_generate_sample
Generate one sample: build conditioned states, denoise, decode.
packages/ltx-trainer/src/ltx_trainer/validation_runner.py:484
↓ 1 callersFunction_get_ancestral_step
Compute ``(sigma_down, sigma_up)`` for one DDIM ancestral sampling step. Both inputs are in the rescaled parameterization ``sigma / alpha``. R
packages/ltx-core/src/ltx_core/components/diffusion_steps.py:7
↓ 1 callersMethod_get_bucket_index
Map sigma value to bucket index.
packages/ltx-trainer/src/ltx_trainer/sigma_tracker.py:36
↓ 1 callersMethod_get_chunk_sizes
(self, batch_size: int)
packages/ltx-core/src/ltx_core/batch_split.py:57
↓ 1 callersFunction_get_device
()
packages/ltx-core/src/ltx_core/loader/fuse_loras.py:74
↓ 1 callersFunction_get_media_files
Get all media files from the input path.
packages/ltx-trainer/scripts/caption_videos.py:193
↓ 1 callersFunction_get_meta_data
Get set of existing reference video paths without loading the actual files. Args: output_path: Path to the reference video paths file
packages/ltx-trainer/scripts/compute_reference.py:84
↓ 1 callersMethod_get_prompt_embeddings
Move cached prompt embeddings to device, returning (v_pos, a_pos, v_neg, a_neg).
packages/ltx-trainer/src/ltx_trainer/validation_runner.py:1028
↓ 1 callersFunction_get_quanto_dtype
Map precision string to quanto dtype.
packages/ltx-trainer/src/ltx_trainer/quantization.py:171
↓ 1 callersMethod_get_shift_for_sequence_length
( seq_length: int, min_tokens: int = 1024, max_tokens: int = 4096, min_shift:
packages/ltx-trainer/src/ltx_trainer/timestep_samplers.py:122
↓ 1 callersMethod_group_tiles_by_temporal_slice
Group tiles by their temporal output slice.
packages/ltx-core/src/ltx_core/model/video_vae/video_vae.py:926
↓ 1 callersMethod_infer_reference_downscale_factor
Infer the reference downscale factor from target and reference dimensions.
packages/ltx-trainer/src/ltx_trainer/training_strategies/video_to_video.py:261
↓ 1 callersMethod_infer_reference_scale_factors_from_config
Infer spatial and temporal scale factors by peeking at one sample pair.
packages/ltx-trainer/src/ltx_trainer/training_strategies/flexible.py:320
↓ 1 callersMethod_infer_scale_factor
Infer spatial scale factor between condition and target resolutions.
packages/ltx-trainer/src/ltx_trainer/training_strategies/flexible.py:687
↓ 1 callersMethod_infer_temporal_scale_factor
Infer temporal scale factor between condition and target latent frame counts. The first latent frame encodes a single pixel frame (the VAE's c
packages/ltx-trainer/src/ltx_trainer/training_strategies/flexible.py:701
↓ 1 callersMethod_init_audio
Initialize audio-specific components.
packages/ltx-core/src/ltx_core/model/transformer/model.py:173
↓ 1 callersMethod_init_audio_video
Initialize audio-video cross-attention components.
packages/ltx-core/src/ltx_core/model/transformer/model.py:201
↓ 1 callersMethod_init_dataloader
Initialize the training data loader using the strategy's data sources.
packages/ltx-trainer/src/ltx_trainer/trainer.py:656
↓ 1 callersMethod_init_optimizer
Initialize the optimizer and learning rate scheduler.
packages/ltx-trainer/src/ltx_trainer/trainer.py:685
↓ 1 callersMethod_init_preprocessors
Initialize preprocessors for LTX.
packages/ltx-core/src/ltx_core/model/transformer/model.py:226
↓ 1 callersMethod_init_timestep_sampler
Initialize the timestep sampler based on the config.
packages/ltx-trainer/src/ltx_trainer/trainer.py:446
↓ 1 callersMethod_init_transformer_blocks
Initialize transformer blocks for LTX.
packages/ltx-core/src/ltx_core/model/transformer/model.py:302
↓ 1 callersMethod_init_video
Initialize video-specific components.
packages/ltx-core/src/ltx_core/model/transformer/model.py:149
↓ 1 callersMethod_init_wandb
Initialize Weights & Biases run, resuming an existing run if its id is provided.
packages/ltx-trainer/src/ltx_trainer/trainer.py:1094
↓ 1 callersMethod_initialize_noisy_target
Add noise to latents and create training targets. Returns (noisy, targets, timesteps, mask, sigmas).
packages/ltx-trainer/src/ltx_trainer/training_strategies/flexible.py:449
↓ 1 callersFunction_is_fp8_cast_linear
Return True if *module_name* names a Linear that should be fp8-cast.
packages/ltx-core/src/ltx_core/quantization/fp8_cast.py:139
↓ 1 callersMethod_is_video_file
(path: str | Path)
packages/ltx-trainer/src/ltx_trainer/captioning.py:144
↓ 1 callersFunction_linear_to_fp8linear
Create an ``FP8Linear`` matching the shape/bias of *layer*.
packages/ltx-core/src/ltx_core/quantization/fp8_scaled_mm.py:115
↓ 1 callersFunction_linear_to_srgb
Linear -> sRGB OETF per IEC 61966-2-1. Input assumed in [0, 1].
packages/ltx-pipelines/src/ltx_pipelines/utils/media_io.py:740
↓ 1 callersMethod_load_and_downsample_mask
Load a mask image/video and downsample to latent-space dimensions. Returns a binary float tensor of shape [1, F', H', W'] where F', H', W' are
packages/ltx-trainer/src/ltx_trainer/validation_runner.py:932
↓ 1 callersMethod_load_audio_mask
Load an audio mask (.pt or .wav) and resample to target audio latent length. Returns a float tensor of shape [1, num_tokens] in patchified tok
packages/ltx-trainer/src/ltx_trainer/validation_runner.py:977
↓ 1 callersMethod_load_caption_data
Load captions and compute their output embedding paths.
packages/ltx-trainer/scripts/process_captions.py:146
↓ 1 callersMethod_load_caption_data_from_csv
Load captions from a CSV file and compute output embedding paths.
packages/ltx-trainer/scripts/process_captions.py:168
↓ 1 callersMethod_load_caption_data_from_json
Load captions from a JSON file and compute output embedding paths.
packages/ltx-trainer/scripts/process_captions.py:185
↓ 1 callersMethod_load_caption_data_from_jsonl
Load captions from a JSONL file and compute output embedding paths.
packages/ltx-trainer/scripts/process_captions.py:206
↓ 1 callersMethod_load_checkpoint
Load checkpoint if specified in config, then resolve resume state.
packages/ltx-trainer/src/ltx_trainer/trainer.py:465
↓ 1 callersMethod_load_decoder_components
Load VAE decoder, audio decoder, and vocoder. Kept on CPU until generation.
packages/ltx-trainer/src/ltx_trainer/validation_runner.py:403
← previousnext →301–400 of 1,165, ranked by callers