lycoris-lora 3.0.1.dev10__tar.gz → 3.0.1.dev11__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {lycoris_lora-3.0.1.dev10/lycoris_lora.egg-info → lycoris_lora-3.0.1.dev11}/PKG-INFO +1 -1
- {lycoris_lora-3.0.1.dev10 → lycoris_lora-3.0.1.dev11}/lycoris/modules/lokr.py +13 -1
- {lycoris_lora-3.0.1.dev10 → lycoris_lora-3.0.1.dev11/lycoris_lora.egg-info}/PKG-INFO +1 -1
- {lycoris_lora-3.0.1.dev10 → lycoris_lora-3.0.1.dev11}/setup.py +1 -1
- {lycoris_lora-3.0.1.dev10 → lycoris_lora-3.0.1.dev11}/LICENSE.md +0 -0
- {lycoris_lora-3.0.1.dev10 → lycoris_lora-3.0.1.dev11}/README.md +0 -0
- {lycoris_lora-3.0.1.dev10 → lycoris_lora-3.0.1.dev11}/lycoris/__init__.py +0 -0
- {lycoris_lora-3.0.1.dev10 → lycoris_lora-3.0.1.dev11}/lycoris/config.py +0 -0
- {lycoris_lora-3.0.1.dev10 → lycoris_lora-3.0.1.dev11}/lycoris/functional/__init__.py +0 -0
- {lycoris_lora-3.0.1.dev10 → lycoris_lora-3.0.1.dev11}/lycoris/functional/boft.py +0 -0
- {lycoris_lora-3.0.1.dev10 → lycoris_lora-3.0.1.dev11}/lycoris/functional/diag_oft.py +0 -0
- {lycoris_lora-3.0.1.dev10 → lycoris_lora-3.0.1.dev11}/lycoris/functional/general.py +0 -0
- {lycoris_lora-3.0.1.dev10 → lycoris_lora-3.0.1.dev11}/lycoris/functional/locon.py +0 -0
- {lycoris_lora-3.0.1.dev10 → lycoris_lora-3.0.1.dev11}/lycoris/functional/loha.py +0 -0
- {lycoris_lora-3.0.1.dev10 → lycoris_lora-3.0.1.dev11}/lycoris/functional/lokr.py +0 -0
- {lycoris_lora-3.0.1.dev10 → lycoris_lora-3.0.1.dev11}/lycoris/kohya.py +0 -0
- {lycoris_lora-3.0.1.dev10 → lycoris_lora-3.0.1.dev11}/lycoris/logging.py +0 -0
- {lycoris_lora-3.0.1.dev10 → lycoris_lora-3.0.1.dev11}/lycoris/modules/__init__.py +0 -0
- {lycoris_lora-3.0.1.dev10 → lycoris_lora-3.0.1.dev11}/lycoris/modules/base.py +0 -0
- {lycoris_lora-3.0.1.dev10 → lycoris_lora-3.0.1.dev11}/lycoris/modules/boft.py +0 -0
- {lycoris_lora-3.0.1.dev10 → lycoris_lora-3.0.1.dev11}/lycoris/modules/diag_oft.py +0 -0
- {lycoris_lora-3.0.1.dev10 → lycoris_lora-3.0.1.dev11}/lycoris/modules/dylora.py +0 -0
- {lycoris_lora-3.0.1.dev10 → lycoris_lora-3.0.1.dev11}/lycoris/modules/full.py +0 -0
- {lycoris_lora-3.0.1.dev10 → lycoris_lora-3.0.1.dev11}/lycoris/modules/glora.py +0 -0
- {lycoris_lora-3.0.1.dev10 → lycoris_lora-3.0.1.dev11}/lycoris/modules/ia3.py +0 -0
- {lycoris_lora-3.0.1.dev10 → lycoris_lora-3.0.1.dev11}/lycoris/modules/locon.py +0 -0
- {lycoris_lora-3.0.1.dev10 → lycoris_lora-3.0.1.dev11}/lycoris/modules/loha.py +0 -0
- {lycoris_lora-3.0.1.dev10 → lycoris_lora-3.0.1.dev11}/lycoris/modules/norms.py +0 -0
- {lycoris_lora-3.0.1.dev10 → lycoris_lora-3.0.1.dev11}/lycoris/utils/__init__.py +0 -0
- {lycoris_lora-3.0.1.dev10 → lycoris_lora-3.0.1.dev11}/lycoris/utils/bnb.py +0 -0
- {lycoris_lora-3.0.1.dev10 → lycoris_lora-3.0.1.dev11}/lycoris/utils/general.py +0 -0
- {lycoris_lora-3.0.1.dev10 → lycoris_lora-3.0.1.dev11}/lycoris/utils/logger.py +0 -0
- {lycoris_lora-3.0.1.dev10 → lycoris_lora-3.0.1.dev11}/lycoris/utils/preset.py +0 -0
- {lycoris_lora-3.0.1.dev10 → lycoris_lora-3.0.1.dev11}/lycoris/utils/xformers_utils.py +0 -0
- {lycoris_lora-3.0.1.dev10 → lycoris_lora-3.0.1.dev11}/lycoris/wrapper.py +0 -0
- {lycoris_lora-3.0.1.dev10 → lycoris_lora-3.0.1.dev11}/lycoris_lora.egg-info/SOURCES.txt +0 -0
- {lycoris_lora-3.0.1.dev10 → lycoris_lora-3.0.1.dev11}/lycoris_lora.egg-info/dependency_links.txt +0 -0
- {lycoris_lora-3.0.1.dev10 → lycoris_lora-3.0.1.dev11}/lycoris_lora.egg-info/not-zip-safe +0 -0
- {lycoris_lora-3.0.1.dev10 → lycoris_lora-3.0.1.dev11}/lycoris_lora.egg-info/requires.txt +0 -0
- {lycoris_lora-3.0.1.dev10 → lycoris_lora-3.0.1.dev11}/lycoris_lora.egg-info/top_level.txt +0 -0
- {lycoris_lora-3.0.1.dev10 → lycoris_lora-3.0.1.dev11}/setup.cfg +0 -0
- {lycoris_lora-3.0.1.dev10 → lycoris_lora-3.0.1.dev11}/test/__init__.py +0 -0
- {lycoris_lora-3.0.1.dev10 → lycoris_lora-3.0.1.dev11}/test/functional.py +0 -0
- {lycoris_lora-3.0.1.dev10 → lycoris_lora-3.0.1.dev11}/test/kohya.py +0 -0
- {lycoris_lora-3.0.1.dev10 → lycoris_lora-3.0.1.dev11}/test/module.py +0 -0
- {lycoris_lora-3.0.1.dev10 → lycoris_lora-3.0.1.dev11}/test/wrapper.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: lycoris_lora
|
|
3
|
-
Version: 3.0.1.
|
|
3
|
+
Version: 3.0.1.dev11
|
|
4
4
|
Summary: Lora beYond Conventional methods, Other Rank adaptation Implementations for Stable diffusion
|
|
5
5
|
Home-page: https://github.com/KohakuBlueleaf/LyCORIS
|
|
6
6
|
Author: Shih-Ying Yeh(KohakuBlueLeaf), Yu-Guan Hsieh, Zhidong Gao
|
|
@@ -281,7 +281,19 @@ class LokrModule(LycorisBaseModule):
|
|
|
281
281
|
):
|
|
282
282
|
factor = -1
|
|
283
283
|
else:
|
|
284
|
-
|
|
284
|
+
w1_shape = w1.shape if w1 is not None else (w1a.size(0), w1b.size(1))
|
|
285
|
+
w2_shape = w2.shape if w2 is not None else (w2a.size(0), w2b.size(1))
|
|
286
|
+
shape_group_1 = (w1_shape[0], w2_shape[0])
|
|
287
|
+
shape_group_2 = (w1_shape[1], w2_shape[1])
|
|
288
|
+
w_shape = (w1_shape[0] * w2_shape[0], w1_shape[1] * w2_shape[1])
|
|
289
|
+
factor1 = max(w1.shape) if w1 is not None else max(w1a.size(0), w1b.size(1))
|
|
290
|
+
factor2 = max(w2.shape) if w2 is not None else max(w2a.size(0), w2b.size(1))
|
|
291
|
+
if w_shape[0] % factor1 == 0 and w_shape[1] % factor1 == 0 and factor1 in shape_group_1 and factor1 in shape_group_2:
|
|
292
|
+
factor = factor1
|
|
293
|
+
elif w_shape[0] % factor2 == 0 and w_shape[1] % factor2 == 0 and factor2 in shape_group_1 and factor2 in shape_group_2:
|
|
294
|
+
factor = factor2
|
|
295
|
+
else:
|
|
296
|
+
factor = max(factor1, factor2)
|
|
285
297
|
|
|
286
298
|
module = cls(
|
|
287
299
|
lora_name,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: lycoris_lora
|
|
3
|
-
Version: 3.0.1.
|
|
3
|
+
Version: 3.0.1.dev11
|
|
4
4
|
Summary: Lora beYond Conventional methods, Other Rank adaptation Implementations for Stable diffusion
|
|
5
5
|
Home-page: https://github.com/KohakuBlueleaf/LyCORIS
|
|
6
6
|
Author: Shih-Ying Yeh(KohakuBlueLeaf), Yu-Guan Hsieh, Zhidong Gao
|
|
@@ -4,7 +4,7 @@ from setuptools import setup, find_packages
|
|
|
4
4
|
setup(
|
|
5
5
|
name="lycoris_lora",
|
|
6
6
|
packages=find_packages(),
|
|
7
|
-
version="3.0.1.
|
|
7
|
+
version="3.0.1.dev11",
|
|
8
8
|
url="https://github.com/KohakuBlueleaf/LyCORIS",
|
|
9
9
|
description="Lora beYond Conventional methods, Other Rank adaptation Implementations for Stable diffusion",
|
|
10
10
|
author="Shih-Ying Yeh(KohakuBlueLeaf), Yu-Guan Hsieh, Zhidong Gao",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{lycoris_lora-3.0.1.dev10 → lycoris_lora-3.0.1.dev11}/lycoris_lora.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|