Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: cloneofsimo/lora
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: cloneofsimo/lora
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: develop
Choose a head ref
Able to merge. These branches can be automatically merged.

Commits on Feb 13, 2023

  1. Copy the full SHA
    388d666 View commit details
  2. Copy the full SHA
    a87954c View commit details
  3. merge

    aiXander committed Feb 13, 2023
    Copy the full SHA
    23119e5 View commit details
  4. xander updates

    aiXander committed Feb 13, 2023
    Copy the full SHA
    f476828 View commit details
  5. make import more flexible

    aiXander committed Feb 13, 2023
    Copy the full SHA
    720037c View commit details
  6. cleanup

    aiXander committed Feb 13, 2023
    Copy the full SHA
    ef14040 View commit details
  7. cleanup

    aiXander committed Feb 13, 2023
    Copy the full SHA
    cfde3e7 View commit details
  8. fix bug

    aiXander committed Feb 13, 2023
    Copy the full SHA
    9a77b65 View commit details
  9. fix bugs

    aiXander committed Feb 13, 2023
    Copy the full SHA
    61f1a19 View commit details
  10. bugfixes

    aiXander committed Feb 13, 2023
    Copy the full SHA
    cf69309 View commit details
  11. bugfixes

    aiXander committed Feb 13, 2023
    Copy the full SHA
    7399d82 View commit details
  12. more bugfixes

    aiXander committed Feb 13, 2023
    Copy the full SHA
    49610b5 View commit details
  13. Copy the full SHA
    7445169 View commit details
  14. Copy the full SHA
    fd154d1 View commit details
  15. minor updates

    aiXander committed Feb 13, 2023
    Copy the full SHA
    3f10e64 View commit details

Commits on Feb 14, 2023

  1. fix ti continuation

    aiXander committed Feb 14, 2023
    Copy the full SHA
    2b214d0 View commit details
  2. Various Loggings, bugfixes, enhancements by Xander

    Xander updates
    cloneofsimo authored Feb 14, 2023
    Copy the full SHA
    871bf81 View commit details

Commits on Feb 15, 2023

  1. format and bugfix

    cloneofsimo committed Feb 15, 2023
    Copy the full SHA
    3026c58 View commit details
  2. now unet trains

    cloneofsimo committed Feb 15, 2023
    Copy the full SHA
    c52dfae View commit details
  3. format : black

    cloneofsimo committed Feb 15, 2023
    Copy the full SHA
    b1853d1 View commit details
  4. bugfix : to L

    cloneofsimo committed Feb 15, 2023
    Copy the full SHA
    9a6b552 View commit details
  5. version

    cloneofsimo committed Feb 15, 2023
    Copy the full SHA
    71c8c1d View commit details

Commits on Feb 17, 2023

  1. Copy the full SHA
    cdbaf7a View commit details
  2. Change typing import to support python 3.7

    * Remove unused import
    A2va committed Feb 17, 2023
    Copy the full SHA
    c45d59b View commit details
  3. Other typing fixes

    A2va committed Feb 17, 2023
    Copy the full SHA
    246c068 View commit details
  4. Update requirements.txt

    A2va committed Feb 17, 2023
    Copy the full SHA
    46116b8 View commit details

Commits on Feb 21, 2023

  1. Merge pull request #193 from A2va/caption-list

    Support captions list in preprocess files
    cloneofsimo authored Feb 21, 2023
    Copy the full SHA
    a0fb8e6 View commit details
  2. Copy the full SHA
    b85aa80 View commit details
  3. Merge pull request #194 from A2va/typing-fix

    Typing fix
    cloneofsimo authored Feb 21, 2023
    Copy the full SHA
    9714747 View commit details
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -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:
@@ -185,3 +204,7 @@ def add(

def main():
fire.Fire(add)


if __name__ == "__main__":
main()
Loading