Skip to content

How-ToGPU

How to Auto-Caption a LoRA Training Dataset Locally With TagGUI

Writing captions for every image in a LoRA training set by hand is slow. TagGUI is a free desktop app that runs AI captioning models such as Florence-2, WD Tagger and JoyCaption on your own PC and writes the text files for you. Using its official README, we explain how to install it, run batch captioning, steer the output and clean up the results.

By , Systems & Technical Editor

6 min read

How to Auto-Caption a LoRA Training Dataset Locally With TagGUI

If you're training your own LoRA for Stable Diffusion, SDXL or Flux, the captions matter almost as much as the images. Every picture needs a matching text file that describes it, and writing 50 or 200 of those by hand is slow and inconsistent. TagGUI is a free desktop app that does the heavy lifting: it runs AI captioning and tagging models on your own PC, writes the text files for you and then gives you fast tools to tidy them up. This guide follows TagGUI's official GitHub README and release notes.

What TagGUI does

TagGUI describes itself as a cross-platform desktop application for quickly adding and editing image tags and captions, aimed at people building image datasets for generative AI models. The README lists six headline features:

  • A keyboard-friendly interface for fast tagging

  • Tag autocomplete based on your own most-used tags

  • An integrated token counter (for Stable Diffusion)

  • Automatic caption and tag generation

  • Batch operations for renaming, deleting and sorting tags

  • Advanced image list filtering

The key detail for LoRA training is the file format. TagGUI loads tags from .txt files in the same folder as your images, with the same file names (so photo01.png pairs with photo01.txt), and any change you make is saved straight back to those files. That's the same image-plus-text-file layout the kohya-ss sd-scripts tagging tool produces, so the folder TagGUI leaves behind is in the layout the popular trainers expect. Check your trainer's own documentation for the exact caption extension it wants. If you haven't picked a trainer yet, see our guides to training a LoRA locally with AI Toolkit and Kohya_ss vs OneTrainer.

TagGUI is open source under the GPL-3.0 licence. The latest release on GitHub at the time of writing is v1.34.0, published on 11 October 2025, so the app is mature rather than fast-moving.

What you need

  • Windows or Linux. The developer provides ready-made downloads for both. There's no macOS build because the developer doesn't have a Mac, but the README says Mac users can still install and run it manually from the source code.

  • 7-Zip. Releases are packed as .7z archives. The Linux bundle is split into two parts to stay under GitHub's 2GB file limit, so download both.

  • An NVIDIA graphics card for GPU captioning. The README says GPU generation needs a compatible NVIDIA GPU, and CPU generation is also supported. CPU captioning works, but expect it to be much slower on a big folder.

  • Disk space for models. Models are downloaded the first time you use them. The README warns this can take several minutes on first use, with later runs much faster.

How much video memory you need depends on the model you pick rather than TagGUI itself. Small taggers and Florence-2 models are light, while large vision-language models such as JoyCaption need far more: its developer says about 17GB at full bfloat16 precision, which is why TagGUI offers a 4-bit loading option for it. A 12GB card such as the ASUS RTX 3060 12GB Dual Gaming OC V2 is a sensible floor for trying several models, and a 16GB card like the ASUS RTX 5060 Ti 16GB Dual OC gives more headroom. That's our suggestion, not an official requirement. Our VRAM guide explains the trade-offs.

Step 1: Prepare your image folder

Put all the training images in one folder. Remove duplicates and anything blurry or off-topic before you caption, because cleaning up afterwards means editing text files as well as images. If you already have some .txt files, keep them in the same folder: TagGUI will load them, and you can use them as context for the AI captioner later (see Step 4).

Step 2: Download and open TagGUI

  1. Go to the TagGUI releases page on GitHub and download the latest archive for your operating system (for v1.34.0 on Windows, that's taggui-v1.34.0-windows.7z).

  2. Extract it anywhere you like with 7-Zip and run the executable inside. There's no installer.

  3. On Linux, the README notes you may need to install the libxcb-cursor0 package if the app won't start.

If you'd rather run from source, clone the repository, install the packages in requirements.txt and run taggui/run_gui.py. The developer recommends Python 3.12, with 3.11 also expected to work.

Step 3: Load your dataset

Click Load Directory in the middle of the window (or File > Load Directory) and pick your image folder. TagGUI shows your images in a list, with the tags for the selected image in the Image Tags pane and every tag used across the folder in the All Tags pane.

Step 4: Run the Auto-Captioner

  1. Select the images you want to caption. Press Ctrl+A to select all of them for a batch run.

  2. In the Auto-Captioner pane, choose a model. Recent releases added support for Microsoft's Florence-2 models, MiaoshouAI's Florence-2-base-PromptGen, SmilingWolf's WD ViT-Large and WD EVA02-Large Tagger v3 models, moondream2 and JoyCaption. If you've already downloaded models, set that folder in File > Settings so they appear in the list.

  3. Click Start Auto-Captioning (or press Alt+C).

Pick the model to match how your trainer expects captions. WD Tagger models output comma-separated Danbooru-style tags, the prompt format many anime-focused models use. Florence-2 and JoyCaption write natural-language sentences, which suit models you prompt in plain English. If you'd rather not use TagGUI's model list, our guide to using vision models in Ollama covers a chat-style alternative for describing images one at a time.

Step 5: Tune the captioning settings

TagGUI's captioning parameters let you steer the output without editing every file afterwards:

  • Prompt: the instructions sent to the model. TagGUI handles each model's prompt format for you. You can insert {tags} (the image's existing tags), {name} (the file name without its extension) and {directory} or {folder} (the folder name). The README's example is Describe the image using the following tags as context: {tags}, which is handy if you've tagged a character or style by hand first.

  • Start caption with: forces every caption to begin with fixed text. This is a simple way to put your LoRA's trigger word at the front of every file.

  • Remove tag separators in caption: strips the commas from generated text.

  • Discourage from caption: words the model should avoid. The README suggests appears,seems,possibly to stop uncertain phrasing.

  • Include in caption: words that should appear somewhere. Use | to offer choices, for example cat,orange|white|black.

  • Tags to exclude (WD Tagger models): tags that should never be generated.

