tsiendragon/qwen-image-finetune/qwen-image-edit-aipc-finetune-08-validation
Claude Code and agent skill by tsiendragon/qwen-image-finetune
- community
Checking that the SKILL.md file is still in the repository.
Step 8 of 8 (final) of the Qwen-Image-Edit AI PC fine-tuning walkthrough. Use after qwen-image-edit-aipc-finetune-07-training. Validate that the trained LoRA learned the intended edit: optional in-training TensorBoard sampling, post-training base-vs-LoRA visual comparison with inference_compare.py, quality/precision configs, and a three-dimension visual evaluation checklist. Only use once training has produced a checkpoint.
Install
npx vskill@latest install tsiendragon/qwen-image-finetune/qwen-image-edit-aipc-finetune-08-validationSKILL.md
Step 8 — Validation
Series position: Step 8 of 8 (final step).
Validation answers: did the LoRA learn the intended edit? The approach has three layers of increasing depth — use as many as needed.
Prerequisites:
- Training complete; at least one checkpoint written (Step 7)
- Test samples set aside (Step 2)
- Conda env active; model paths known
8.1 In-training visual monitoring (TensorBoard sampling)
The framework can generate sample outputs during training at regular intervals and log them to TensorBoard, giving a visual sense of progress without extra code. (Source: `docs/guide/validation_sampling.md`, qwen-image-finetune v3.1.0)
Configure in the training YAML:
Start TensorBoard (in a separate terminal):
Then open the Images tab to compare outputs across checkpoints.
⚠️ 32 GB AI PC constraint:validation.enabled: trueis the explicit exception to the normalStep 5 fit-phaseskip_text_encoderrequirement, forcingtext_encoderto stay in memory duringfit. On 32 GB machines this causes OOM. Options:- Recommended: keepvalidation.enabled: falseduring training; run §8.2 post-training instead.- Train on a 64 GB+ machine where the extra ~15 GB fits.- Step 6 §6.2 NF4 text_encoder reduces text_encoder from ~15 GB to ~5.5 GB, which may makein-training validation feasible on 32 GB — not tested withvalidation.enabled: true.
8.2 Post-training visual comparison (inference_compare.py)
After training completes, run inference twice on a held-out test set — once with the base model and once with the trained LoRA — then compare the outputs.
Getting a test split
Use whichever source matches how you prepared your test set in Step 2 §2.8:
- Image directory (held-out folder with
training_images/+control_images/): use--test-dir - Parquet (directory containing
data/*.parquet, or a direct.parquetfile path): use--test-parquet - CSV (same column format as the training CSV): use
--test-csv
All three sources produce the same output; choose the one that matches your data.
Save the script as inference_compare.py in the project root:
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/qwen-image-edit-aipc-finetune-08-validation/SKILL.md
Popularity
- Repository stars
- 253
- Repository forks
- 27
- 7-day trend score
- 28
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/tsiendragon/qwen-image-finetune/qwen-image-edit-aipc-finetune-08-validation)