Skip to content

Colab for training 1.5 and SDXL Loras based on Derrian Distro's Lora_Easy_Training_scripts_Backend

Notifications You must be signed in to change notification settings

Jelosus2/Lora_Easy_Training_Colab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Lora_Easy_Training_Colab

A colab powered by Lora_Easy_Training_Scripts_Backend created by Derrian Distro

DISCLAIMER: The Forked version of the trainer is not maintained by Derrian, please do not open issues there if you encounter any problem. Instead submit them in the forked repo.

Guide

You can check the guide I made on CivitAI

Table of content

Additions of the Forked version

The forked trainer is a modified unofficial version that adds additional features.

The list of additional features: Nothing at the moment

How to obtain the Ngrok token

The colab uses cloudflared quick tunnels as the default method but if it goes down or there's any issue with it you can use the other method to create a tunnel which is ngrok. The only difference with cloudflared is that you will need a token to create the tunnel. You can get it in the Ngrok's dashboard, in the "Your AuthToken" tab.

How to get Ngrok's AuthToken

How to install the UI

Windows

Prerequisites:

Original

Open a command line or PowerShell and run this commands in order

git clone -b dev https://github.com/derrian-distro/LoRA_Easy_Training_Scripts
cd LoRA_Easy_Training_Scripts
install.bat

Old: When you run install.bat answer the question "Are you using this locally?" with n.
New: When you run install.bat answer the question "Are you using colab?" with y.

To run the UI use the run.bat

Forked

Open a command line or PowerShell and run this commands in order

git clone https://github.com/Jelosus2/LoRA_Easy_Training_Colab_Frontend
cd LoRA_Easy_Training_Colab_Frontend
install.bat

To run the UI use the run.bat

Linux

Prerequisites:

  • Install Git with sudo apt install git
  • Install Python 3.10 venv (sudo apt install python3.10-venv) or Python 3.11 venv (sudo apt install python3.11-venv)

Original

Open a terminal and run the following commands in order

git clone -b dev https://github.com/derrian-distro/LoRA_Easy_Training_Scripts
cd LoRA_Easy_Training_Scripts

# Python 3.10
python3.10 ./install.py

# Python 3.11
python3.11 ./install.py

Old: When you run the installer answer the question "Are you using this locally?" with n.
New: When you run the installer answer the question "Are you using colab?" with y.

To run the UI first you have to give permissions to the run.sh file, here is an example:

sudo chmod 755 ./run.sh

and then you can run the UI with

./run.sh

Forked

Open a terminal and run the following commands in order

git clone https://github.com/Jelosus2/LoRA_Easy_Training_Colab_Frontend
cd LoRA_Easy_Training_Colab_Frontend

# Python 3.10
python3.10 ./install.py

# Python 3.11
python3.11 ./install.py

To run the UI first you have to give permissions to the run.sh file, here is an example:

sudo chmod 755 ./run.sh

and then you can run the UI with

./run.sh

How to get the link for custom model/VAE

From Civitai

Method 1

This method works for models/VAEs with 2 or more versions and if the version has only 1 file attached to it. Go to the page of the model/VAE you want to obtain the URL, if you see ?modelVersionId=XXXXXX you can just copy it and paste it in the colab. If you don't then switch to another version and then switch back to the version you want to download.

How to get link from civitai 1st method

Method 2

If the model/VAE only has only one version or the same version has 2+ files attached to it and what you can do is going to the page of the model/VAE, scroll down and display the files, right click on the "Download" button and copy the link address.

How to get link from civitai 2nd method

From HuggingFace

Mehod 1

Go inside the model/VAE you want to download and copy the URL.

How to get link from hf 1st method

Method 2

Go to the directory where the model/VAE is located, right click on the download icon and copy the link address.

How to get link from hf 2nd method

Changelog

  • June 30, 2024:
    • Fixed wd taggers and BLIP captioning + now all taggers run on onnx run time. Keras run time has been removed since it's actually much slower.
    • Now you can use paths to specify where you want to setup the LoRA folder instead of just a name on the root of drive/google colab.
    • Added the ability to give different file names for downloaded models and VAEs. Additionally, now you can save them on your own google drive.
    • Fixed a bunch of bugs and errors.
  • April 9, 2024:
    • Fixed the tagging cell for v2 taggers.
    • Added more options to the tagging cell.
    • Added a LoRA resizer cell under the Utils section.
    • Reworked some of the code and stopped using os library for path and file managemenet. Using pathlib instead.
  • April 4, 2024:
    • Simplify the fix for the sd scripts logging issue.
    • Improved the dependency installation for the captioning cell (Ignore tensorboard error).
  • April 2, 2024:
    • Updated Animagine from 3.0 to 3.1 in the default models available to download.
  • March 29, 2024:
    • Fixed the trainer. You have to update the UI (both original or forked).
    • Added a field that allows you to input a token either from HuggingFace or Civitai to download gated models/VAEs and private datasets.
  • March 10, 2024:
    • Modified the way Forked trainer is installed due to CAME and REX being officially implemented. You have to update the UI (both original or forked) if you want to use any of those, just open a command line in the root folder of the UI and run git pull
    • Added the newly released v3 taggers and modified the script to make them work.

About

Colab for training 1.5 and SDXL Loras based on Derrian Distro's Lora_Easy_Training_scripts_Backend

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published