Giter Club home page Giter Club logo

Comments (5)

b-fission avatar b-fission commented on July 28, 2024

There are 3 learning rates to configure.

The first one is simply called "Learning rate" but it can be overridden by the other two: "Text Encoder learning rate (optional)" and "Unet learning rate (optional)"

If you want to disable TE training, then ignore the first Learning rate, set the learning rates for Text Encoder to 0 and Unet to whatever value you need.

You can verify that it's training unet-only by looking for the line network_train_unet_only = true in the config_lora-xxxxx.toml file.

Another way to verify is through the log output. When you are training unet only, the log should only say enable for the Unet but not for the text encoder

INFO     create LoRA network. base dim (rank): 64, alpha: 32
INFO     neuron dropout: p=0.1, rank dropout: p=0.1, module dropout: p=0.1
INFO     create LoRA for Text Encoder 1:
INFO     create LoRA for Text Encoder 2:
INFO     create LoRA for Text Encoder: 264 modules.
INFO     create LoRA for U-Net: 722 modules.
INFO     enable LoRA for U-Net: 722 modules
prepare optimizer, data loader etc.

from kohya_ss.

rafstahelin avatar rafstahelin commented on July 28, 2024

Oh gosh, the devil in the details. I didn't understand the gui's top LR entry. When does one use the same values for Unet and te. But makes perfect sense to only use the bottom values
Thanks for clear explanation. I can see now that the te is correctly behaving on the graphs thank you very much for your kind response

from kohya_ss.

rafstahelin avatar rafstahelin commented on July 28, 2024

There are 3 learning rates to configure.

The first one is simply called "Learning rate" but it can be overridden by the other two: "Text Encoder learning rate (optional)" and "Unet learning rate (optional)"

If you want to disable TE training, then ignore the first Learning rate, set the learning rates for Text Encoder to 0 and Unet to whatever value you need.

You can verify that it's training unet-only by looking for the line network_train_unet_only = true in the config_lora-xxxxx.toml file.

Another way to verify is through the log output. When you are training unet only, the log should only say enable for the Unet but not for the text encoder


INFO     create LoRA network. base dim (rank): 64, alpha: 32

INFO     neuron dropout: p=0.1, rank dropout: p=0.1, module dropout: p=0.1

INFO     create LoRA for Text Encoder 1:

INFO     create LoRA for Text Encoder 2:

INFO     create LoRA for Text Encoder: 264 modules.

INFO     create LoRA for U-Net: 722 modules.

INFO     enable LoRA for U-Net: 722 modules

prepare optimizer, data loader etc.

@b-fission btw, do you do any consulting?

from kohya_ss.

b-fission avatar b-fission commented on July 28, 2024

No, I'm just dabbling with the tools here occasionally.

from kohya_ss.

rafstahelin avatar rafstahelin commented on July 28, 2024

@b-fission thanks no problem

from kohya_ss.

Related Issues (20)

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.