lora-stacker-civitai-tags
Simple Comfyui plugin to make working with lora stackers easier.
Perfil do pacote
- Status
- Verificado
- Publicador
- @KoleTackney
- Fonte
- GitHub
README
LoRA Stacker CivitAI Tags
Automatically fetches the trained trigger words (tags) for every LoRA in a stack from CivitAI and returns them as a ready-to-use prompt string.
[!WARNING] This node requires Efficiency Nodes for ComfyUI. It consumes the
LORA_STACKtype produced by the Efficient Loader / LoRA Stacker nodes in that pack. Install it first — this node will not function without it.
Quickstart
- Install ComfyUI.
- Install ComfyUI-Manager.
- Install Efficiency Nodes for ComfyUI (required dependency — see warning above).
- Look up LoRA Stacker CivitAI Tags in ComfyUI-Manager and install it. If installing manually, clone this repository under
ComfyUI/custom_nodes. - Restart ComfyUI.
Features
- LoRA Stacker Tags (CivitAI) — Given a
LORA_STACK, looks up each LoRA's trained trigger words on CivitAI via its SHA-256 hash and returns them as a single comma-separated string ready to inject into a prompt. - Passes the
LORA_STACKthrough unchanged (fully compatible with Efficiency nodes and similar stacker nodes). - Caches results in
loras_tags.jsonalongside the node so repeat runs don't hit the API. force_fetchflag bypasses the cache and re-queries CivitAI.- Optionally prepends an existing prompt string via the
opt_promptinput.
Nodes
LoRA Stacker Tags (CivitAI) — LoraStackerTagsQuery
Inputs
| Name | Type | Description |
|---|---|---|
lora_stack | LORA_STACK | Stack of LoRA models from a LoRA stacker node |
query_tags | BOOLEAN | Query CivitAI for LoRAs not already cached (default: true) |
print_tags | BOOLEAN | Print retrieved tags to the ComfyUI console (default: false) |
force_fetch | BOOLEAN | Ignore cache and re-fetch from CivitAI (default: false) |
separator | STRING | Delimiter placed between tags (default: ", ") |
opt_prompt | STRING | (optional) Prompt string to prepend before the tags |
Outputs
| Name | Type | Description |
|---|---|---|
LORA_STACK | LORA_STACK | Pass-through, unchanged |
TAGS | STRING | Trained words from CivitAI, joined by separator |
Dependencies: requests (installed automatically). Requires internet access to query the CivitAI API.
Develop
To install the dev dependencies and pre-commit (will run the ruff hook), do:
cd lora-stacker-civitai-tags
pip install -e .[dev]
pre-commit install
The -e flag above will result in a "live" install, in the sense that any changes you make to your node extension will automatically be picked up the next time you run ComfyUI.
Publish to Github
Install Github Desktop or follow these instructions for ssh.
- Create a Github repository that matches the directory name.
- Push the files to Git
git add .
git commit -m "project scaffolding"
git push
Writing custom nodes
An example custom node is located in node.py. To learn more, read the docs.
Tests
This repo contains unit tests written in Pytest in the tests/ directory. It is recommended to unit test your custom node.
- build-pipeline.yml will run pytest and linter on any open PRs
- validate.yml will run node-diff to check for breaking changes
Publishing to Registry
Nós neste pacote
Nó 1
Nós neste pacote
Nó 1- LoraStackerTagsQuery
Fontes
3 fontes
Fontes
3 fontesVerificado 25 de out.
Verificado 25 de out.
Trechos de fonte
1 trecho
Trechos de fonte
1 trechoSource context: Repo KoleTackney/lora-stacker-civitai-tags
