Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Lightricks/LTX-2
/ functions
Functions
1,165 in github.com/Lightricks/LTX-2
⨍
Functions
1,165
◇
Types & classes
322
↳
Endpoints
1
Method
registry
(self)
packages/ltx-core/src/ltx_core/loader/single_gpu_model_builder.py:144
Method
release
(self, idx: int, event: torch.cuda.Event | None)
packages/ltx-core/src/ltx_core/block_streaming/source.py:111
Method
release
(self, idx: int, event: torch.cuda.Event | None)
packages/ltx-core/src/ltx_core/block_streaming/source.py:167
Function
res2s_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
Function
resize_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
Method
sample
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
Method
sample_for
(self, batch: torch.Tensor)
packages/ltx-trainer/src/ltx_trainer/timestep_samplers.py:41
Method
sample_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
Function
save_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
Method
slot_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
Method
slot_nbytes
(self)
packages/ltx-core/src/ltx_core/block_streaming/source.py:91
Method
slot_nbytes
(self)
packages/ltx-core/src/ltx_core/block_streaming/source.py:161
Method
slot_nbytes
(self)
packages/ltx-core/src/ltx_core/block_streaming/pool.py:47
Function
split
(dimension_size: int)
packages/ltx-core/src/ltx_core/tiling.py:148
Function
split_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
Function
split_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
Method
stage_2_height
(self)
packages/ltx-pipelines/src/ltx_pipelines/utils/constants.py:60
Method
stage_2_width
(self)
packages/ltx-pipelines/src/ltx_pipelines/utils/constants.py:64
Method
step
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
Method
step
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
Method
tiles
All tiles for the configured tiling layout.
packages/ltx-core/src/ltx_core/modality_tiling.py:67
Method
to_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
Method
to_latent
(v: int, scale: int, max_v: int)
packages/ltx-trainer/src/ltx_trainer/training_strategies/flexible.py:557
Method
to_torch_shape
(self)
packages/ltx-core/src/ltx_core/types.py:111
Method
token_count
Number of tokens after patchification.
packages/ltx-core/src/ltx_core/types.py:114
Method
unpatchify
( self, latents: torch.Tensor, output_shape: VideoLatentShape, )
packages/ltx-core/src/ltx_core/components/patchifiers.py:41
Method
unpatchify
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
Method
validate_at_least_one_generated
Ensure at least one modality has is_generated=true.
packages/ltx-trainer/src/ltx_trainer/training_strategies/flexible.py:166
Method
validate_audio_intrinsic_regions
Reject video-only intrinsic regions on the audio modality.
packages/ltx-trainer/src/ltx_trainer/training_strategies/flexible.py:175
Method
validate_exactly_one_modality
(self)
packages/ltx-trainer/src/ltx_trainer/config.py:45
Method
validate_exactly_one_modality
(self)
packages/ltx-trainer/src/ltx_trainer/config.py:74
Method
validate_exactly_one_modality
(self)
packages/ltx-trainer/src/ltx_trainer/config.py:108
Method
validate_exactly_one_modality
(self)
packages/ltx-trainer/src/ltx_trainer/config.py:125
Method
validate_frozen_modality_conflicts
(self)
packages/ltx-trainer/src/ltx_trainer/config.py:212
Method
validate_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
Method
validate_images
Validate that number of images (if provided) matches number of prompts.
packages/ltx-trainer/src/ltx_trainer/config.py:570
Method
validate_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
Method
validate_num_frames_constraint
(self)
packages/ltx-trainer/src/ltx_trainer/config.py:51
Method
validate_num_frames_constraint
(self)
packages/ltx-trainer/src/ltx_trainer/config.py:80
Method
validate_output_modality_requirements
Validate output modality settings when validation is configured.
packages/ltx-trainer/src/ltx_trainer/config.py:657
Method
validate_preprocessed_data_root
Validate that preprocessed_data_root exists.
packages/ltx-trainer/src/ltx_trainer/config.py:419
Method
validate_reference_videos
Validate that number of reference videos (if provided) matches number of prompts.
packages/ltx-trainer/src/ltx_trainer/config.py:587
Method
validate_scaled_reference_dimensions
Validate that scaled reference dimensions are valid when reference_downscale_factor > 1.
packages/ltx-trainer/src/ltx_trainer/config.py:624
Method
validate_strategy_compatibility
Validate that training strategy and other configurations are compatible.
packages/ltx-trainer/src/ltx_trainer/config.py:810
Method
validate_video_dims
(cls, v: tuple[int, int, int] | None)
packages/ltx-trainer/src/ltx_trainer/config.py:199
Method
validate_video_dims
Validate video dimensions for LTX-2 compatibility.
packages/ltx-trainer/src/ltx_trainer/config.py:481
Method
weight
(self)
packages/ltx-core/src/ltx_core/model/video_vae/convolution.py:262
Method
weight
(self)
packages/ltx-core/src/ltx_core/model/video_vae/convolution.py:316
Method
with_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
Method
with_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
Method
with_fuse_rule
(self, fuse_rule: FuseRule)
packages/ltx-core/src/ltx_core/block_streaming/builder.py:166
Method
with_fuse_rule
(self, fuse_rule: FuseRule)
packages/ltx-core/src/ltx_core/loader/single_gpu_model_builder.py:193
Method
with_lora_load_device
(self, device: torch.device)
packages/ltx-core/src/ltx_core/block_streaming/builder.py:162
Method
with_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
Method
with_lora_load_device
(self, device: torch.device)
packages/ltx-core/src/ltx_core/loader/single_gpu_model_builder.py:188
Method
with_loras
(self, loras: tuple[LoraPathStrengthAndSDOps, ...])
packages/ltx-core/src/ltx_core/block_streaming/builder.py:152
Method
with_loras
(self, loras: tuple[LoraPathStrengthAndSDOps, ...])
packages/ltx-core/src/ltx_core/loader/single_gpu_model_builder.py:178
Method
with_module_ops
(self, module_ops: tuple[ModuleOps, ...])
packages/ltx-core/src/ltx_core/block_streaming/builder.py:147
Method
with_module_ops
(self, module_ops: tuple[ModuleOps, ...])
packages/ltx-core/src/ltx_core/loader/single_gpu_model_builder.py:173
Method
with_registry
(self, registry: Registry)
packages/ltx-core/src/ltx_core/block_streaming/builder.py:157
Method
with_registry
Return a copy of this builder using the given weight registry for allocation.
packages/ltx-core/src/ltx_core/loader/primitives.py:78
Method
with_registry
(self, registry: Registry)
packages/ltx-core/src/ltx_core/loader/single_gpu_model_builder.py:183
Method
with_sd_ops
(self, sd_ops: SDOps | None)
packages/ltx-core/src/ltx_core/block_streaming/builder.py:142
Method
with_sd_ops
(self, sd_ops: SDOps | None)
packages/ltx-core/src/ltx_core/loader/single_gpu_model_builder.py:168
Method
wrapper
(*args, **kwargs)
packages/ltx-trainer/src/ltx_trainer/gpu_utils.py:60
← previous
1,101–1,165 of 1,165, ranked by callers