FlyMyAI/flymyai-lora-trainer

Qwen-Image text to image lora trainer

What it solves

This project provides the tools to train LoRA (Low-Rank Adaptation) layers for specific AI image models. LoRA is a technique that allows you to fine-tune large models to learn new styles, characters, or specific editing capabilities without needing to retrain the entire model from scratch, which saves significant computing resources.

How it works

You provide a dataset of images paired with descriptive text files. The trainer uses these pairs to adjust the model's weights. You configure the training process using simple YAML files, and the project includes utilities to validate your dataset before you begin. Once trained, the resulting LoRA weights can be loaded into standard pipelines like Hugging Face diffusers or ComfyUI to generate images with your custom style or subject.

Who it’s for

It is designed for developers and AI enthusiasts who want to customize Qwen-Image, Qwen-Image-Edit, or FLUX.1-dev models. It is particularly useful for those looking to create high-quality character portraits or specialized image-editing agents while working with limited hardware, including support for GPUs with less than 24GB of VRAM.

Highlights

  • Supports LoRA training for Qwen-Image, Qwen-Image-Edit, and FLUX.1-dev models.
  • Includes dataset validation scripts to ensure data quality and correct formatting.
  • Compatible with Hugging Face diffusers and provides ready-to-use ComfyUI workflows.
  • Offers flexible configuration via YAML files for different training needs.
  • Includes specific support for control-based image editing.

Related

  • Project
  • Project
  • Project
  • Project