A project for fine-tuning the Chroma diffusion model using LoRA. This repo is based on tdrussell's diffusion-pipe and lodestone-rock/flow.
This repository provides tools and scripts for training custom Chroma image generation models using the Low-Rank Adaptation (LoRA) technique. Chroma is a powerful text-to-image diffusion model, and this project makes it easier to fine-tune it on your own datasets.
token or as an environment variable HF_TOKENIntialize the workspace:
curl -s https://raw.githubusercontent.com/geocine/diffusion-chroma/refs/heads/main/init.sh | bash
Prepare your dataset:
/workspace/dataset/images directorydataset.tomlConfigure training settings:
chroma.toml to adjust training parametersStart training:
./run.sh chroma.toml
Generate samples: Samples will be generated automatically during training in the output directory
| File | Description |
|---|---|
| dataset.toml | This file defines how your training data is processed |
| chroma.toml | This file contains the main training configuration |
Initializes the project by:
Downloads the necessary model files:
Requires a Hugging Face token in a file named token or as an environment variable HF_TOKEN.
Manages the training process:
Usage:
./run.sh chroma.toml [--clear]
Options:
--clear: Clears existing captions before processingThis project incorporates code from multiple sources under different licenses:
Please note that this project contains components under multiple licenses including:
When using or modifying this code, please ensure you comply with all relevant license terms.
10 commits
Python
97.8%
Shell
2.2%
A project for fine-tuning the Chroma diffusion model using LoRA. This repo is based on tdrussell's diffusion-pipe and lodestone-rock/flow.
This repository provides tools and scripts for training custom Chroma image generation models using the Low-Rank Adaptation (LoRA) technique. Chroma is a powerful text-to-image diffusion model, and this project makes it easier to fine-tune it on your own datasets.
token or as an environment variable HF_TOKENIntialize the workspace:
curl -s https://raw.githubusercontent.com/geocine/diffusion-chroma/refs/heads/main/init.sh | bash
Prepare your dataset:
/workspace/dataset/images directorydataset.tomlConfigure training settings:
chroma.toml to adjust training parametersStart training:
./run.sh chroma.toml
Generate samples: Samples will be generated automatically during training in the output directory
| File | Description |
|---|---|
| dataset.toml | This file defines how your training data is processed |
| chroma.toml | This file contains the main training configuration |
Initializes the project by:
Downloads the necessary model files:
Requires a Hugging Face token in a file named token or as an environment variable HF_TOKEN.
Manages the training process:
Usage:
./run.sh chroma.toml [--clear]
Options:
--clear: Clears existing captions before processingThis project incorporates code from multiple sources under different licenses:
Please note that this project contains components under multiple licenses including:
When using or modifying this code, please ensure you comply with all relevant license terms.
10 commits
Python
97.8%
Shell
2.2%