Compare commits
11
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9a212d13e7 | ||
|
|
b02bea5480 | ||
|
|
8c4b7941a6 | ||
|
|
070751dbf1 | ||
|
|
41f6277830 | ||
|
|
03ddfbfe66 | ||
|
|
885a1c8371 | ||
|
|
8656b2ebaf | ||
|
|
c3759e7b30 | ||
|
|
236e230515 | ||
|
|
23ef04b1cb |
@@ -0,0 +1,21 @@
|
|||||||
|
name: Publish to Comfy registry
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
paths:
|
||||||
|
- "pyproject.toml"
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
publish-node:
|
||||||
|
name: Publish Custom Node to registry
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Check out code
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
- name: Publish Custom Node
|
||||||
|
uses: Comfy-Org/publish-node-action@main
|
||||||
|
with:
|
||||||
|
## Add your own personal access token to your Github Repository secrets and reference it here.
|
||||||
|
personal_access_token: ${{ secrets.REGISTRY_ACCESS_TOKEN }}
|
||||||
@@ -16,6 +16,13 @@ They get their vanilla equivalents with less features
|
|||||||
Overall, Custom-Scripts is recommended to be able to know the content of the tag lists with the node `showText`
|
Overall, Custom-Scripts is recommended to be able to know the content of the tag lists with the node `showText`
|
||||||
|
|
||||||
## Features
|
## Features
|
||||||
|
### Lora Trigger Words
|
||||||
|
Lora trigger words are imported from two sources :
|
||||||
|
- Civitai api (only for civitai models)
|
||||||
|
|
||||||
|

|
||||||
|
- Model training metadata (when available)
|
||||||
|
|
||||||
#### Vanilla vs Advanced
|
#### Vanilla vs Advanced
|
||||||
> Vanilla refers to nodes that have no lora preview from the menu, nor the lora list. But the features provided are the same.
|
> Vanilla refers to nodes that have no lora preview from the menu, nor the lora list. But the features provided are the same.
|
||||||
|
|
||||||
|
|||||||
Binary file not shown.
|
After Width: | Height: | Size: 29 KiB |
@@ -0,0 +1,14 @@
|
|||||||
|
[project]
|
||||||
|
name = "comfyui-lora-auto-trigger-words"
|
||||||
|
description = "The aim of these custom nodes is to get an easy access to the tags used to trigger a lora / lycoris. Extract the tags from civitai or from the safetensors metadatas when available."
|
||||||
|
version = "1.0.2"
|
||||||
|
license = "MIT"
|
||||||
|
|
||||||
|
[project.urls]
|
||||||
|
Repository = "https://github.com/idrirap/ComfyUI-Lora-Auto-Trigger-Words"
|
||||||
|
# Used by Comfy Registry https://comfyregistry.org
|
||||||
|
|
||||||
|
[tool.comfy]
|
||||||
|
PublisherId = "dijkstra"
|
||||||
|
DisplayName = "ComfyUI-Lora-Auto-Trigger-Words"
|
||||||
|
Icon = ""
|
||||||
@@ -15,11 +15,14 @@ def get_preview_path(name, type):
|
|||||||
|
|
||||||
file_path_no_ext = os.path.splitext(file_path)[0]
|
file_path_no_ext = os.path.splitext(file_path)[0]
|
||||||
item_image=None
|
item_image=None
|
||||||
for ext in ["png", "jpg", "jpeg", "preview.png"]:
|
for ext in ["png", "jpg", "jpeg", "gif"]:
|
||||||
has_image = os.path.isfile(file_path_no_ext + "." + ext)
|
if item_image is not None:
|
||||||
if has_image:
|
|
||||||
item_image = f"{file_name}.{ext}"
|
|
||||||
break
|
break
|
||||||
|
for ext2 in ["", ".preview"]:
|
||||||
|
has_image = os.path.isfile(file_path_no_ext + ext2 + "." + ext)
|
||||||
|
if has_image:
|
||||||
|
item_image = f"{file_name}{ext2}.{ext}"
|
||||||
|
break
|
||||||
|
|
||||||
return has_image, item_image
|
return has_image, item_image
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user