Giter Club home page Giter Club logo

diffusers's Introduction

Fork from ShivamShirao diffusers repo https://github.com/ShivamShrirao/diffusers optimized for Anything v3.0

You can use almost any Stable Diffusion model from HuggingFace for training via this repository.

This fork will use training and class images from your Google Drive. Quick and easy usage. You can upload files via Google Drive for Desktop.

Everything is preconfigured for 36 (N) training pictures via following formula:

Number of subject images (instance) = N

Number of class images (regularization) = N x 12

Maximum number of Steps = N x 80 (this is what I'm tweaking right now but between 80 and 100 should be enough)

Learning rate = 1e-6

Learning rate schedule = polynomial

Learning rate warmup steps = Steps / 10

Quick start guide:

  1. Download training pictures from here: https://drive.google.com/drive/folders/1eYmoi_ukumAsvOf9M7-0rWYFjPyoed1r?usp=share_link And save them to: (GoogleDrive\SD\genshin) directory
  2. Download class pictures from here: https://drive.google.com/drive/folders/1XGfyLeqTcF4CMplcC1atxR0CtFHeVfGA?usp=share_link And save them to: (GoogleDrive\SD\waifu) directory

Open this Google Colab and start training:

DreamBooth Colab

After training model.ckpt file for AUTOMATIC1111 Web UI will be saved to (GoogleDrive\SD\ckpt(number of steps)\model.ckpt) directory

Use the table below to choose the best flags based on your memory and speed requirements. Tested on Tesla T4 GPU. Everything is already preconfigured for free version of Google Colab.

fp16 train_batch_size gradient_accumulation_steps gradient_checkpointing use_8bit_adam GB VRAM usage Speed (it/s)
fp16 1 1 TRUE TRUE 9.92 0.93
no 1 1 TRUE TRUE 10.08 0.42
fp16 2 1 TRUE TRUE 10.4 0.66
fp16 1 1 FALSE TRUE 11.17 1.14
no 1 1 FALSE TRUE 11.17 0.49
fp16 1 2 TRUE TRUE 11.56 1
fp16 2 1 FALSE TRUE 13.67 0.82
fp16 1 2 FALSE TRUE 13.7 0.83
fp16 1 1 TRUE FALSE 15.79 0.77

diffusers's People

Contributors

anton-l avatar apolinario avatar daspartho avatar duongna21 avatar jachiam avatar kashif avatar ki-arie avatar lewington-pitsos avatar luffythefox avatar lysandrejik avatar markrich avatar nateraw avatar natolambert avatar nouamanetazi avatar osanseviero avatar patil-suraj avatar patrickvonplaten avatar pcuenca avatar piesposito avatar python273 avatar ryanrussell avatar santiviquez avatar satpalsr avatar shirayu avatar shivamshrirao avatar sidthekidder avatar skytnt avatar tmabraham avatar ydshieh avatar younesbelkada 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.