Custom nodes for ComfyUI for automatic WD14 image tagging, batch workflows, tag postprocessing, caption export, and basic tag analytics. Набор нод для ComfyUI для WD14-теггинга, постобработки тегов, сохранения caption и базовой аналитики датасета.
-
✅ Мультипорог по категориям:
general,character,meta,rating -
✅ Batch-in/Batch-out нода для массового теггинга
-
✅ Нода постобработки тегов (dedupe, сортировка, prepend/append/exclude)
-
✅ Нода сохранения caption в
txt/json/csv -
✅ Нода аналитики тегов (top-k + JSON статистика)
-
WD14 v3 model support (ViT / SwinV2 / EVA02 / ConvNeXT)
-
Automatic model download from Hugging Face
-
Single-image and batch tagging nodes
-
Category-aware thresholds (
general,character,meta,rating) -
Tag postprocessing (dedupe, sorting, include/exclude operations)
-
Caption saving to
txt,json,csv -
Tag frequency analytics (
top-k+ JSON stats)
- 4 WD14 v3 Models: ViT, SwinV2, EVA02, ConvNeXT
- Auto Download: Models download automatically from Hugging Face
- GPU Support: CUDA acceleration for faster processing
- Batch Processing: Process multiple images from folders
- Format Support: JPG, JPEG, PNG, WEBP
- Custom Tags: Add/remove tags as needed
- ComfyUI IMAGE Compatibility: Uses native tensor image format for modern ComfyUI builds
Загружает изображения из папки (JPG/JPEG/PNG/WEBP) и отдает IMAGE + имена файлов.
Теггинг одного изображения с сохранением .txt.
- Open ComfyUI Manager
- Find BSS WD14 Batch Tagger
- Install and restart ComfyUI
cd ComfyUI/custom_nodes
git clone https://github.com/BlackSnowSkill/wd14_batch_tagger.git
cd wd14_batch_tagger
pip install -r requirements.txtПараметры порогов:
general_thresholdcharacter_thresholdmeta_thresholdrating_threshold
Теггинг списка изображений за один вызов.
Выходы:
tags(список строк)tags_json(json с score/category)
Очистка и нормализация тегов:
- remove duplicates
- sort alphabetically
- prepend/append/exclude
- replace underscores
Сохраняет caption в txt/json/csv, есть overwrite и suffix.
- Use BSS Load Images from Folder to load your images
- Connect to BSS WD14 Batch Tagger for each image
- Set output folder for tag files
- Run the workflow
- BSS Load Images from Folder 📂 — loads folder images (
jpg,jpeg,png,webp) - BSS WD14 Batch Tagger 🌿 — tags a single image and can save
.txt - BSS WD14 Tagger Batch ⚡ — tags a list/batch and returns JSON scores
- BSS Tags Postprocess 🧹 — cleanup/sort/dedupe/filter tag strings
- BSS Save Captions 💾 — save captions in
txt/json/csv - BSS Tag Analytics 📊 — compute top tag stats
- Load images with BSS Load Images from Folder 📂
- Run tagging via:
- BSS WD14 Batch Tagger 🌿 (single), or
- BSS WD14 Tagger Batch ⚡ (batch)
- (Optional) Clean results using BSS Tags Postprocess 🧹
- (Optional) Save captions with BSS Save Captions 💾
- (Optional) Inspect distribution using BSS Tag Analytics 📊
- Model: Choose WD14 model (auto-downloads if needed)
- Threshold: Tag confidence (0.35 default)
- Character Threshold: Separate threshold for character tags (WD category 4)
- GPU: Enable for faster processing
- Prepend/Exclude: Add custom tags or remove unwanted ones
- Tested against current ComfyUI custom node API style (
NODE_CLASS_MAPPINGS,INPUT_TYPES,RETURN_TYPES). - Uses ComfyUI-native
IMAGEtensors (float32, range0..1) in the loader node output. - Tagger node accepts both tensor images (ComfyUI-native) and numpy arrays for backward compatibility.
Рекомендуемые стартовые параметры WD14:
general_threshold:0.35character_threshold:0.85meta_threshold:0.50rating_threshold:0.50
- Python 3.8+
- ComfyUI
onnxruntime>=1.18.0,<2.0.0- CUDA GPU (optional)
- Added batch node: BSS WD14 Tagger Batch ⚡
- Added postprocessing node: BSS Tags Postprocess 🧹
- Added caption writer node: BSS Save Captions 💾
- Added analytics node: BSS Tag Analytics 📊
- Added category-aware WD14 thresholds (
general/character/meta/rating) - Improved image normalization compatibility with ComfyUI
IMAGE
- Stabilized
onnxruntimehandling and compatibility checks - Improved model loading reliability
Считает top-k частых тегов и возвращает JSON статистику.
cd ComfyUI/custom_nodes
git clone https://github.com/BlackSnowSkill/wd14_batch_tagger.git
cd wd14_batch_tagger
pip install -r requirements.txt- Python 3.8+
- ComfyUI (актуальные сборки)
- onnxruntime
>=1.18.0,<2.0.0
MIT
MIT License MIT License - see LICENSE file for details.
Author: Blacksnowskill