Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[dev] Improved LoRA Rank Settings & Definition Changes #853

Conversation

ExponentialML
Copy link
Collaborator

@ExponentialML ExponentialML commented Jan 25, 2023

Improves the LoRA ranking settings by having them be configurable separately.

What brought about this change was the text encoder having a low amount of weight at the highest setting (100). The max is now at the LoRA implementation's recommended maximum of 768. I'm leaving the UNET for LoRA at 128 as it's great for most cases.

Lora UNET now has a maximum rank of 128.
Lora Text Encoder now has a maximum rank of 768.

d8ahazard and others added 14 commits January 23, 2023 15:30
Same TypeError as issue d8ahazard#804,

Step I do:
1. Select `Model`
2. Load Settings
3. Save Settings
4. Generate Ckpt

```
Exception compiling checkpoint: stat: path should be string, bytes, os.PathLike or integer, not list
Traceback (most recent call last):
  File "E:\stable-diffusion-webui\extensions\sd_dreambooth_extension\dreambooth\diff_to_sd.py", line 388, in compile_checkpoint
    if not os.path.exists(lora_path):
  File "C:\Program Files\Python310\lib\genericpath.py", line 19, in exists
    os.stat(path)
TypeError: stat: path should be string, bytes, os.PathLike or integer, not list
```
Update API: fixing POST /dreambooth/model_config
I had enough with Gradio mischief
@ExponentialML ExponentialML marked this pull request as ready for review January 25, 2023 18:45
@ExponentialML
Copy link
Collaborator Author

Need to fix some issues with sampling first. Will re-open when ready.

@ExponentialML ExponentialML deleted the features/lora-rank-improvements branch January 30, 2023 18:19
@ExponentialML
Copy link
Collaborator Author

Superseded by #880

@FurkanGozukara
Copy link
Contributor

@ExponentialML what do you suggest for
unet rank
and text rank

for faces and for styles differently?

also what learning rates do you suggest accordingly for 8bitadam optimizer and for lion?

thank you so much

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants