Skip to content

Commit

Permalink
Merge pull request #99 from ddPn08/sdxl
Browse files Browse the repository at this point in the history
support sdxl
  • Loading branch information
ddPn08 authored Jul 7, 2023
2 parents 4b19bad + 6fdca66 commit fcdf5d9
Show file tree
Hide file tree
Showing 15 changed files with 462 additions and 1,627 deletions.
1 change: 0 additions & 1 deletion modules/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@

parser.add_argument("--xformers", action="store_true")
parser.add_argument("--tensorrt", action="store_true")
parser.add_argument("--deepfloyd_if", action="store_true")

cmd_opts, _ = parser.parse_known_args(
os.environ["COMMANDLINE_ARGS"].split(" ")
Expand Down
11 changes: 3 additions & 8 deletions modules/diffusion/networks/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
from glob import glob
from typing import *

import losalina.hypernetwork
import torch

from api.events import event_handler
Expand All @@ -12,8 +11,7 @@
from modules.logger import logger
from modules.shared import ROOT_DIR

from . import lora, lyco
from .hypernetwork import hijack_hypernetwork
from . import lyco

latest_networks: List[Tuple[str, torch.nn.Module]] = []

Expand Down Expand Up @@ -84,13 +82,10 @@ def load_network_modules(e: LoadResourceEvent):
multiplier = float(multiplier)
if module_type == "lora":
filepath = find_network_filepath(basename, "lora")
network_module = lora
network_module = lyco
elif module_type == "lyco":
filepath = find_network_filepath(basename, "lycoris")
network_module = lyco
elif module_type == "hypernet":
filepath = find_network_filepath(basename, "hypernetwork")
network_module = losalina.hypernetwork
else:
continue

Expand Down Expand Up @@ -121,4 +116,4 @@ def load_network_modules(e: LoadResourceEvent):


def init():
hijack_hypernetwork()
pass
50 changes: 0 additions & 50 deletions modules/diffusion/networks/hypernetwork/__init__.py

This file was deleted.

202 changes: 0 additions & 202 deletions modules/diffusion/networks/hypernetwork/attentions.py

This file was deleted.

Loading

0 comments on commit fcdf5d9

Please sign in to comment.