MCPcopy Create free account

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

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

Methodregistry
(self)
packages/ltx-core/src/ltx_core/loader/single_gpu_model_builder.py:144
Methodrelease
(self, idx: int, event: torch.cuda.Event | None)
packages/ltx-core/src/ltx_core/block_streaming/source.py:111
Methodrelease
(self, idx: int, event: torch.cuda.Event | None)
packages/ltx-core/src/ltx_core/block_streaming/source.py:167
Functionres2s_audio_video_denoising_loop
Joint audio-video denoising loop using the res_2s second-order sampler. Iterates over the diffusion schedule with a two-stage Runge-Kutta ste
packages/ltx-pipelines/src/ltx_pipelines/utils/samplers.py:199
Functionresize_and_reflect_pad
Resize tensor to fit within target, then reflect-pad to exact dimensions. Unlike resize_and_center_crop which stretches and crops, this preserves
packages/ltx-pipelines/src/ltx_pipelines/utils/media_io.py:183
Methodsample
Sample timesteps for a batch. Args: batch_size: Number of timesteps to sample seq_length: (optional) Length of the seq
packages/ltx-trainer/src/ltx_trainer/timestep_samplers.py:10
Methodsample_for
(self, batch: torch.Tensor)
packages/ltx-trainer/src/ltx_trainer/timestep_samplers.py:41
Methodsample_for
Sample timesteps for a specific batch tensor. Args: batch: Input tensor of shape (batch_size, seq_length, ...) Returns:
packages/ltx-trainer/src/ltx_trainer/timestep_samplers.py:104
Functionsave_exr_tensor
Save a single tensor frame as EXR with linear sRGB colorspace metadata. Args: tensor: ``[H, W, C]`` or ``[C, H, W]`` float tensor.
packages/ltx-pipelines/src/ltx_pipelines/utils/media_io.py:705
Methodslot_nbytes
Byte size of the largest block; sizes a pool slot (16-byte aligned).
packages/ltx-core/src/ltx_core/block_streaming/source.py:28
Methodslot_nbytes
(self)
packages/ltx-core/src/ltx_core/block_streaming/source.py:91
Methodslot_nbytes
(self)
packages/ltx-core/src/ltx_core/block_streaming/source.py:161
Methodslot_nbytes
(self)
packages/ltx-core/src/ltx_core/block_streaming/pool.py:47
Functionsplit
(dimension_size: int)
packages/ltx-core/src/ltx_core/tiling.py:148
Functionsplit_by_count_temporal_causal
Split a temporal dimension by count with causal handling. Wraps :func:`split_by_count` with the same causal adjustment as :func:`split_tempora
packages/ltx-core/src/ltx_core/tiling.py:219
Functionsplit_temporal_causal
Split a temporal axis into overlapping tiles with causal handling. Each tile after the first is shifted back by 1 and its left ramp is increas
packages/ltx-core/src/ltx_core/tiling.py:172
Methodstage_2_height
(self)
packages/ltx-pipelines/src/ltx_pipelines/utils/constants.py:60
Methodstage_2_width
(self)
packages/ltx-pipelines/src/ltx_pipelines/utils/constants.py:64
Methodstep
Advance one step with SDE noise injection via get_sde_coeff. Args: sample: Current noisy sample. denoised_sample: Deno
packages/ltx-core/src/ltx_core/components/diffusion_steps.py:91
Methodstep
Advance one CFG++ Euler step. Args: sample: Current noisy latent x_t. denoised_sample: Conditioned denoised prediction
packages/ltx-core/src/ltx_core/components/diffusion_steps.py:142
Methodtiles
All tiles for the configured tiling layout.
packages/ltx-core/src/ltx_core/modality_tiling.py:67
Methodto_callable
Resolve to a concrete masked callable. Same backend classes as :meth:`AttentionFunction.to_callable`; the protocol returned just exposes
packages/ltx-core/src/ltx_core/model/transformer/attention.py:400
Methodto_latent
(v: int, scale: int, max_v: int)
packages/ltx-trainer/src/ltx_trainer/training_strategies/flexible.py:557
Methodto_torch_shape
(self)
packages/ltx-core/src/ltx_core/types.py:111
Methodtoken_count
Number of tokens after patchification.
packages/ltx-core/src/ltx_core/types.py:114
Methodunpatchify
( self, latents: torch.Tensor, output_shape: VideoLatentShape, )
packages/ltx-core/src/ltx_core/components/patchifiers.py:41
Methodunpatchify
Restores the `(B, C, T, F)` spectrogram tensor from flattened patches. Use `get_patch_grid_bounds` to recompute the timestamps that d
packages/ltx-core/src/ltx_core/components/patchifiers.py:308
Methodvalidate_at_least_one_generated
Ensure at least one modality has is_generated=true.
packages/ltx-trainer/src/ltx_trainer/training_strategies/flexible.py:166
Methodvalidate_audio_intrinsic_regions
Reject video-only intrinsic regions on the audio modality.
packages/ltx-trainer/src/ltx_trainer/training_strategies/flexible.py:175
Methodvalidate_exactly_one_modality
(self)
packages/ltx-trainer/src/ltx_trainer/config.py:45
Methodvalidate_exactly_one_modality
(self)
packages/ltx-trainer/src/ltx_trainer/config.py:74
Methodvalidate_exactly_one_modality
(self)
packages/ltx-trainer/src/ltx_trainer/config.py:108
Methodvalidate_exactly_one_modality
(self)
packages/ltx-trainer/src/ltx_trainer/config.py:125
Methodvalidate_frozen_modality_conflicts
(self)
packages/ltx-trainer/src/ltx_trainer/config.py:212
Methodvalidate_hub_config
Validate that hub_model_id is not None when push_to_hub is True.
packages/ltx-trainer/src/ltx_trainer/config.py:712
Methodvalidate_images
Validate that number of images (if provided) matches number of prompts.
packages/ltx-trainer/src/ltx_trainer/config.py:570
Methodvalidate_model_path
Validate that model_path is either a valid URL or an existing local path.
packages/ltx-trainer/src/ltx_trainer/config.py:263
Methodvalidate_num_frames_constraint
(self)
packages/ltx-trainer/src/ltx_trainer/config.py:51
Methodvalidate_num_frames_constraint
(self)
packages/ltx-trainer/src/ltx_trainer/config.py:80
Methodvalidate_output_modality_requirements
Validate output modality settings when validation is configured.
packages/ltx-trainer/src/ltx_trainer/config.py:657
Methodvalidate_preprocessed_data_root
Validate that preprocessed_data_root exists.
packages/ltx-trainer/src/ltx_trainer/config.py:419
Methodvalidate_reference_videos
Validate that number of reference videos (if provided) matches number of prompts.
packages/ltx-trainer/src/ltx_trainer/config.py:587
Methodvalidate_scaled_reference_dimensions
Validate that scaled reference dimensions are valid when reference_downscale_factor > 1.
packages/ltx-trainer/src/ltx_trainer/config.py:624
Methodvalidate_strategy_compatibility
Validate that training strategy and other configurations are compatible.
packages/ltx-trainer/src/ltx_trainer/config.py:810
Methodvalidate_video_dims
(cls, v: tuple[int, int, int] | None)
packages/ltx-trainer/src/ltx_trainer/config.py:199
Methodvalidate_video_dims
Validate video dimensions for LTX-2 compatibility.
packages/ltx-trainer/src/ltx_trainer/config.py:481
Methodweight
(self)
packages/ltx-core/src/ltx_core/model/video_vae/convolution.py:262
Methodweight
(self)
packages/ltx-core/src/ltx_core/model/video_vae/convolution.py:316
Methodwith_additional_allowed_keys
Create a new SDOps instance that only passes keys present in *keys* (post-replacement). If allowed_keys already exists, the sets are merged vi
packages/ltx-core/src/ltx_core/loader/sd_ops.py:82
Methodwith_attention
Return a new ``DiffusionStage`` that pins the transformer build to ``attention``. Functional: never mutates ``self``. The returned stage share
packages/ltx-pipelines/src/ltx_pipelines/utils/blocks.py:269
Methodwith_fuse_rule
(self, fuse_rule: FuseRule)
packages/ltx-core/src/ltx_core/block_streaming/builder.py:166
Methodwith_fuse_rule
(self, fuse_rule: FuseRule)
packages/ltx-core/src/ltx_core/loader/single_gpu_model_builder.py:193
Methodwith_lora_load_device
(self, device: torch.device)
packages/ltx-core/src/ltx_core/block_streaming/builder.py:162
Methodwith_lora_load_device
Return a copy of this builder that loads LoRA weights onto the given device.
packages/ltx-core/src/ltx_core/loader/primitives.py:111
Methodwith_lora_load_device
(self, device: torch.device)
packages/ltx-core/src/ltx_core/loader/single_gpu_model_builder.py:188
Methodwith_loras
(self, loras: tuple[LoraPathStrengthAndSDOps, ...])
packages/ltx-core/src/ltx_core/block_streaming/builder.py:152
Methodwith_loras
(self, loras: tuple[LoraPathStrengthAndSDOps, ...])
packages/ltx-core/src/ltx_core/loader/single_gpu_model_builder.py:178
Methodwith_module_ops
(self, module_ops: tuple[ModuleOps, ...])
packages/ltx-core/src/ltx_core/block_streaming/builder.py:147
Methodwith_module_ops
(self, module_ops: tuple[ModuleOps, ...])
packages/ltx-core/src/ltx_core/loader/single_gpu_model_builder.py:173
Methodwith_registry
(self, registry: Registry)
packages/ltx-core/src/ltx_core/block_streaming/builder.py:157
Methodwith_registry
Return a copy of this builder using the given weight registry for allocation.
packages/ltx-core/src/ltx_core/loader/primitives.py:78
Methodwith_registry
(self, registry: Registry)
packages/ltx-core/src/ltx_core/loader/single_gpu_model_builder.py:183
Methodwith_sd_ops
(self, sd_ops: SDOps | None)
packages/ltx-core/src/ltx_core/block_streaming/builder.py:142
Methodwith_sd_ops
(self, sd_ops: SDOps | None)
packages/ltx-core/src/ltx_core/loader/single_gpu_model_builder.py:168
Methodwrapper
(*args, **kwargs)
packages/ltx-trainer/src/ltx_trainer/gpu_utils.py:60
← previous1,101–1,165 of 1,165, ranked by callers