The developer is clear that these are guides rather than guarantees: excluded words can still slip through because of how models split text into tokens, and not every "include" rule will always be met. So you still need to review the results.

Step 6: Review and clean up the captions

This is where TagGUI earns its place over a plain script:

  • Find gaps: press Ctrl+J to jump to the first image with no tags.

  • Filter the list: type queries into the Filter Images box (Alt+F). For example, tag:"orange cat" finds an exact tag, tokens:>75 finds captions longer than 75 tokens, and NOT tag:cat finds images missing a tag. You can combine filters with AND, OR and brackets.

  • Fix tags in bulk: in the All Tags pane, select a tag and press Delete to remove it everywhere, or press F2 to rename it across the whole dataset. The Edit menu also has Find and Replace (Ctrl+R) and Batch Reorder Tags (Ctrl+B).

  • Watch the token count: the built-in Stable Diffusion token counter, together with the tokens: filter, helps you spot captions that are running long.

Because every change is saved straight back to the .txt files, the folder is ready to point your trainer at once you've finished reviewing.

Troubleshooting

  • Out of memory errors: choose a smaller model, caption fewer images at a time, or close other GPU apps. Our guides to checking VRAM usage on Windows and fixing CUDA out of memory errors can help.

  • JoyCaption won't fit: TagGUI v1.33.0 (May 2025) added an option to load JoyCaption in 4-bit and updated it to JoyCaption Beta One.

  • A model you used before has gone: v1.34.0 removed support for CogVLM, CogVLM2 and XComposer2, and earlier releases removed CogAgent. Switch to one of the supported models.

  • AMD or Intel graphics: the README only mentions NVIDIA GPU support, so the fallback on other cards is CPU generation.

The bottom line

TagGUI is the easiest free way to caption a LoRA training dataset on your own PC. It runs Florence-2, WD Tagger and JoyCaption locally, writes the matching text files your trainer expects, and has filters, bulk renaming and a token counter for the clean-up. Use an NVIDIA card with at least 12GB of video memory if you can, put your trigger word in "Start caption with", and always review the captions before you start training.

In this article

Sources

  1. 01jhc13, TagGUI GitHub repository and README
  2. 02jhc13, TagGUI releases (v1.34.0 and earlier release notes)
  3. 03kohya-ss, sd-scripts WD14 Tagger documentation
  4. 04fpgaminer, JoyCaption GitHub repository and README

About the author

Marcus Thorne

Systems & Technical Editor

Marcus writes Forge PC's step-by-step build, troubleshooting and system optimisation guides. His background spans Windows kernel and power-state diagnostics, UEFI/BIOS configuration, NVMe storage arrays, ATX 3.1 power delivery and running local AI and LLM workloads on consumer graphics cards.

More from Marcus Thorne

Read next

Best Local AI Image Captioning Tools in 2026

Best Picks

Best Local AI Image Captioning Tools in 2026

You don't need a paid cloud service to caption images for LoRA training, alt text or photo archives. We pick the best free AI captioning and tagging tools you can run on your own PC in 2026, from the TagGUI desktop app to Florence-2, JoyCaption, WD Tagger v3 and the kohya-ss tagging script, with hardware and licence notes.

Hannah Vance5 min

JoyCaption vs Florence-2: Which Local AI Image Captioner Should You Use?

Versus

JoyCaption vs Florence-2: Which Local AI Image Captioner Should You Use?

JoyCaption and Microsoft's Florence-2 are two of the most popular free AI models for captioning images on your own PC. We compare their size, video memory needs, caption styles, extra features and licences, so you can pick the right one for LoRA training datasets, alt text or a big photo archive.

Callum Reid5 min

Cyber Monday 2026 UK: What to Expect for PC Parts After Black Friday

News

Cyber Monday 2026 UK: What to Expect for PC Parts After Black Friday

Cyber Monday is on 30 November 2026, and for UK PC parts it's the last day of the same sale rather than a new one. VantaSpec counted 402 of 1,413 recent price cuts as genuine 90-day lows on 28 November. Here's what to expect on Monday, when to buy now or wait, and how your return rights work.

Eleanor Shaw3 min

Best Local AI Photo Restoration Tools in 2026

Best Picks

Best Local AI Photo Restoration Tools in 2026

You don't need to upload family photos to an unknown website to restore them. We pick the best free AI photo restoration tools you can run on your own PC in 2026, from CodeFormer and GFPGAN for faces to Microsoft's scratch remover, chaiNNer and DeOldify, with licences and hardware notes.

Hannah Vance6 min