Official Python inference and LoRA trainer package for the LTX-2 audio–video generative model.
This report presents the forensic synthetic code analysis of Lightricks/LTX-2, a Python project with 8,247 GitHub stars. SynthScan v2.0 examined 59,243 lines of code across 302 source files, recording 1340 pattern matches distributed across 18 syntactic categories. The overall adjusted score of 44.0 places this repository in the Strong AI signal band.
The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).
This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.
Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.
This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.
The scanner identified 1340 distinct pattern matches across 18 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM⚡ | packages/ltx-trainer/configs/v2a_lora.yaml | 26 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | packages/ltx-trainer/configs/v2a_lora.yaml | 28 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | packages/ltx-trainer/configs/v2a_lora.yaml | 30 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | packages/ltx-trainer/configs/v2a_lora.yaml | 296 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | packages/ltx-trainer/configs/v2a_lora.yaml | 298 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | packages/ltx-trainer/configs/v2a_lora.yaml | 308 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | packages/ltx-trainer/configs/v2a_lora.yaml | 310 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | packages/ltx-trainer/configs/v2a_lora.yaml | 320 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | packages/ltx-trainer/configs/v2a_lora.yaml | 322 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | packages/ltx-trainer/configs/v2a_lora.yaml | 1 | # ============================================================================= | COMMENT |
| MEDIUM | packages/ltx-trainer/configs/v2a_lora.yaml | 3 | # ============================================================================= | COMMENT |
| MEDIUM | packages/ltx-trainer/configs/v2a_lora.yaml | 49 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | packages/ltx-trainer/configs/v2a_lora.yaml | 51 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | packages/ltx-trainer/configs/v2a_lora.yaml | 107 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | packages/ltx-trainer/configs/v2a_lora.yaml | 109 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | packages/ltx-trainer/configs/v2a_lora.yaml | 138 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | packages/ltx-trainer/configs/v2a_lora.yaml | 140 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | packages/ltx-trainer/configs/v2a_lora.yaml | 175 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | packages/ltx-trainer/configs/v2a_lora.yaml | 177 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | packages/ltx-trainer/configs/v2a_lora.yaml | 198 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | packages/ltx-trainer/configs/v2a_lora.yaml | 200 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | packages/ltx-trainer/configs/v2a_lora.yaml | 211 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | packages/ltx-trainer/configs/v2a_lora.yaml | 213 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | packages/ltx-trainer/configs/v2a_lora.yaml | 279 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | packages/ltx-trainer/configs/v2a_lora.yaml | 281 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | packages/ltx-trainer/configs/v2a_lora.yaml | 340 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | packages/ltx-trainer/configs/v2a_lora.yaml | 342 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | packages/ltx-trainer/configs/audio_extend_lora.yaml | 26 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | packages/ltx-trainer/configs/audio_extend_lora.yaml | 28 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | packages/ltx-trainer/configs/audio_extend_lora.yaml | 30 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | packages/ltx-trainer/configs/audio_extend_lora.yaml | 290 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | packages/ltx-trainer/configs/audio_extend_lora.yaml | 292 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | packages/ltx-trainer/configs/audio_extend_lora.yaml | 302 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | packages/ltx-trainer/configs/audio_extend_lora.yaml | 304 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | packages/ltx-trainer/configs/audio_extend_lora.yaml | 314 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | packages/ltx-trainer/configs/audio_extend_lora.yaml | 316 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | packages/ltx-trainer/configs/audio_extend_lora.yaml | 1 | # ============================================================================= | COMMENT |
| MEDIUM | packages/ltx-trainer/configs/audio_extend_lora.yaml | 3 | # ============================================================================= | COMMENT |
| MEDIUM | packages/ltx-trainer/configs/audio_extend_lora.yaml | 49 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | packages/ltx-trainer/configs/audio_extend_lora.yaml | 51 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | packages/ltx-trainer/configs/audio_extend_lora.yaml | 102 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | packages/ltx-trainer/configs/audio_extend_lora.yaml | 104 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | packages/ltx-trainer/configs/audio_extend_lora.yaml | 128 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | packages/ltx-trainer/configs/audio_extend_lora.yaml | 130 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | packages/ltx-trainer/configs/audio_extend_lora.yaml | 165 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | packages/ltx-trainer/configs/audio_extend_lora.yaml | 167 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | packages/ltx-trainer/configs/audio_extend_lora.yaml | 188 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | packages/ltx-trainer/configs/audio_extend_lora.yaml | 190 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | packages/ltx-trainer/configs/audio_extend_lora.yaml | 201 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | packages/ltx-trainer/configs/audio_extend_lora.yaml | 203 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | packages/ltx-trainer/configs/audio_extend_lora.yaml | 273 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | packages/ltx-trainer/configs/audio_extend_lora.yaml | 275 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | packages/ltx-trainer/configs/audio_extend_lora.yaml | 334 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | packages/ltx-trainer/configs/audio_extend_lora.yaml | 336 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | packages/ltx-trainer/configs/audio_suffix_lora.yaml | 26 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | packages/ltx-trainer/configs/audio_suffix_lora.yaml | 28 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | packages/ltx-trainer/configs/audio_suffix_lora.yaml | 30 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | packages/ltx-trainer/configs/audio_suffix_lora.yaml | 290 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | packages/ltx-trainer/configs/audio_suffix_lora.yaml | 292 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | packages/ltx-trainer/configs/audio_suffix_lora.yaml | 302 | # ----------------------------------------------------------------------------- | COMMENT |
| 512 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | packages/ltx-trainer/src/ltx_trainer/gemma_8bit.py | 12 | CODE | |
| LOW | packages/ltx-trainer/src/ltx_trainer/model_loader.py | 16 | CODE | |
| LOW | packages/ltx-trainer/src/ltx_trainer/model_loader.py | 32 | CODE | |
| LOW | packages/ltx-trainer/src/ltx_trainer/model_loader.py | 32 | CODE | |
| LOW | packages/ltx-trainer/src/ltx_trainer/model_loader.py | 32 | CODE | |
| LOW | packages/ltx-trainer/src/ltx_trainer/model_loader.py | 33 | CODE | |
| LOW | packages/ltx-trainer/src/ltx_trainer/model_loader.py | 34 | CODE | |
| LOW | packages/ltx-trainer/src/ltx_trainer/model_loader.py | 34 | CODE | |
| LOW | packages/ltx-trainer/src/ltx_trainer/model_loader.py | 35 | CODE | |
| LOW | packages/ltx-trainer/src/ltx_trainer/model_loader.py | 36 | CODE | |
| LOW | …kages/ltx-trainer/src/ltx_trainer/validation_runner.py | 65 | CODE | |
| LOW | packages/ltx-trainer/src/ltx_trainer/training_state.py | 1 | CODE | |
| LOW | …rainer/src/ltx_trainer/training_strategies/__init__.py | 12 | CODE | |
| LOW | …rainer/src/ltx_trainer/training_strategies/__init__.py | 12 | CODE | |
| LOW | …rainer/src/ltx_trainer/training_strategies/__init__.py | 12 | CODE | |
| LOW | …rainer/src/ltx_trainer/training_strategies/__init__.py | 12 | CODE | |
| LOW | …ages/ltx-pipelines/src/ltx_pipelines/distilled_mgpu.py | 11 | CODE | |
| LOW | …ckages/ltx-pipelines/src/ltx_pipelines/iclora_utils.py | 5 | CODE | |
| LOW | packages/ltx-pipelines/src/ltx_pipelines/retake.py | 1 | CODE | |
| LOW | …-pipelines/src/ltx_pipelines/ti2vid_two_stages_mgpu.py | 10 | CODE | |
| LOW | packages/ltx-pipelines/src/ltx_pipelines/__init__.py | 24 | CODE | |
| LOW | packages/ltx-pipelines/src/ltx_pipelines/__init__.py | 25 | CODE | |
| LOW | packages/ltx-pipelines/src/ltx_pipelines/__init__.py | 26 | CODE | |
| LOW | packages/ltx-pipelines/src/ltx_pipelines/__init__.py | 27 | CODE | |
| LOW | packages/ltx-pipelines/src/ltx_pipelines/__init__.py | 28 | CODE | |
| LOW | packages/ltx-pipelines/src/ltx_pipelines/__init__.py | 29 | CODE | |
| LOW | packages/ltx-pipelines/src/ltx_pipelines/__init__.py | 30 | CODE | |
| LOW | packages/ltx-pipelines/src/ltx_pipelines/__init__.py | 31 | CODE | |
| LOW | packages/ltx-pipelines/src/ltx_pipelines/__init__.py | 32 | CODE | |
| LOW | packages/ltx-pipelines/src/ltx_pipelines/lipdub.py | 3 | CODE | |
| LOW | …pelines/src/ltx_pipelines/ti2vid_two_stages_hq_mgpu.py | 13 | CODE | |
| LOW | …ges/ltx-pipelines/src/ltx_pipelines/multigpu/runner.py | 7 | CODE | |
| LOW | …ltx-pipelines/src/ltx_pipelines/multigpu/controller.py | 31 | CODE | |
| LOW | …ages/ltx-pipelines/src/ltx_pipelines/multigpu/fleet.py | 9 | CODE | |
| LOW | …tx-pipelines/src/ltx_pipelines/multigpu/tdp_builder.py | 5 | CODE | |
| LOW | …s/ltx-pipelines/src/ltx_pipelines/multigpu/__init__.py | 12 | CODE | |
| LOW | …s/ltx-pipelines/src/ltx_pipelines/multigpu/__init__.py | 12 | CODE | |
| LOW | …s/ltx-pipelines/src/ltx_pipelines/multigpu/__init__.py | 12 | CODE | |
| LOW | …s/ltx-pipelines/src/ltx_pipelines/multigpu/__init__.py | 12 | CODE | |
| LOW | …s/ltx-pipelines/src/ltx_pipelines/multigpu/__init__.py | 12 | CODE | |
| LOW | …s/ltx-pipelines/src/ltx_pipelines/multigpu/__init__.py | 19 | CODE | |
| LOW | …s/ltx-pipelines/src/ltx_pipelines/multigpu/__init__.py | 20 | CODE | |
| LOW | …s/ltx-pipelines/src/ltx_pipelines/multigpu/__init__.py | 20 | CODE | |
| LOW | …pipelines/src/ltx_pipelines/multigpu/gemma_builders.py | 11 | CODE | |
| LOW | …ltx-pipelines/src/ltx_pipelines/multigpu/sp_builder.py | 6 | CODE | |
| LOW | …pelines/src/ltx_pipelines/multigpu/bp_gemma_builder.py | 21 | CODE | |
| LOW | …ltx-pipelines/src/ltx_pipelines/multigpu/_broadcast.py | 7 | CODE | |
| LOW | …tx-pipelines/src/ltx_pipelines/multigpu/nccl_groups.py | 3 | CODE | |
| LOW | …x-pipelines/src/ltx_pipelines/multigpu/vae_builders.py | 5 | CODE | |
| LOW | …lines/src/ltx_pipelines/multigpu/delegating_builder.py | 6 | CODE | |
| LOW | …pipelines/src/ltx_pipelines/multigpu/weight_tracker.py | 5 | CODE | |
| LOW | …ages/ltx-pipelines/src/ltx_pipelines/utils/__init__.py | 1 | CODE | |
| LOW | …ages/ltx-pipelines/src/ltx_pipelines/utils/__init__.py | 1 | CODE | |
| LOW | …ages/ltx-pipelines/src/ltx_pipelines/utils/__init__.py | 1 | CODE | |
| LOW | …ages/ltx-pipelines/src/ltx_pipelines/utils/__init__.py | 1 | CODE | |
| LOW | …ages/ltx-pipelines/src/ltx_pipelines/utils/__init__.py | 1 | CODE | |
| LOW | …ages/ltx-pipelines/src/ltx_pipelines/utils/__init__.py | 1 | CODE | |
| LOW | …ages/ltx-pipelines/src/ltx_pipelines/utils/__init__.py | 1 | CODE | |
| LOW | …ages/ltx-pipelines/src/ltx_pipelines/utils/__init__.py | 10 | CODE | |
| LOW | …ages/ltx-pipelines/src/ltx_pipelines/utils/__init__.py | 10 | CODE | |
| 180 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | packages/ltx-trainer/scripts/compute_reference.py | 169 | def media_path_to_reference_path(media_file: Path) -> Path: | CODE |
| LOW | packages/ltx-trainer/scripts/process_videos.py | 306 | def _get_resolution_bucket_for_item(self, media_tensor: torch.Tensor) -> tuple[int, int, int]: | CODE |
| LOW | packages/ltx-trainer/scripts/process_videos.py | 383 | def _compute_temporal_subsample_indices(num_frames: int, factor: int) -> list[int]: | CODE |
| LOW | packages/ltx-trainer/scripts/process_videos.py | 1288 | def compute_scaled_resolution_buckets( | CODE |
| LOW | packages/ltx-trainer/scripts/process_videos.py | 1343 | def _build_sharded_dataloader( | CODE |
| LOW | packages/ltx-trainer/scripts/process_captions.py | 168 | def _load_caption_data_from_csv(self) -> dict[str, str]: | CODE |
| LOW | packages/ltx-trainer/scripts/process_captions.py | 185 | def _load_caption_data_from_json(self) -> dict[str, str]: | CODE |
| LOW | packages/ltx-trainer/scripts/process_captions.py | 206 | def _load_caption_data_from_jsonl(self) -> dict[str, str]: | CODE |
| LOW | packages/ltx-trainer/scripts/process_captions.py | 233 | def compute_captions_embeddings( # noqa: PLR0913 | CODE |
| LOW | packages/ltx-trainer/scripts/process_captions.py | 375 | def _build_sharded_dataloader( | CODE |
| LOW | packages/ltx-trainer/src/ltx_trainer/config.py | 45 | def validate_exactly_one_modality(self) -> "PrefixConditionConfig": | CODE |
| LOW | packages/ltx-trainer/src/ltx_trainer/config.py | 51 | def validate_num_frames_constraint(self) -> "PrefixConditionConfig": | CODE |
| LOW | packages/ltx-trainer/src/ltx_trainer/config.py | 74 | def validate_exactly_one_modality(self) -> "SuffixConditionConfig": | CODE |
| LOW | packages/ltx-trainer/src/ltx_trainer/config.py | 80 | def validate_num_frames_constraint(self) -> "SuffixConditionConfig": | CODE |
| LOW | packages/ltx-trainer/src/ltx_trainer/config.py | 108 | def validate_exactly_one_modality(self) -> "MaskConditionConfig": | CODE |
| LOW | packages/ltx-trainer/src/ltx_trainer/config.py | 125 | def validate_exactly_one_modality(self) -> "ReferenceConditionConfig": | CODE |
| LOW | packages/ltx-trainer/src/ltx_trainer/config.py | 212 | def validate_frozen_modality_conflicts(self) -> "ValidationSample": | CODE |
| LOW | packages/ltx-trainer/src/ltx_trainer/config.py | 304 | def _get_strategy_discriminator(v: dict | TrainingStrategyConfigBase) -> str: | CODE |
| LOW | packages/ltx-trainer/src/ltx_trainer/config.py | 419 | def validate_preprocessed_data_root(cls, v: str) -> str: | CODE |
| LOW | packages/ltx-trainer/src/ltx_trainer/config.py | 587 | def validate_reference_videos(cls, v: list[str] | None, info: ValidationInfo) -> list[str] | None: | CODE |
| LOW | packages/ltx-trainer/src/ltx_trainer/config.py | 624 | def validate_scaled_reference_dimensions(self) -> "ValidationConfig": | CODE |
| LOW | packages/ltx-trainer/src/ltx_trainer/config.py | 657 | def validate_output_modality_requirements(self) -> "ValidationConfig": | CODE |
| LOW | packages/ltx-trainer/src/ltx_trainer/config.py | 799 | def _validate_data_dirs_exist(self) -> None: | CODE |
| LOW | packages/ltx-trainer/src/ltx_trainer/config.py | 810 | def validate_strategy_compatibility(self) -> "LtxTrainerConfig": | CODE |
| LOW | packages/ltx-trainer/src/ltx_trainer/gemma_8bit.py | 96 | def _suppress_accelerate_memory_warnings() -> Generator[None, None, None]: | CODE |
| LOW | packages/ltx-trainer/src/ltx_trainer/model_loader.py | 239 | def load_embeddings_processor( | CODE |
| LOW⚡ | …kages/ltx-trainer/src/ltx_trainer/validation_runner.py | 298 | def _encode_conditioning_media(self) -> list[CachedSampleMedia]: | CODE |
| LOW⚡ | …kages/ltx-trainer/src/ltx_trainer/validation_runner.py | 304 | def _cond_needs_video_encoder(cond: object) -> bool: | CODE |
| LOW⚡ | …kages/ltx-trainer/src/ltx_trainer/validation_runner.py | 309 | def _cond_needs_audio_encoder(cond: object) -> bool: | CODE |
| LOW⚡ | …kages/ltx-trainer/src/ltx_trainer/validation_runner.py | 588 | def _apply_video_conditionings( | CODE |
| LOW | …kages/ltx-trainer/src/ltx_trainer/validation_runner.py | 344 | def _encode_sample_conditions( | CODE |
| LOW | …kages/ltx-trainer/src/ltx_trainer/validation_runner.py | 429 | def _encode_temporal_condition_media( | CODE |
| LOW | …kages/ltx-trainer/src/ltx_trainer/validation_runner.py | 633 | def _apply_audio_conditionings( | CODE |
| LOW | …kages/ltx-trainer/src/ltx_trainer/validation_runner.py | 721 | def _apply_reference_side_by_side( | CODE |
| LOW | …kages/ltx-trainer/src/ltx_trainer/validation_runner.py | 936 | def _load_and_downsample_mask( | CODE |
| LOW | …kages/ltx-trainer/src/ltx_trainer/validation_runner.py | 1065 | def _modality_from_latent_state(state: LatentState, context: Tensor, sigma: Tensor) -> Modality: | CODE |
| LOW | …kages/ltx-trainer/src/ltx_trainer/validation_runner.py | 1078 | def _build_stg_perturbation_config( | CODE |
| LOW | …kages/ltx-trainer/src/ltx_trainer/validation_runner.py | 1197 | def _concatenate_videos_side_by_side(left_video: Tensor, right_video: Tensor) -> Tensor: | CODE |
| LOW | …kages/ltx-trainer/src/ltx_trainer/timestep_samplers.py | 122 | def _get_shift_for_sequence_length( | CODE |
| LOW | packages/ltx-trainer/src/ltx_trainer/trainer.py | 432 | def _collect_trainable_params(self) -> None: | CODE |
| LOW | packages/ltx-trainer/src/ltx_trainer/trainer.py | 600 | def _prepare_models_for_training(self) -> None: | CODE |
| LOW | packages/ltx-trainer/src/ltx_trainer/trainer.py | 806 | def _offloaded_optimizer_state(self) -> Iterator[None]: | CODE |
| LOW | packages/ltx-trainer/src/ltx_trainer/trainer.py | 1068 | def _build_checkpoint_metadata(self) -> dict[str, str]: | CODE |
| LOW | …r/src/ltx_trainer/training_strategies/base_strategy.py | 203 | def _create_per_token_timesteps(conditioning_mask: Tensor, sampled_sigma: Tensor) -> Tensor: | CODE |
| LOW | …r/src/ltx_trainer/training_strategies/base_strategy.py | 219 | def _create_first_frame_conditioning_mask( | CODE |
| LOW | …rainer/src/ltx_trainer/training_strategies/flexible.py | 166 | def validate_at_least_one_generated(self) -> "FlexibleStrategyConfig": | CODE |
| LOW | …rainer/src/ltx_trainer/training_strategies/flexible.py | 175 | def validate_audio_intrinsic_regions(self) -> "FlexibleStrategyConfig": | CODE |
| LOW | …rainer/src/ltx_trainer/training_strategies/flexible.py | 320 | def _infer_reference_scale_factors_from_config(self) -> tuple[int | None, int | None]: | CODE |
| LOW | …rainer/src/ltx_trainer/training_strategies/flexible.py | 464 | def _apply_intrinsic_condition( | CODE |
| LOW | …rainer/src/ltx_trainer/training_strategies/flexible.py | 542 | def _compute_spatial_crop_mask( | CODE |
| LOW | …rainer/src/ltx_trainer/training_strategies/flexible.py | 594 | def _apply_reference_condition( | CODE |
| LOW | …rainer/src/ltx_trainer/training_strategies/flexible.py | 701 | def _infer_temporal_scale_factor(cond_num_frames: int, target_num_frames: int) -> int: | CODE |
| LOW | …/src/ltx_trainer/training_strategies/video_to_video.py | 261 | def _infer_reference_downscale_factor( | CODE |
| LOW⚡ | …ckages/ltx-pipelines/src/ltx_pipelines/iclora_utils.py | 23 | def read_lora_reference_downscale_factor(lora_path: str) -> int: | CODE |
| LOW⚡ | …ckages/ltx-pipelines/src/ltx_pipelines/iclora_utils.py | 34 | def read_lora_reference_temporal_scale_factor(lora_path: str) -> int: | CODE |
| LOW⚡ | …ckages/ltx-pipelines/src/ltx_pipelines/iclora_utils.py | 45 | def downsample_mask_video_to_latent( | CODE |
| LOW | …ckages/ltx-pipelines/src/ltx_pipelines/iclora_utils.py | 86 | def append_ic_lora_reference_video_conditionings( # noqa: PLR0913 | CODE |
| LOW | packages/ltx-pipelines/src/ltx_pipelines/lipdub.py | 131 | def _create_stage_conditionings( | CODE |
| LOW | packages/ltx-pipelines/src/ltx_pipelines/lipdub.py | 166 | def _encode_reference_audio_vae_latent(self, video_path: str) -> torch.Tensor: | CODE |
| LOW | packages/ltx-pipelines/src/ltx_pipelines/lipdub.py | 214 | def build_image_conditionings(output_shape: VideoPixelShape) -> list: | CODE |
| 93 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | packages/ltx-trainer/configs/v2a_lora.yaml | 1 | # ============================================================================= | COMMENT |
| LOW | packages/ltx-trainer/configs/v2a_lora.yaml | 21 | # preprocessed_data_root/ | COMMENT |
| LOW | packages/ltx-trainer/configs/v2a_lora.yaml | 41 | # Training mode: "lora" for efficient adapter training, "full" for full fine-tuning | COMMENT |
| LOW | packages/ltx-trainer/configs/v2a_lora.yaml | 61 | COMMENT | |
| LOW | packages/ltx-trainer/configs/v2a_lora.yaml | 101 | # Cross-modal attention: allows audio to attend to video features | COMMENT |
| LOW | packages/ltx-trainer/configs/v2a_lora.yaml | 121 | # Frozen modalities get sigma=0, timestep=0, no noise, and no loss | COMMENT |
| LOW | packages/ltx-trainer/configs/v2a_lora.yaml | 161 | # Optimizer type: "adamw" (standard) or "adamw8bit" (memory-efficient) | COMMENT |
| LOW | packages/ltx-trainer/configs/v2a_lora.yaml | 181 | # Options: "no" (fp32), "fp16" (half precision), "bf16" (bfloat16, recommended) | COMMENT |
| LOW | packages/ltx-trainer/configs/v2a_lora.yaml | 201 | # Specifies the training data location and loading parameters. | COMMENT |
| LOW | packages/ltx-trainer/configs/v2a_lora.yaml | 281 | # ----------------------------------------------------------------------------- | COMMENT |
| LOW | packages/ltx-trainer/configs/v2a_lora.yaml | 301 | # Timestep sampling mode | COMMENT |
| LOW | packages/ltx-trainer/configs/audio_extend_lora.yaml | 1 | # ============================================================================= | COMMENT |
| LOW | packages/ltx-trainer/configs/audio_extend_lora.yaml | 21 | # Dataset structure: | COMMENT |
| LOW | packages/ltx-trainer/configs/audio_extend_lora.yaml | 41 | # Training mode: "lora" for efficient adapter training, "full" for full fine-tuning | COMMENT |
| LOW | packages/ltx-trainer/configs/audio_extend_lora.yaml | 61 | COMMENT | |
| LOW | packages/ltx-trainer/configs/audio_extend_lora.yaml | 121 | # Number of audio latent timesteps to use as conditioning prefix | COMMENT |
| LOW | packages/ltx-trainer/configs/audio_extend_lora.yaml | 161 | # Enable gradient checkpointing to reduce memory usage | COMMENT |
| LOW | packages/ltx-trainer/configs/audio_extend_lora.yaml | 181 | COMMENT | |
| LOW | packages/ltx-trainer/configs/audio_extend_lora.yaml | 261 | COMMENT | |
| LOW | packages/ltx-trainer/configs/audio_extend_lora.yaml | 281 | COMMENT | |
| LOW | packages/ltx-trainer/configs/audio_extend_lora.yaml | 301 | COMMENT | |
| LOW | packages/ltx-trainer/configs/audio_suffix_lora.yaml | 1 | # ============================================================================= | COMMENT |
| LOW | packages/ltx-trainer/configs/audio_suffix_lora.yaml | 21 | # Dataset structure: | COMMENT |
| LOW | packages/ltx-trainer/configs/audio_suffix_lora.yaml | 41 | # Training mode: "lora" for efficient adapter training, "full" for full fine-tuning | COMMENT |
| LOW | packages/ltx-trainer/configs/audio_suffix_lora.yaml | 61 | COMMENT | |
| LOW | packages/ltx-trainer/configs/audio_suffix_lora.yaml | 121 | # Number of audio latent timesteps to use as conditioning suffix | COMMENT |
| LOW | packages/ltx-trainer/configs/audio_suffix_lora.yaml | 161 | # Enable gradient checkpointing to reduce memory usage | COMMENT |
| LOW | packages/ltx-trainer/configs/audio_suffix_lora.yaml | 181 | COMMENT | |
| LOW | packages/ltx-trainer/configs/audio_suffix_lora.yaml | 261 | COMMENT | |
| LOW | packages/ltx-trainer/configs/audio_suffix_lora.yaml | 281 | COMMENT | |
| LOW | packages/ltx-trainer/configs/audio_suffix_lora.yaml | 301 | COMMENT | |
| LOW | packages/ltx-trainer/configs/a2v_lora.yaml | 1 | # ============================================================================= | COMMENT |
| LOW | packages/ltx-trainer/configs/a2v_lora.yaml | 21 | # ├── latents/ # Video latents (VAE-encoded videos) | COMMENT |
| LOW | packages/ltx-trainer/configs/a2v_lora.yaml | 41 | # LoRA is recommended for most use cases (faster, less memory, prevents overfitting) | COMMENT |
| LOW | packages/ltx-trainer/configs/a2v_lora.yaml | 61 | # Dropout probability for LoRA layers (0.0 = no dropout) | COMMENT |
| LOW | packages/ltx-trainer/configs/a2v_lora.yaml | 81 | # - video_to_audio_attn.to_k, video_to_audio_attn.to_q, video_to_audio_attn.to_v, video_to_audio_attn.to_out.0 | COMMENT |
| LOW | packages/ltx-trainer/configs/a2v_lora.yaml | 101 | # Defines the audio-to-video training approach using the unified flexible strategy. | COMMENT |
| LOW | packages/ltx-trainer/configs/a2v_lora.yaml | 121 | audio: | COMMENT |
| LOW | packages/ltx-trainer/configs/a2v_lora.yaml | 161 | COMMENT | |
| LOW | packages/ltx-trainer/configs/a2v_lora.yaml | 181 | load_text_encoder_in_8bit: false | COMMENT |
| LOW | packages/ltx-trainer/configs/a2v_lora.yaml | 261 | COMMENT | |
| LOW | packages/ltx-trainer/configs/a2v_lora.yaml | 281 | interval: 250 | COMMENT |
| LOW | packages/ltx-trainer/configs/a2v_lora.yaml | 301 | timestep_sampling_params: { } | COMMENT |
| LOW | packages/ltx-trainer/configs/t2v_lora.yaml | 1 | # ============================================================================= | COMMENT |
| LOW | packages/ltx-trainer/configs/t2v_lora.yaml | 21 | # ----------------------------------------------------------------------------- | COMMENT |
| LOW | packages/ltx-trainer/configs/t2v_lora.yaml | 41 | COMMENT | |
| LOW | packages/ltx-trainer/configs/t2v_lora.yaml | 61 | # | COMMENT |
| LOW | packages/ltx-trainer/configs/t2v_lora.yaml | 81 | # Attention layers (matches both video and audio branches) | COMMENT |
| LOW | packages/ltx-trainer/configs/t2v_lora.yaml | 161 | # Mixed precision training mode | COMMENT |
| LOW | packages/ltx-trainer/configs/t2v_lora.yaml | 181 | # ----------------------------------------------------------------------------- | COMMENT |
| LOW | packages/ltx-trainer/configs/t2v_lora.yaml | 261 | checkpoints: | COMMENT |
| LOW | packages/ltx-trainer/configs/t2v_lora.yaml | 281 | timestep_sampling_mode: "shifted_logit_normal" | COMMENT |
| LOW | packages/ltx-trainer/configs/v2v_ic_lora.yaml | 1 | # ============================================================================= | COMMENT |
| LOW | packages/ltx-trainer/configs/v2v_ic_lora.yaml | 21 | # Dataset metadata columns: video, reference_video, caption | COMMENT |
| LOW | packages/ltx-trainer/configs/v2v_ic_lora.yaml | 41 | COMMENT | |
| LOW | packages/ltx-trainer/configs/v2v_ic_lora.yaml | 61 | dropout: 0.0 | COMMENT |
| LOW | packages/ltx-trainer/configs/v2v_ic_lora.yaml | 101 | # ----------------------------------------------------------------------------- | COMMENT |
| LOW | packages/ltx-trainer/configs/v2v_ic_lora.yaml | 121 | # Reference conditioning (IC-LoRA): concatenates pre-encoded reference video | COMMENT |
| LOW | packages/ltx-trainer/configs/v2v_ic_lora.yaml | 161 | COMMENT | |
| LOW | packages/ltx-trainer/configs/v2v_ic_lora.yaml | 181 | COMMENT | |
| 117 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | packages/ltx-pipelines/src/ltx_pipelines/ic_lora.py | 40 | from ltx_pipelines.utils.helpers import assert_resolution, combined_image_conditionings, get_device | CODE |
| CRITICAL | packages/ltx-pipelines/src/ltx_pipelines/lipdub.py | 41 | from ltx_pipelines.utils.helpers import assert_resolution, combined_image_conditionings, get_device | CODE |
| CRITICAL⚡ | packages/ltx-pipelines/src/ltx_pipelines/hdr_ic_lora.py | 62 | from ltx_pipelines.utils.helpers import get_device, modality_from_latent_state | CODE |
| CRITICAL | …ges/ltx-pipelines/src/ltx_pipelines/utils/denoisers.py | 22 | from ltx_pipelines.utils.helpers import modality_from_latent_state | CODE |
| CRITICAL | …ges/ltx-pipelines/src/ltx_pipelines/utils/gpu_model.py | 9 | from ltx_pipelines.utils.helpers import cleanup_memory | CODE |
| CRITICAL | …ages/ltx-pipelines/src/ltx_pipelines/utils/samplers.py | 14 | from ltx_pipelines.utils.helpers import post_process_latent, timesteps_from_mask | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | packages/ltx-trainer/src/ltx_trainer/trainer.py | 451 | def _setup_lora(self) -> None: | CODE |
| LOW | packages/ltx-trainer/src/ltx_trainer/trainer.py | 758 | def _setup_accelerator(self) -> None: | CODE |
| LOW | …rainer/src/ltx_trainer/training_strategies/__init__.py | 26 | __all__ = [ | CODE |
| LOW | …ages/ltx-pipelines/src/ltx_pipelines/distilled_mgpu.py | 39 | logger = logging.getLogger(__name__) | CODE |
| LOW | …-pipelines/src/ltx_pipelines/ti2vid_two_stages_mgpu.py | 41 | logger = logging.getLogger(__name__) | CODE |
| LOW | packages/ltx-pipelines/src/ltx_pipelines/__init__.py | 47 | __all__ = [ | CODE |
| LOW⚡ | packages/ltx-pipelines/src/ltx_pipelines/hdr_ic_lora.py | 67 | logger = logging.getLogger(__name__) | CODE |
| LOW | …pelines/src/ltx_pipelines/ti2vid_two_stages_hq_mgpu.py | 43 | logger = logging.getLogger(__name__) | CODE |
| LOW⚡ | …ltx-pipelines/src/ltx_pipelines/multigpu/controller.py | 48 | logger = logging.getLogger(__name__) | CODE |
| LOW⚡ | …ages/ltx-pipelines/src/ltx_pipelines/multigpu/fleet.py | 33 | logger = logging.getLogger(__name__) | CODE |
| LOW | …s/ltx-pipelines/src/ltx_pipelines/multigpu/__init__.py | 22 | __all__ = [ | CODE |
| LOW | …pipelines/src/ltx_pipelines/multigpu/gemma_builders.py | 31 | logger = logging.getLogger(__name__) | CODE |
| LOW | …pelines/src/ltx_pipelines/multigpu/bp_gemma_builder.py | 40 | logger = logging.getLogger(__name__) | CODE |
| LOW | …ages/ltx-pipelines/src/ltx_pipelines/utils/__init__.py | 26 | __all__ = [ | CODE |
| LOW | …ages/ltx-pipelines/src/ltx_pipelines/utils/media_io.py | 25 | logger = logging.getLogger(__name__) | CODE |
| LOW⚡ | …ckages/ltx-pipelines/src/ltx_pipelines/utils/blocks.py | 90 | logger = logging.getLogger(__name__) | CODE |
| LOW | …ages/ltx-pipelines/src/ltx_pipelines/utils/samplers.py | 18 | logger = logging.getLogger(__name__) | CODE |
| LOW | packages/ltx-core/src/ltx_core/devices.py | 18 | logger = logging.getLogger(__name__) | CODE |
| LOW | packages/ltx-core/src/ltx_core/multigpu/__init__.py | 11 | __all__ = ["DimensionTilingConfig", "ShardedSD", "TileCountConfig", "transformer", "vae"] | CODE |
| LOW | …kages/ltx-core/src/ltx_core/multigpu/gemma/__init__.py | 6 | __all__ = ["AccelerateGemmaWrapper", "load_gemma_with_device_map"] | CODE |
| LOW | packages/ltx-core/src/ltx_core/multigpu/gemma/loader.py | 20 | logger = logging.getLogger(__name__) | CODE |
| LOW | …tx-core/src/ltx_core/multigpu/transformer/attention.py | 62 | def set_seqlen_all2all(self, seqlens: list[int]) -> None: | CODE |
| LOW | …ltx-core/src/ltx_core/multigpu/transformer/__init__.py | 11 | __all__ = [ | CODE |
| LOW⚡ | …-core/src/ltx_core/multigpu/vae/distributed_decoder.py | 44 | logger = logging.getLogger(__name__) | CODE |
| LOW | packages/ltx-core/src/ltx_core/multigpu/vae/__init__.py | 5 | __all__ = ["DistributedVideoDecoder"] | CODE |
| LOW | …/ltx-core/src/ltx_core/text_encoders/gemma/__init__.py | 21 | __all__ = [ | CODE |
| LOW | packages/ltx-core/src/ltx_core/guidance/__init__.py | 10 | __all__ = [ | CODE |
| LOW | packages/ltx-core/src/ltx_core/conditioning/__init__.py | 14 | __all__ = [ | CODE |
| LOW | …s/ltx-core/src/ltx_core/conditioning/types/__init__.py | 10 | __all__ = [ | CODE |
| LOW | packages/ltx-core/src/ltx_core/quantization/__init__.py | 10 | __all__ = [ | CODE |
| LOW | …x-core/src/ltx_core/quantization/blockwise/__init__.py | 11 | __all__ = ["build_fp6_policy", "build_fp8_policy"] | CODE |
| LOW | packages/ltx-core/src/ltx_core/loader/__init__.py | 31 | __all__ = [ | CODE |
| LOW | …ltx-core/src/ltx_core/block_streaming/block_fetcher.py | 14 | logger = logging.getLogger(__name__) | CODE |
| LOW | …ages/ltx-core/src/ltx_core/block_streaming/__init__.py | 16 | __all__ = [ | CODE |
| LOW | …kages/ltx-core/src/ltx_core/block_streaming/builder.py | 49 | logger = logging.getLogger(__name__) | CODE |
| LOW | packages/ltx-core/src/ltx_core/model/__init__.py | 5 | __all__ = [ | CODE |
| LOW | …es/ltx-core/src/ltx_core/model/transformer/__init__.py | 13 | __all__ = [ | CODE |
| LOW | …kages/ltx-core/src/ltx_core/model/transformer/model.py | 26 | logger = logging.getLogger(__name__) | CODE |
| LOW | …kages/ltx-core/src/ltx_core/model/transformer/model.py | 351 | def set_gradient_checkpointing(self, enable: bool) -> None: | CODE |
| LOW | …ages/ltx-core/src/ltx_core/model/upsampler/__init__.py | 6 | __all__ = [ | CODE |
| LOW | packages/ltx-core/src/ltx_core/model/common/__init__.py | 5 | __all__ = [ | CODE |
| LOW | …ages/ltx-core/src/ltx_core/model/audio_vae/__init__.py | 15 | __all__ = [ | CODE |
| LOW | …ages/ltx-core/src/ltx_core/model/video_vae/__init__.py | 13 | __all__ = [ | CODE |
| LOW | …ltx-core/src/ltx_core/model/video_vae/normalization.py | 3 | __all__ = ["PixelNorm", "build_normalization_layer"] | CODE |
| LOW | packages/ltx-kernels/src/ltx_kernels/__init__.py | 5 | __all__ = ["All2All"] | CODE |
| LOW | packages/ltx-kernels/src/ltx_kernels/all_to_all.py | 137 | def set_rank_tokens(self, rank_num_tokens: list[int]) -> None: | CODE |
| LOW | packages/ltx-kernels/src/ltx_kernels/all_to_all.py | 141 | def set_timeout_seconds(self, seconds: float) -> None: | CODE |
| LOW | …ages/ltx-kernels/src/ltx_kernels/blockwise/__init__.py | 23 | __all__ = [ | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | packages/ltx-trainer/scripts/split_scenes.py | 153 | CODE | |
| LOW | packages/ltx-trainer/scripts/split_scenes.py | 310 | CODE | |
| LOW | packages/ltx-trainer/scripts/caption_videos.py | 352 | CODE | |
| LOW | packages/ltx-trainer/scripts/process_videos.py | 394 | CODE | |
| LOW | packages/ltx-trainer/scripts/process_videos.py | 819 | CODE | |
| LOW | packages/ltx-trainer/scripts/process_videos.py | 1366 | CODE | |
| LOW | packages/ltx-trainer/scripts/process_dataset.py | 54 | CODE | |
| LOW | packages/ltx-trainer/scripts/process_dataset.py | 291 | CODE | |
| LOW | packages/ltx-trainer/scripts/decode_latents.py | 295 | CODE | |
| LOW | packages/ltx-trainer/scripts/process_captions.py | 233 | CODE | |
| LOW | packages/ltx-trainer/scripts/process_captions.py | 398 | CODE | |
| LOW | packages/ltx-trainer/scripts/serve_captioner.py | 99 | CODE | |
| LOW | packages/ltx-trainer/src/ltx_trainer/datasets.py | 18 | CODE | |
| LOW | packages/ltx-trainer/src/ltx_trainer/model_loader.py | 285 | CODE | |
| LOW | packages/ltx-pipelines/src/ltx_pipelines/retake.py | 140 | CODE | |
| LOW | …ckages/ltx-pipelines/src/ltx_pipelines/utils/blocks.py | 233 | CODE | |
| LOW | …ages/ltx-pipelines/src/ltx_pipelines/utils/samplers.py | 204 | CODE | |
| LOW | …tx-core/src/ltx_core/multigpu/transformer/attention.py | 96 | CODE | |
| LOW | …c/ltx_core/text_encoders/gemma/embeddings_connector.py | 93 | CODE | |
| LOW | …kages/ltx-core/src/ltx_core/block_streaming/builder.py | 84 | CODE | |
| LOW | …s/ltx-core/src/ltx_core/model/transformer/attention.py | 99 | CODE | |
| LOW | …s/ltx-core/src/ltx_core/model/transformer/attention.py | 144 | CODE | |
| LOW | …s/ltx-core/src/ltx_core/model/transformer/attention.py | 169 | CODE | |
| LOW | …s/ltx-core/src/ltx_core/model/transformer/attention.py | 194 | CODE | |
| LOW | …kages/ltx-core/src/ltx_core/model/transformer/model.py | 47 | CODE | |
| LOW | …ckages/ltx-core/src/ltx_core/model/transformer/rope.py | 40 | CODE | |
| LOW | packages/ltx-core/src/ltx_core/model/upsampler/model.py | 24 | CODE | |
| LOW | …kages/ltx-core/src/ltx_core/model/audio_vae/vocoder.py | 316 | CODE | |
| LOW | …ges/ltx-core/src/ltx_core/model/audio_vae/audio_vae.py | 66 | CODE | |
| LOW | …ges/ltx-core/src/ltx_core/model/audio_vae/audio_vae.py | 283 | CODE | |
| LOW | …s/ltx-core/src/ltx_core/model/video_vae/convolution.py | 11 | CODE | |
| LOW | …ges/ltx-core/src/ltx_core/model/video_vae/video_vae.py | 176 | CODE | |
| LOW | …ges/ltx-core/src/ltx_core/model/video_vae/video_vae.py | 587 | CODE | |
| LOW | …ckages/ltx-core/src/ltx_core/model/video_vae/resnet.py | 24 | CODE | |
| LOW | …ckages/ltx-core/src/ltx_core/model/video_vae/resnet.py | 210 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | packages/ltx-trainer/scripts/compute_reference.py | 103 | except Exception as e: | CODE |
| LOW | packages/ltx-trainer/scripts/compute_reference.py | 228 | except Exception as e: | CODE |
| LOW | packages/ltx-trainer/scripts/split_scenes.py | 283 | except Exception as e: | CODE |
| LOW | packages/ltx-trainer/scripts/caption_videos.py | 179 | except Exception as e: | CODE |
| LOW | packages/ltx-trainer/scripts/caption_videos.py | 346 | except Exception as e: | CODE |
| LOW | packages/ltx-trainer/scripts/process_videos.py | 245 | except Exception as e: | CODE |
| LOW | packages/ltx-trainer/scripts/process_videos.py | 1238 | except Exception: | CODE |
| LOW | packages/ltx-trainer/scripts/train.py | 54 | except Exception as e: | CODE |
| LOW | packages/ltx-trainer/scripts/decode_latents.py | 123 | except Exception as e: | CODE |
| LOW | packages/ltx-trainer/scripts/decode_latents.py | 172 | except Exception as e: | CODE |
| LOW | packages/ltx-trainer/src/ltx_trainer/hf_hub_utils.py | 41 | except Exception as e: | CODE |
| LOW | packages/ltx-trainer/src/ltx_trainer/hf_hub_utils.py | 80 | except Exception as e: | CODE |
| LOW | packages/ltx-trainer/src/ltx_trainer/hf_hub_utils.py | 109 | except Exception as e: | CODE |
| LOW | packages/ltx-trainer/src/ltx_trainer/hf_hub_utils.py | 173 | except Exception as e: | CODE |
| LOW | packages/ltx-trainer/src/ltx_trainer/datasets.py | 280 | except Exception as e: | CODE |
| LOW | packages/ltx-trainer/src/ltx_trainer/captioning.py | 274 | except Exception as e: | CODE |
| LOW | packages/ltx-trainer/src/ltx_trainer/captioning.py | 376 | except Exception as e: | CODE |
| LOW | packages/ltx-trainer/src/ltx_trainer/trainer.py | 567 | except Exception as e: | CODE |
| LOW | packages/ltx-trainer/src/ltx_trainer/trainer.py | 584 | except Exception as e: | CODE |
| LOW | packages/ltx-trainer/src/ltx_trainer/trainer.py | 1035 | except Exception: | CODE |
| LOW⚡ | …ckages/ltx-pipelines/src/ltx_pipelines/iclora_utils.py | 29 | except Exception as e: | CODE |
| LOW⚡ | …ckages/ltx-pipelines/src/ltx_pipelines/iclora_utils.py | 40 | except Exception as e: | CODE |
| LOW | …ltx-pipelines/src/ltx_pipelines/multigpu/controller.py | 262 | except Exception: | CODE |
| LOW | …ltx-pipelines/src/ltx_pipelines/multigpu/controller.py | 355 | except Exception: | CODE |
| LOW | …ges/ltx-pipelines/src/ltx_pipelines/utils/constants.py | 122 | except Exception: | CODE |
| LOW | …ages/ltx-pipelines/src/ltx_pipelines/utils/media_io.py | 470 | except Exception as e: | CODE |
| LOW | …ages/ltx-pipelines/src/ltx_pipelines/utils/media_io.py | 476 | except Exception as e: | CODE |
| LOW | packages/ltx-core/src/ltx_core/devices.py | 91 | except Exception: | CODE |
| LOW | …ltx-core/src/ltx_core/block_streaming/block_fetcher.py | 80 | except Exception as exc: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | packages/ltx-trainer/docs/custom-training-strategies.md | 58 | ### Step 1: Plan Your Strategy | COMMENT |
| LOW | packages/ltx-trainer/docs/custom-training-strategies.md | 74 | ### Step 2: Extend Data Preprocessing (If Needed) | COMMENT |
| LOW | packages/ltx-trainer/docs/custom-training-strategies.md | 130 | ### Step 3: Create the Strategy Configuration | COMMENT |
| LOW | packages/ltx-trainer/docs/custom-training-strategies.md | 198 | ### Step 4: Implement the Strategy Class | COMMENT |
| LOW | packages/ltx-trainer/docs/custom-training-strategies.md | 324 | ### Step 5: Register the Strategy | COMMENT |
| LOW | packages/ltx-trainer/docs/custom-training-strategies.md | 369 | ### Step 6: Create a Configuration File | COMMENT |
| LOW⚡ | …rainer/src/ltx_trainer/training_strategies/flexible.py | 361 | # Step 1: Load and patchify latents | COMMENT |
| LOW⚡ | …rainer/src/ltx_trainer/training_strategies/flexible.py | 369 | # Step 2: Get text embeddings | COMMENT |
| LOW⚡ | …rainer/src/ltx_trainer/training_strategies/flexible.py | 374 | # Step 3: Initialize noise, timesteps, and loss mask based on is_generated flag | COMMENT |
| LOW | …rainer/src/ltx_trainer/training_strategies/flexible.py | 387 | # Step 4: Generate positions | COMMENT |
| LOW | …rainer/src/ltx_trainer/training_strategies/flexible.py | 404 | # Step 5: Apply conditions (intrinsic first, then extrinsic) | COMMENT |
| LOW | …rainer/src/ltx_trainer/training_strategies/flexible.py | 431 | # Step 6: Build Modality | COMMENT |
| LOW⚡ | …ges/ltx-core/src/ltx_core/model/audio_vae/audio_vae.py | 447 | # Step 1: Crop first to avoid exceeding target dimensions | COMMENT |
| LOW⚡ | …ges/ltx-core/src/ltx_core/model/audio_vae/audio_vae.py | 452 | # Step 2: Calculate padding needed for time and frequency dimensions | COMMENT |
| LOW⚡ | …ges/ltx-core/src/ltx_core/model/audio_vae/audio_vae.py | 456 | # Step 3: Apply padding if needed | COMMENT |
| LOW | …ges/ltx-core/src/ltx_core/model/audio_vae/audio_vae.py | 468 | # Step 4: Final safety crop to ensure exact target shape | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | packages/ltx-trainer/scripts/compute_reference.py | 142 | CODE | |
| LOW | packages/ltx-trainer/scripts/caption_videos.py | 77 | CODE | |
| LOW | packages/ltx-trainer/scripts/caption_videos.py | 284 | CODE | |
| LOW | packages/ltx-trainer/scripts/process_videos.py | 394 | CODE | |
| LOW | packages/ltx-trainer/scripts/process_videos.py | 822 | CODE | |
| LOW | packages/ltx-trainer/scripts/process_videos.py | 1063 | CODE | |
| LOW | packages/ltx-trainer/scripts/process_captions.py | 233 | CODE | |
| LOW | packages/ltx-trainer/src/ltx_trainer/hf_hub_utils.py | 15 | CODE | |
| LOW | packages/ltx-trainer/src/ltx_trainer/hf_hub_utils.py | 113 | CODE | |
| LOW | packages/ltx-trainer/src/ltx_trainer/quantization.py | 171 | CODE | |
| LOW | …kages/ltx-trainer/src/ltx_trainer/validation_runner.py | 344 | CODE | |
| LOW | …kages/ltx-trainer/src/ltx_trainer/validation_runner.py | 588 | CODE | |
| LOW | …kages/ltx-trainer/src/ltx_trainer/validation_runner.py | 633 | CODE | |
| LOW | …kages/ltx-trainer/src/ltx_trainer/validation_runner.py | 721 | CODE | |
| LOW | packages/ltx-trainer/src/ltx_trainer/trainer.py | 119 | CODE | |
| LOW | packages/ltx-trainer/src/ltx_trainer/trainer.py | 705 | CODE | |
| LOW | packages/ltx-trainer/src/ltx_trainer/trainer.py | 806 | CODE | |
| LOW | …rainer/src/ltx_trainer/training_strategies/flexible.py | 187 | CODE | |
| LOW | …rainer/src/ltx_trainer/training_strategies/flexible.py | 464 | CODE | |
| LOW | packages/ltx-pipelines/src/ltx_pipelines/utils/args.py | 129 | CODE | |
| LOW | …ages/ltx-pipelines/src/ltx_pipelines/utils/media_io.py | 441 | CODE | |
| LOW | …ages/ltx-pipelines/src/ltx_pipelines/utils/media_io.py | 612 | CODE | |
| LOW | …ages/ltx-pipelines/src/ltx_pipelines/utils/media_io.py | 457 | CODE | |
| LOW | …ages/ltx-pipelines/src/ltx_pipelines/utils/samplers.py | 204 | CODE | |
| LOW | packages/ltx-core/src/ltx_core/multigpu/sharded_sd.py | 123 | CODE | |
| LOW | packages/ltx-core/src/ltx_core/loader/sft_loader.py | 20 | CODE | |
| LOW | packages/ltx-core/src/ltx_core/block_streaming/disk.py | 88 | CODE | |
| LOW | …kages/ltx-core/src/ltx_core/block_streaming/builder.py | 462 | CODE | |
| LOW | …ges/ltx-core/src/ltx_core/model/video_vae/video_vae.py | 38 | CODE | |
| LOW | …ges/ltx-core/src/ltx_core/model/video_vae/video_vae.py | 475 | CODE | |
| LOW | …rc/ltx_core/model/video_vae/memory_efficient_decode.py | 528 | CODE | |
| LOW | packages/ltx-kernels/setup.py | 57 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | …rainer/src/ltx_trainer/training_strategies/flexible.py | 361 | # Step 1: Load and patchify latents | COMMENT |
| LOW⚡ | …rainer/src/ltx_trainer/training_strategies/flexible.py | 369 | # Step 2: Get text embeddings | COMMENT |
| LOW⚡ | …rainer/src/ltx_trainer/training_strategies/flexible.py | 374 | # Step 3: Initialize noise, timesteps, and loss mask based on is_generated flag | COMMENT |
| LOW | …rainer/src/ltx_trainer/training_strategies/flexible.py | 387 | # Step 4: Generate positions | COMMENT |
| LOW | …rainer/src/ltx_trainer/training_strategies/flexible.py | 404 | # Step 5: Apply conditions (intrinsic first, then extrinsic) | COMMENT |
| LOW | …rainer/src/ltx_trainer/training_strategies/flexible.py | 431 | # Step 6: Build Modality | COMMENT |
| LOW⚡ | …ges/ltx-core/src/ltx_core/model/audio_vae/audio_vae.py | 447 | # Step 1: Crop first to avoid exceeding target dimensions | COMMENT |
| LOW⚡ | …ges/ltx-core/src/ltx_core/model/audio_vae/audio_vae.py | 452 | # Step 2: Calculate padding needed for time and frequency dimensions | COMMENT |
| LOW⚡ | …ges/ltx-core/src/ltx_core/model/audio_vae/audio_vae.py | 456 | # Step 3: Apply padding if needed | COMMENT |
| LOW | …ges/ltx-core/src/ltx_core/model/audio_vae/audio_vae.py | 468 | # Step 4: Final safety crop to ensure exact target shape | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | packages/ltx-trainer/src/ltx_trainer/gemma_8bit.py | 31 | Load the Gemma text encoder in 8-bit precision using bitsandbytes. Only the Gemma LLM backbone is loaded here. The | STRING |
| HIGH | …kages/ltx-trainer/src/ltx_trainer/timestep_samplers.py | 105 | Sample timesteps for a specific batch tensor. Args: batch: Input tensor of shape (batch_size, seq_le | STRING |
| HIGH | …rainer/src/ltx_trainer/training_strategies/__init__.py | 44 | Factory function to create the appropriate training strategy. The strategy is determined by the `name` field in the | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM⚡ | packages/ltx-trainer/configs/audio_extend_lora.yaml | 19 | # - Create seamless audio extension models | COMMENT |
| MEDIUM⚡ | packages/ltx-trainer/configs/audio_suffix_lora.yaml | 19 | # - Create seamless audio extension models | COMMENT |
| MEDIUM⚡ | packages/ltx-trainer/configs/video_extend_lora.yaml | 17 | # - Create seamless video extension models with optional audio | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | packages/ltx-trainer/src/ltx_trainer/hf_hub_utils.py | 45 | # Create a single temporary directory for all files | COMMENT |
| MEDIUM | …ckages/ltx-core/src/ltx_core/components/patchifiers.py | 108 | # Create a tensor containing the size of a single patch: | COMMENT |
| MEDIUM | …s/ltx-core/src/ltx_core/model/video_vae/convolution.py | 124 | # Define the size of the channels after the first convolution | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | packages/ltx-trainer/AGENTS.md | 52 | │ ├── trainer.py # Main training orchestration with Accelerate | CODE |
| MEDIUM | packages/ltx-trainer/CLAUDE.md | 52 | │ ├── trainer.py # Main training orchestration with Accelerate | CODE |
| MEDIUM | packages/ltx-trainer/scripts/caption_videos.py | 25 | # Enable Qwen3 chain-of-thought (slower, more detail) | STRING |
| MEDIUM | packages/ltx-trainer/src/ltx_trainer/captioning.py | 400 | # Thinking models (e.g. Qwen3-Omni-*-Thinking) emit the reasoning trace | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | packages/ltx-trainer/configs/v2v_ic_lora.yaml | 229 | # Set these to match --reference-downscale-factor / --reference-temporal-scale-factor | COMMENT |
| LOW | packages/ltx-trainer/configs/v2v_ic_lora.yaml | 244 | # Set these to match --reference-downscale-factor / --reference-temporal-scale-factor | COMMENT |
| LOW | packages/ltx-trainer/scripts/decode_latents.py | 138 | # Check if audio VAE is loaded | COMMENT |
| LOW | packages/ltx-trainer/scripts/decode_latents.py | 191 | # Check if latents need reshaping (old patchified format) | COMMENT |
| LOW | packages/ltx-trainer/src/ltx_trainer/quantization.py | 89 | # Check if model has transformer_blocks for block-by-block quantization | COMMENT |
| LOW | packages/ltx-trainer/src/ltx_trainer/datasets.py | 295 | # Check if latents are in legacy patchified format [seq_len, C] | COMMENT |
| LOW | …ges/ltx-core/src/ltx_core/model/video_vae/video_vae.py | 870 | # Check if current temporal slice overlaps with previous temporal slice | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | …rc/ltx_core/model/video_vae/memory_efficient_decode.py | 324 | interior.mul_(1 + scale2).add_(shift2) # type: ignore[possibly-undefined] | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | packages/ltx-trainer/src/ltx_trainer/gpu_utils.py | 33 | def my_function(): | STRING |