Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

train-character-lora

Skill by artokun

Trains a character or identity LoRA for FLUX.1-dev on a local GPU using the comfyui-mcp train_* tools and ostris ai-toolkit. It is built for users who want a LoRA of a person from their own photos.

  • Score 74
  • 963 stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install train-character-lora

Built from the published package, never by AI.

git clone --depth 1 https://github.com/artokun/comfyui-mcp /tmp/comfyui-mcp && mkdir -p ~/.claude/skills && cp -r /tmp/comfyui-mcp/plugin/skills/train-character-lora ~/.claude/skills/train-character-lora

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install train-character-lora in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This skill trains a character or identity LoRA on FLUX.1-dev on a local GPU. It drives the comfyui-mcp train_* tools, which run ostris ai-toolkit's run.py inside a headless GPU Docker container. The assistant checks the trainer, prepares a dataset of 10 to 30 varied images with a rare trigger word, launches the job, and polls its progress without blocking.

When a run completes, the LoRA is copied to ComfyUI models/loras/ and added to the LoRA catalog. The skill also gives default parameters, guidance on judging samples and loss, and fixes for common failures such as out-of-memory errors. It is aimed at users who want a LoRA of a person or character from their own photos. WAN and Z-Image training are covered by a separate ai-toolkit-trainer skill.

Written from the project's SKILL.md and checked against it.

What it can do

  • train_doctorPreflight checks for Docker, GPU passthrough, the trainer image and HF_TOKEN, and can build the image.
  • train_prepare_datasetStages training images with captions into a named dataset, copying and renaming them.
  • train_startLaunches a detached training job, reports its status and progress, and can cancel it.
  • Dataset guidanceAdvice on image count, variety, rare trigger words and short factual captions.
  • Parameter defaultsDefault steps, learning rate, rank, resolution and save or sample intervals with guidance on changes.
  • Result handoffCopies the finished .safetensors into ComfyUI models/loras/ and upserts the LoRA catalog.

What you need

  • Docker with GPU passthrough (--gpus all)
  • NVIDIA GPU with about 24GB VRAM, RTX 4090 class
  • HF_TOKEN set in the MCP server env for the gated FLUX.1-dev repo
  • comfyui-mcp with the train_* tools
  • ComfyUI

Try asking

  • Train a character LoRA of me from these 20 photos on my local GPU
  • Check whether my Docker trainer setup is ready for LoRA training
  • Show the progress and loss of my running LoRA training job

Good to know

  • Phase-1 scope covers character LoRAs only, not style, slider or edit LoRAs.
  • Base model is FLUX.1-dev, and it needs about 24GB VRAM with quantization.
  • The first run downloads FLUX.1-dev (about 24GB) and is slow before step 1.
  • If the handoff fails, the LoRA must be copied into models/loras/ manually.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: plugin/skills/train-character-lora/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md5 KB

Alternatives to train-character-lora

All alternatives →

Compare with agent-reproduce-align, google_contacts or m06-error-handling

train-character-lora: common questions

How many images do I need to train a character LoRA?

The source recommends 10 to 30 varied images of the subject, with different angles, expressions, lighting, backgrounds and distances. Variety is preferred over count.

How long does a training run take?

The source says a 2000-step run is roughly an hour on a 4090. Training runs detached, so the assistant polls its status rather than waiting.

Does this skill work for WAN or Z-Image LoRAs?

No. The source says WAN and Z-Image training through the ai-toolkit UI is covered by a separate skill called ai-toolkit-trainer.

How do I install train-character-lora?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is train-character-lora free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is train-character-lora safe to use?

It scores 74 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to train-character-lora?

Similar skills: agent-reproduce-align, google_contacts, m06-error-handling, caveman.

train-character-lora Install

Add to stack

Loading.