linoyts's picture
linoyts HF Staff
Switch to HDR IC-LoRA app with on-the-fly PromptEncoder + bundled ltx-2-internal
8077a04 verified
|
Raw
History Blame Contribute Delete
2.04 kB

A newer version of the Gradio SDK is available: 6.25.0

Upgrade

LTX-2

https://github.com/user-attachments/assets/1922e7f0-cc5d-430c-9e1a-93c589e85fb4

Setup

To set up ltx-2 repository for development:

  • uv sync creates and installs the virtual environment. To activate the environment, run source .venv/bin/activate.
  • Set up pre-commit:
$ PIP_NO_INPUT=1 pre-commit install-hooks --config .pre-commit-config.yaml
$ pre-commit install
  • pytest runs all tests in the repository. pytest --pyargs packages/ltx-core runs only tests specific to ltx-core.
  • uv build --package ltx-core builds only the ltx-core package.
  • Dependencies declared in the main pyproject.toml file apply to the entire repository. Always prefer specifying dependencies for specific packages.

Folder structure

β”œβ”€β”€ README.md
β”œβ”€β”€ packages
β”‚   └── ltx-core
β”‚       β”œβ”€β”€ README.md
β”‚       β”œβ”€β”€ pyproject.toml
β”‚       β”œβ”€β”€ src
β”‚       β”‚   └── ltx_core
β”‚       β”‚       β”œβ”€β”€ __init__.py
β”‚       β”‚       β”œβ”€β”€ # package-specific modules go here
β”‚       └── tests
β”‚           └── ltx_core
β”‚               β”œβ”€β”€ # test folder structure mirrors src of the package.
β”‚               β”œβ”€β”€ conftest.py
β”‚               └── unit
β”‚                   └── test_placeholder.py
β”œβ”€β”€ pyproject.toml
β”œβ”€β”€ pytest.toml
└── uv.lock

Comments mentioning ComfyUI or internal company code

Comments relating to ComfyUI, its LTX repo or any other internal Lightricks resource should be wrapped in LT_INTERNAL tags. Tagged sections should be placed inside comments or docstrings. The following examples demonstrate proper usage:

# LT_INTERNAL: check PR to understand better

# conditioning is applied before the step LT_INTERNAL: http://...

# condition is applied after the step to integrate LT_INTERNAL_BEGIN http://... LT_INTERNAL_END

"""
Consult with the paper, https://arxiv.org
LT_INTERNAL_BEGIN
Most important PRs to check
http://...
http://...
LT_INTERNAL_END
"""