Skip to content
프로젝트

소개

kohya-ss/sd-scripts를 기반으로 Google Colab에서 Illustrious/NoobAI, Anima, MOSS-Image용 LoRA를 한 번의 클릭으로 학습합니다.

디자인 및 미디어

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
0
in 7 days
0
in 15 days
-1
in 1 month
+2

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

Kohya Trainer

Train LoRAs on Google Colab in one click. The notebooks run kohya-ss/sd-scripts, pinned to an exact upstream commit, so they keep working when upstream changes.

What it is for

kohya-trainer trains LoRAs on Colab the way LoRA trainers already work: sd-scripts names for every setting, the usual folder and caption habits, and the steps people take to get from images to a finished LoRA.

  • The 1-click notebook is one press: add your images and train. Every setting has a default. It is not a cut-down trainer: its cell takes any sd-scripts setting, so a power user can use it too.
  • The advanced notebook runs the same steps one cell at a time, so you can check and redo each stage.
  • Nothing goes in unless it helps you finish a LoRA in one sitting.

Notebooks

Model GPU 1-click Advanced (per-stage)
Illustrious / NoobAI L4 Open in Colab Open in Colab
Anima L4 Open in Colab Open in Colab
MOSS-Image L4 Open in Colab Open in Colab

Other models

Model GPU 1-click Advanced (per-stage)
Stable Diffusion 1.5 L4 Open in Colab Open in Colab
SDXL L4 Open in Colab Open in Colab

The notebooks ask Colab for an L4 GPU, which needs a paid Colab plan. Each notebook says how it runs on other GPUs.

1-click: pick a base model, point it at your images, and press run. You get the LoRA and sample images, and with save_every_n_epochs at 1 (the default) a file for each epoch. Any other sd-scripts setting goes in config_overrides in the cell's code.

Advanced: the same steps in separate cells (download, dataset, tagging, configure, train), so you can check and redo each stage.

Both can upload each saved epoch to the Hugging Face Hub and log to Weights & Biases.

Your dataset

  • A folder, a .zip, a link to a .zip, or a Hugging Face dataset repo (user/name).
  • Subfolders named like 10_mychar train with that many repeats each.
  • Each image can have a .txt caption file with the same name. If no image has one, the WD tagger tags them. On MOSS-Image the tagger is off by default, so set trigger_word.

With Google Drive mounted (the default), the LoRA files go to MyDrive/lora/<project>/output.

Tokens

Add these to Colab Secrets when you need them: HF_TOKEN (read access for gated models, write access for uploads), WANDB_API_KEY and CIVITAI_TOKEN. The notebooks never write a token to disk or print it.

Contributing

See CONTRIBUTING.md.

Acknowledgements

License

Apache-2.0. The training backend, kohya-ss/sd-scripts, is also Apache-2.0.

관련 프로젝트 살펴보기

불러오는 중…