Giter VIP home page Giter VIP logo

hypernetwork-monkeypatch-extension's Introduction

Hypernetwork-MonkeyPatch-Extension

Extension that patches Hypernetwork structures and training image

image

For Hypernetwork structure, see AUTOMATIC1111/stable-diffusion-webui#4334

For Variable Dropout, see AUTOMATIC1111/stable-diffusion-webui#4288

Train_Beta(now, train_gamma) tab allows some more options with improved training.

image

Features

No-Crop Training image You can train without cropping images. THis feature is now implemented in original webui too! ๐Ÿฅณ

Fix OSError while training

Unload Optimizer while generating Previews

Tensorboard integration, and Tuning

Residual-Block based Hypernetwork(in beta test)

Create_Beta_hypernetwork allows creating beta hypernetworks.

Beta hypernetworks* can contain additional informations and specified dropout structures. It will be loaded without extension too, but it won't load dropout structure, so training won't work as original. Generating images should work identically.

This extension also overrides how webui loads and finds hypernetworks, to use variable dropout rates, and etc. Thus, hypernetwork created with variable dropout rate might not work correctly in original webui.

Well, at least now it should work, without having any problem except you cannot use variable dropout rate in original webui. If you have problem with loading hypernetworks, please create an issue. I can submit pr to original branch to load these beta typed hypernetworks correctly.

Training features are in train_gamma tab.

image

If you're unsure about options, just enable every checkbox, and don't change default value.

CosineAnnealingWarmupRestarts

image

This also fixes some CUDA memory issues. Currently both Beta and Gamma Training is working very well, as far as I could say.

Hyperparameter Tuning

image Now you can save hypernetwork generation / training setting, and load it in train_tuning tab. This will allow combination of hypernetwork structures, and training setups, to find best way for stuff.

CLIP change test tab

image Now you can select CLIP model, its difference is significant but whether its better or not is unknown.

Residual hypernetwork?

The concept of ResNet, returning x + f(x) instead in layers, are available with option. Original webui does not support this, so you cannot load it without extension. Unlike expanding type (1 -> 2 -> 1), shrinking type(1 -> 0.1 -> 1) network will lost information at initial phase. In this case, we need to additionally train transformation that compresses and decompresses it. This is currently only in code, its not offered in UI at default.

Planned features

Allow using general models with .safetensor save /loading

Some personal researches

We cannot apply convolution for attention, it does do something, but hypernetwork here, only affects attention, and its different from 'attention map' which is already a decoded form(image BW vectors) of attention(latent space). Same goes to SENet, unfortunately.

hypernetwork-monkeypatch-extension's People

Contributors

aria1th 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.