Git Product home page Git Product logo

invoke-training's Introduction

invoke-training

A library for training custom Stable Diffusion models (fine-tuning, LoRA training, textual inversion, etc.) that can be used in InvokeAI.

Warning

invoke-training is still under active development, and breaking changes are likely. Full backwards compatibility will not be guaranteed until v1.0.0. In the meantime, I recommend pinning to a specific commit hash.

Documentation

https://invoke-ai.github.io/invoke-training/

Training Modes

  • Stable Diffusion
    • LoRA
    • DreamBooth LoRA
    • Textual Inversion
  • Stable Diffusion XL
    • LoRA
    • DreamBooth LoRA
    • Textual Inversion
    • LoRA and Textual Inversion

More training modes coming soon!

Installation

For more installation details, see the Installation section of the documentation.

# A recent version of pip is required, so first upgrade pip:
python -m pip install --upgrade pip

# Editable install:
pip install -e ".[test]" --extra-index-url https://download.pytorch.org/whl/cu121

Quick Start

invoke-training pipelines can be configured and launched from either the CLI or the GUI.

CLI

Run training via the CLI with type-checked YAML configuration files for maximum control:

invoke-train --cfg-file src/invoke_training/sample_configs/sdxl_textual_inversion_gnome_1x24gb.yaml

GUI

Run training via the GUI for a simpler starting point.

invoke-train-ui

# Or, you can optionally override the default host and port:
invoke-train-ui --host 0.0.0.0 --port 1234

Features

Training progress can be monitored with Tensorboard: Screenshot of the Tensorboard UI showing validation images. Validation images in the Tensorboard UI.

All trained models are compatible with InvokeAI:

Screenshot of the InvokeAI UI with an example of a Yoda pokemon generated using a Pokemon LoRA model. Example image generated with the prompt "A cute yoda pokemon creature." and a trained Pokemon LoRA.

Contributing

Contributors are welcome. For developer guidance, see the Contributing section of the documentation.

invoke-training's People

Contributors

ryanjdick avatar hipsterusername avatar skunkworxdark avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.