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

v0.1.8 #189

Open
wants to merge 29 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
388d666
improvements to face cropping, person template and h_flipping
aiXander Feb 13, 2023
a87954c
improvements to face cropping, person template and h_flipping
aiXander Feb 13, 2023
23119e5
merge
aiXander Feb 13, 2023
f476828
xander updates
aiXander Feb 13, 2023
720037c
make import more flexible
aiXander Feb 13, 2023
ef14040
cleanup
aiXander Feb 13, 2023
cfde3e7
cleanup
aiXander Feb 13, 2023
9a77b65
fix bug
aiXander Feb 13, 2023
61f1a19
fix bugs
aiXander Feb 13, 2023
cf69309
bugfixes
aiXander Feb 13, 2023
7399d82
bugfixes
aiXander Feb 13, 2023
49610b5
more bugfixes
aiXander Feb 13, 2023
7445169
disable training previews when using cached_latents
aiXander Feb 13, 2023
fd154d1
disable h_flip_prob tuning when cached latents is active
aiXander Feb 13, 2023
3f10e64
minor updates
aiXander Feb 13, 2023
2b214d0
fix ti continuation
aiXander Feb 14, 2023
871bf81
Various Loggings, bugfixes, enhancements by Xander
cloneofsimo Feb 14, 2023
3026c58
format and bugfix
cloneofsimo Feb 15, 2023
c52dfae
now unet trains
cloneofsimo Feb 15, 2023
b1853d1
format : black
cloneofsimo Feb 15, 2023
9a6b552
bugfix : to L
cloneofsimo Feb 15, 2023
71c8c1d
version
cloneofsimo Feb 15, 2023
cdbaf7a
Support captions list in preprocess files
A2va Feb 17, 2023
c45d59b
Change typing import to support python 3.7
A2va Feb 17, 2023
246c068
Other typing fixes
A2va Feb 17, 2023
46116b8
Update requirements.txt
A2va Feb 17, 2023
a0fb8e6
Merge pull request #193 from A2va/caption-list
cloneofsimo Feb 21, 2023
b85aa80
Merge branch 'develop' into typing-fix
cloneofsimo Feb 21, 2023
9714747
Merge pull request #194 from A2va/typing-fix
cloneofsimo Feb 21, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@ wandb
exps*
.vscode
build
lora_diffusion.egg-info
lora_diffusion.egg-info
training_batch_preview
41 changes: 32 additions & 9 deletions lora_diffusion/cli_lora_add.py
Original file line number Diff line number Diff line change
@@ -1,19 +1,38 @@
from typing import Literal, Union, Dict
import sys
if sys.version_info >= (3,8):
from typing import Literal
else :
from typing_extensions import Literal
from typing import Union, Dict
import os
import shutil
import fire
from diffusers import StableDiffusionPipeline
from safetensors.torch import safe_open, save_file

import torch
from .lora import (
tune_lora_scale,
patch_pipe,
collapse_lora,
monkeypatch_remove_lora,
)
from .lora_manager import lora_join
from .to_ckpt_v2 import convert_to_ckpt

try:
from .lora import (
tune_lora_scale,
patch_pipe,
collapse_lora,
monkeypatch_remove_lora,
)

from .lora_manager import lora_join
from .to_ckpt_v2 import convert_to_ckpt

except: # allows running the repo without installing it (can mess up existing dependencies)
from lora_diffusion import (
tune_lora_scale,
patch_pipe,
collapse_lora,
monkeypatch_remove_lora,
)

from lora_diffusion.lora_manager import lora_join
from lora_diffusion.to_ckpt_v2 import convert_to_ckpt


def _text_lora_path(path: str) -> str:
Expand Down Expand Up @@ -185,3 +204,7 @@ def add(

def main():
fire.Fire(add)


if __name__ == "__main__":
main()