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
"""

```