• Stars
    star
    113
  • Rank 310,115 (Top 7 %)
  • Language
    Python
  • License
    MIT License
  • Created almost 2 years ago
  • Updated about 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Fast finetuning using a booster model that puts the initial state to a local minimum

What is LEAP?

Demo video

It's a research project where input images are being converted to a local minimum in latent space. Then, we feed the weights to Stable Diffusion's Textual Inversion model.

The benefits are huge, training takes easily under 5 minutes, with little quality difference from training for hours on the same hardware.

It is scalable enough to offer in a low-scale Discord bot like Thingy, where our goal is to introduce people to AI without it costing hundreds of dollars per month in GPU rent!

Love you all! Sorry for the fact this README is a little crunchy. It is because I'm so excited and jumpy, never thought it would work.

Join my discord to check out Thingy 3! It has /train that uses LEAP under the hood!

Check this colab for testing out right away!

How to use with Stable Diffusion

Note The author is used to Linux, while Windows should work, the author can't guarantee working README instructions.

  • Run the following command: pip install git+https://github.com/peterwilli/sd-leap-booster.git
  • Download the weights (for example, Stable Diffusion 2.1 with Textual Inversion)
  • Run leap_textual_inversion and set the parameters to what you wish (they are similar to the official textual inversion script) and also point to your LEAP model weights: --leap_model_path=/path/to/leap_ti_2.0_beta.ckpt
    • An example: leap_textual_inversion --pretrained_model_name_or_path=stabilityai/stable-diffusion-2-1-base --placeholder_token="<peter>" --train_data_dir=path/to/images --learning_rate=0.001 --leap_model_path=/path/to/leap_ti_2.0_beta.ckpt

Train your own model!

See training/README.md for instructions

Support, sponsorship and thanks

Are you looking to make a positive impact and get some awesome perks in the process? Join me on Patreon! For just $3 per month, you can join our Patreon community and help a creative mind in the Netherlands bring their ideas to life.

Not only will you get the satisfaction of supporting an individual's passions, but you'll also receive a 50% discount on any paid services that result from the projects you sponsor. Plus, as a Patreon member, you'll have exclusive voting rights on new features and the opportunity to shape the direction of future projects. Don't miss out on this chance to make a difference and get some amazing benefits in return.

One of the things we intend on doing, is trying to make LEAP with Lora!

Special thanks to:

  • Mahdi Chaker for the heavy training GPUs!
  • LAION/Stability AI for providing training GPU's And hopefully I get confident enough to soon try them.
  • Jina.ai for giving the computation power to run my bot!
  • You?

More Repositories

1

iota-ledger-nano-s

IOTA support on Ledger Nano S
Assembly
98
star
2

iota-ion.lib.js

IOTA ION Library - Fast data-troughput in the browser, supported by the IOTA tangle.
JavaScript
27
star
3

IOTA-tangle-explorer

A new, realtime tangle explorer
JavaScript
26
star
4

Ghoster

Expose your local services over SSH using a single server, great ngrok.io alternative
JavaScript
23
star
5

Thingy

All things generative! Discord Bot
Kotlin
21
star
6

Colab_SFTP

Mount a local folder on your PC in Google Colab!
Shell
16
star
7

IOTA-Snapshot-Recovery

Zero balance in your wallet after a snaphot? Run this script and transfer your money to a new address!
JavaScript
12
star
8

hb-advanced-docker

Development and automated production image builder for hummingbot on Docker
Dockerfile
10
star
9

CoolQueue.io

Sweet persistent socket.io failsafe for true gentlemen!
JavaScript
10
star
10

NameAI

Let AI come up with your next domain name!
Jupyter Notebook
10
star
11

YubiKeyStickers

Make your own YubiKey covers!
9
star
12

Endless-AWSW

Angels with Scaly Wings Mod that allows for AI-enhanced narratives.
Jupyter Notebook
7
star
13

IOTA-ION-Calls

Make (video) calls using WebRTC with any IOTA node as signalling server.
CSS
5
star
14

lemmemovetolemmy

It will send your posts to any given Lemmy Instance or Community
JavaScript
5
star
15

XP-Pen-Pentablet-Driver-for-Nixos

NixOS port of https://www.xp-pen.com/download-67.html
Nix
4
star
16

IOTA-Game.js

A skill-based gambling framework based on IOTA Flash. Create provably-fair decentralized online games!
JavaScript
3
star
17

ToCase

To Case is a command line case-changing tool especially designed for the Helix Editor
Rust
3
star
18

KeepMyJCloud

A tool that forwards clients to an up to date JCloud instance (in development)
Rust
2
star
19

LucidDreamingAnchorHelper

Helper application for the "setting an anchor"-technique in lucid dreaming
C++
2
star
20

IdentiQR

QR Codes with identification icons
JavaScript
2
star
21

HurricAIne

Research project for my talk at the Isense Big Data Summit Gouda - predicting time of arrival of hurricanes in Texas, Houston.
Jupyter Notebook
2
star
22

Lightwatch

Monorepo for the Lightwatch-firmware and hardware
Jupyter Notebook
2
star
23

RK-AtomicUpdate

A objc-category supporting atomic updates with Core Data and Reskit
Objective-C
2
star
24

iota.lib.js.webpack

IOTA Fork with webpack support
JavaScript
2
star
25

Hodini

Set a RGB led strip (On ESP8266) to the average color of your screen -- immersive gaming!
C++
2
star
26

EmeraldFund

The official Emerald Fund strategy for Hummingbot Dashboard
Python
2
star
27

restor-e

Experimental multi-modal text-guided AI restoration
1
star
28

Liquilt

Open source 3D quilt viewer - usefull for Looking Glass quilts!
JavaScript
1
star
29

CBSearchOrCreate

Useful combined search & creation solution
Objective-C
1
star
30

fabric-pc-mod

Allows PCs to be used in Minecraft (including multiplayer) using VNC Remote desktop
Java
1
star
31

veikk-a15-linux-driver

Linux driver for the Veikk A15 Drawing Tablet
C
1
star
32

IOTA-NS

A PoW name system for IOTA. Proof-of-concept contains a web app with a custom wallet that can work with names instead of regular adresses.
JavaScript
1
star