Spaces:
Sleeping
Sleeping
File size: 2,042 Bytes
8077a04 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 | # 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:
```bash
$ 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:
```python
# 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
"""
```
|