Instructions to use modest-mouse/ltx-ugc-bundle with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- LTX-2
How to use modest-mouse/ltx-ugc-bundle with LTX-2:
# Install the LTX-2 pipelines git clone https://github.com/Lightricks/LTX-2.git cd LTX-2 uv sync --frozen
# Download the weights from this repo, plus the Gemma text encoder hf download modest-mouse/ltx-ugc-bundle --local-dir models/ltx-ugc-bundle hf download google/gemma-3-12b-it-qat-q4_0-unquantized --local-dir models/gemma-3-12b
# Fast pipeline (distilled model, no distilled LoRA needed) uv run python -m ltx_pipelines.distilled \ --distilled-checkpoint-path models/ltx-ugc-bundle/<distilled-checkpoint>.safetensors \ --spatial-upsampler-path models/ltx-ugc-bundle/<spatial-upsampler>.safetensors \ --gemma-root models/gemma-3-12b \ --prompt "A beautiful sunset over the ocean" \ --output-path output.mp4 # For image-to-video, add: --image path/to/image.jpg 0 0.8# HQ pipeline (two-stage, higher quality) uv run python -m ltx_pipelines.ti2vid_two_stages_hq \ --checkpoint-path models/ltx-ugc-bundle/<checkpoint>.safetensors \ --distilled-lora models/ltx-ugc-bundle/<distilled-lora>.safetensors 0.8 \ --spatial-upsampler-path models/ltx-ugc-bundle/<spatial-upsampler>.safetensors \ --gemma-root models/gemma-3-12b \ --prompt "A beautiful sunset over the ocean" \ --output-path output.mp4 # For image-to-video, add: --image path/to/image.jpg 0 0.8 - Notebooks
- Google Colab
- Kaggle
Download custom_nodes/rgthree-comfy/py/context.py from modest-mouse/ltx-ugc-bundle: direct link, hf CLI and curl.
- Browser
- Download file 1.08 kB
-
https://huggingface.co/modest-mouse/ltx-ugc-bundle/resolve/main/custom_nodes/rgthree-comfy/py/context.py
- Command line
-
hf download hf://modest-mouse/ltx-ugc-bundle/custom_nodes/rgthree-comfy/py/context.py
-
curl -L -o context.py https://huggingface.co/modest-mouse/ltx-ugc-bundle/resolve/main/custom_nodes/rgthree-comfy/py/context.py
1.08 kB
| """The Context node.""" | |
| from .context_utils import (ORIG_CTX_OPTIONAL_INPUTS, ORIG_CTX_RETURN_NAMES, ORIG_CTX_RETURN_TYPES, | |
| get_orig_context_return_tuple, new_context) | |
| from .constants import get_category, get_name | |
| class RgthreeContext: | |
| """The initial Context node. | |
| For now, this nodes' outputs will remain as-is, as they are perfect for most 1.5 application, but | |
| is also backwards compatible with other Context nodes. | |
| """ | |
| NAME = get_name("Context") | |
| CATEGORY = get_category() | |
| def INPUT_TYPES(cls): # pylint: disable = invalid-name, missing-function-docstring | |
| return { | |
| "required": {}, | |
| "optional": ORIG_CTX_OPTIONAL_INPUTS, | |
| "hidden": { | |
| "version": "FLOAT" | |
| }, | |
| } | |
| RETURN_TYPES = ORIG_CTX_RETURN_TYPES | |
| RETURN_NAMES = ORIG_CTX_RETURN_NAMES | |
| FUNCTION = "convert" | |
| def convert(self, base_ctx=None, **kwargs): # pylint: disable = missing-function-docstring | |
| ctx = new_context(base_ctx, **kwargs) | |
| return get_orig_context_return_tuple(ctx) | |