Skip to content

Commit

Permalink
use lycoris_lora module
Browse files Browse the repository at this point in the history
  • Loading branch information
ddPn08 committed Jul 7, 2023
1 parent 994f0b8 commit 8c4c847
Show file tree
Hide file tree
Showing 8 changed files with 189 additions and 889 deletions.
8 changes: 2 additions & 6 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,7 +11,7 @@
from modules.logger import logger
from modules.shared import ROOT_DIR

from . import lora, lyco
from . import lyco

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

Expand Down Expand Up @@ -83,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
276 changes: 0 additions & 276 deletions modules/diffusion/networks/lora.py

This file was deleted.

Loading

0 comments on commit 8c4c847

Please sign in to comment.