Comments (6)
Thanks for the info!
from lora.
Ok ill make a detailed blogpost on this but I'm really onto other things right now so give me a week or so please!
from lora.
Hi @cloneofsimo, could you also provide some details of your training process? I'm trying to test this method by training a new style, but so far the results aren't as good as in your examples. Interested in info on the parameters you used, training dataset, etc.
from lora.
@d8ahazard ok, so I've just made another mode that converts to ckpt
format that works with v2.0 model.
Here is a full example with lora_illust.pt
, LoRA that was trained on 10 illust images for 30000 steps with learning rate of 1e-4 :
lora_add --path_1 stabilityai/stable-diffusion-2-base --path_2 lora_illust.pt --mode upl-ckpt-v2 --alpha 1.2 --output_path merged_model.ckpt
I'm not sure if this works with v1.x tho, because I haven't trained lora on them yet. Put the checkpoint to for example, A1111's webui, and you get :
Which is exactly same output and configuration that you can find in the recently updated notebook scripts/run_inference.ipynb
:
(So this proves that transformation works perfectly I guess?)
from lora.
@qunash Train with relatively large learning rate! This seems to be the common problem that everyone is having.
By the way, I didn't play around with the parameters enough to conclusively say anything about "best training configurations" other than the fact that it works reasonably well.
from lora.
All the loras in the example were trained with large learning rate, without prior preservation.
from lora.
Related Issues (20)
- what is?
- Do we need to finetune controlnet when we merge sd with different lora?
- Can LoRA be applied to different base models?
- Training a lora_model with inpainting is giving conversion failed: . the model may not be trained by `sd-scripts`. HOT 2
- Citation HOT 2
- The examples in run_inference.ipynb cannot work. RuntimeError: The size of tensor a (320) must match the size of tensor b (2560) at non-singleton dimension 2. HOT 4
- SDXL 0.9 / 1.0 HOT 1
- RuntimeError: One of the differentiated Tensors does not require grad HOT 3
- classifier free guidance during training and inference
- Face seg mask is not in [0, 1]
- cannot find the function monkeypatch_lora() HOT 1
- Inpainting not working on custom dataset but image generation works. HOT 1
- TypeError: LoraInjectedLinear.forward() got an unexpected keyword argument 'scale' HOT 8
- [patch_pipe] UnboundLocalError: local variable '_tmp' referenced before assignment HOT 1
- the `optimizer.zero_grad()` is called after loss backward
- New version of HuggingFace đ¤ diffusers library is incompatible with this codebase.
- How to embed lora in a custom stable diffusion network HOT 1
- č°åēĻå¨éŽéĸīŧ
- lora_pti broken: np.float_ error HOT 1
- No matter what I put: `ValueError: The initializer token must be a single token.`
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
đ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google â¤ī¸ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lora.