Commit ·
0bb40bf
1
Parent(s): bd84de8
Replace aneta examples with billieeilish across custom nodes and generator tools
Browse files
klein9/comfyui/custom_nodes/ComfyUI-Flux2Klein9Mod/README.md
CHANGED
|
@@ -66,8 +66,8 @@ You can also pre-encode image datasets using the CLI:
|
|
| 66 |
|
| 67 |
```bash
|
| 68 |
python custom_nodes/ComfyUI-Flux2Klein9Mod/extract_klein9_mod.py \
|
| 69 |
-
--name
|
| 70 |
-
--dataset-dir C:/Development/ai-toolkit/datasets/
|
| 71 |
--concept-type identity \
|
| 72 |
--token-budget 1024 \
|
| 73 |
--output-dir C:/Development/ComfyUI/models/refmods-klein9/
|
|
|
|
| 66 |
|
| 67 |
```bash
|
| 68 |
python custom_nodes/ComfyUI-Flux2Klein9Mod/extract_klein9_mod.py \
|
| 69 |
+
--name fk9_billieeilish_v1_refmod \
|
| 70 |
+
--dataset-dir C:/Development/ai-toolkit/datasets/billieeilish \
|
| 71 |
--concept-type identity \
|
| 72 |
--token-budget 1024 \
|
| 73 |
--output-dir C:/Development/ComfyUI/models/refmods-klein9/
|
klein9/comfyui/custom_nodes/ComfyUI-Flux2Klein9Mod/extract_klein9_mod.py
CHANGED
|
@@ -5,8 +5,8 @@ extract_klein9_mod.py — CLI tool to extract FLUX.2 / Klein9 RefMod (.safetenso
|
|
| 5 |
Usage:
|
| 6 |
python extract_klein9_mod.py \
|
| 7 |
--vae path/to/flux2_vae.safetensors \
|
| 8 |
-
--name
|
| 9 |
-
--dataset-dir C:/Development/ai-toolkit/datasets/
|
| 10 |
--concept-type identity \
|
| 11 |
--token-budget 1024 \
|
| 12 |
--output-dir C:/Development/ComfyUI/models/refmods-klein9/
|
|
@@ -46,7 +46,7 @@ from common import load_image_file, list_media_files, refmods_klein9_dir
|
|
| 46 |
def main():
|
| 47 |
parser = argparse.ArgumentParser(description="Extract FLUX.2 / Klein9 RefMod reference adapter from images")
|
| 48 |
parser.add_argument("--vae", type=str, default=None, help="Path to FLUX.2 / Klein VAE .safetensors file")
|
| 49 |
-
parser.add_argument("--name", type=str, required=True, help="RefMod output name (e.g.
|
| 50 |
parser.add_argument("--dataset-dir", type=str, default=None, help="Directory containing reference images")
|
| 51 |
parser.add_argument("--images", nargs="+", default=None, help="Explicit list of image paths")
|
| 52 |
parser.add_argument("--concept-type", type=str, default="identity", choices=CONCEPT_TYPES, help="Mod concept type")
|
|
|
|
| 5 |
Usage:
|
| 6 |
python extract_klein9_mod.py \
|
| 7 |
--vae path/to/flux2_vae.safetensors \
|
| 8 |
+
--name fk9_billieeilish_v1_refmod \
|
| 9 |
+
--dataset-dir C:/Development/ai-toolkit/datasets/billieeilish \
|
| 10 |
--concept-type identity \
|
| 11 |
--token-budget 1024 \
|
| 12 |
--output-dir C:/Development/ComfyUI/models/refmods-klein9/
|
|
|
|
| 46 |
def main():
|
| 47 |
parser = argparse.ArgumentParser(description="Extract FLUX.2 / Klein9 RefMod reference adapter from images")
|
| 48 |
parser.add_argument("--vae", type=str, default=None, help="Path to FLUX.2 / Klein VAE .safetensors file")
|
| 49 |
+
parser.add_argument("--name", type=str, required=True, help="RefMod output name (e.g. fk9_billieeilish_v1_refmod)")
|
| 50 |
parser.add_argument("--dataset-dir", type=str, default=None, help="Directory containing reference images")
|
| 51 |
parser.add_argument("--images", nargs="+", default=None, help="Explicit list of image paths")
|
| 52 |
parser.add_argument("--concept-type", type=str, default="identity", choices=CONCEPT_TYPES, help="Mod concept type")
|
klein9/comfyui/custom_nodes/ComfyUI-Flux2Klein9Mod/nodes.py
CHANGED
|
@@ -302,7 +302,7 @@ class Klein9RefModFolderLoader:
|
|
| 302 |
def INPUT_TYPES(cls):
|
| 303 |
return {
|
| 304 |
"required": {
|
| 305 |
-
"folder_path": ("STRING", {"default": "C:/Development/ai-toolkit/datasets/
|
| 306 |
"max_images": ("INT", {"default": 16, "min": 1, "max": 128, "step": 1}),
|
| 307 |
"max_edge": ("INT", {"default": 1024, "min": 256, "max": 2048, "step": 64}),
|
| 308 |
}
|
|
|
|
| 302 |
def INPUT_TYPES(cls):
|
| 303 |
return {
|
| 304 |
"required": {
|
| 305 |
+
"folder_path": ("STRING", {"default": "C:/Development/ai-toolkit/datasets/billieeilish"}),
|
| 306 |
"max_images": ("INT", {"default": 16, "min": 1, "max": 128, "step": 1}),
|
| 307 |
"max_edge": ("INT", {"default": 1024, "min": 256, "max": 2048, "step": 64}),
|
| 308 |
}
|
klein9/generate_flux2_klein9_refmod.py
CHANGED
|
@@ -12,19 +12,19 @@ Features:
|
|
| 12 |
|
| 13 |
Usage:
|
| 14 |
# Extract single dataset by name (under C:\\Development\\ai-toolkit\\datasets)
|
| 15 |
-
python generate_flux2_klein9_refmod.py
|
| 16 |
|
| 17 |
# Extract single dataset by full folder path
|
| 18 |
-
python generate_flux2_klein9_refmod.py C:/Development/ai-toolkit/datasets/
|
| 19 |
|
| 20 |
# Dry-run inspection
|
| 21 |
-
python generate_flux2_klein9_refmod.py
|
| 22 |
|
| 23 |
# Batch extract all datasets in root directory
|
| 24 |
python generate_flux2_klein9_refmod.py --all --datasets-root C:/Development/ai-toolkit/datasets
|
| 25 |
|
| 26 |
# Custom parameters
|
| 27 |
-
python generate_flux2_klein9_refmod.py
|
| 28 |
"""
|
| 29 |
|
| 30 |
from __future__ import annotations
|
|
@@ -333,8 +333,8 @@ def build_parser() -> argparse.ArgumentParser:
|
|
| 333 |
formatter_class=argparse.RawDescriptionHelpFormatter,
|
| 334 |
epilog="""
|
| 335 |
Examples:
|
| 336 |
-
python generate_flux2_klein9_refmod.py
|
| 337 |
-
python generate_flux2_klein9_refmod.py C:/Development/ai-toolkit/datasets/
|
| 338 |
python generate_flux2_klein9_refmod.py --all --datasets-root C:/Development/ai-toolkit/datasets
|
| 339 |
"""
|
| 340 |
)
|
|
|
|
| 12 |
|
| 13 |
Usage:
|
| 14 |
# Extract single dataset by name (under C:\\Development\\ai-toolkit\\datasets)
|
| 15 |
+
python generate_flux2_klein9_refmod.py billieeilish
|
| 16 |
|
| 17 |
# Extract single dataset by full folder path
|
| 18 |
+
python generate_flux2_klein9_refmod.py C:/Development/ai-toolkit/datasets/billieeilish
|
| 19 |
|
| 20 |
# Dry-run inspection
|
| 21 |
+
python generate_flux2_klein9_refmod.py billieeilish --dry-run
|
| 22 |
|
| 23 |
# Batch extract all datasets in root directory
|
| 24 |
python generate_flux2_klein9_refmod.py --all --datasets-root C:/Development/ai-toolkit/datasets
|
| 25 |
|
| 26 |
# Custom parameters
|
| 27 |
+
python generate_flux2_klein9_refmod.py billieeilish --token-budget 1024 --max-images 16 --concept-type identity
|
| 28 |
"""
|
| 29 |
|
| 30 |
from __future__ import annotations
|
|
|
|
| 333 |
formatter_class=argparse.RawDescriptionHelpFormatter,
|
| 334 |
epilog="""
|
| 335 |
Examples:
|
| 336 |
+
python generate_flux2_klein9_refmod.py billieeilish
|
| 337 |
+
python generate_flux2_klein9_refmod.py C:/Development/ai-toolkit/datasets/billieeilish --token-budget 1024
|
| 338 |
python generate_flux2_klein9_refmod.py --all --datasets-root C:/Development/ai-toolkit/datasets
|
| 339 |
"""
|
| 340 |
)
|