lycoris-lora 3.0.0.dev5__tar.gz → 3.0.0.dev7__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.
Files changed (38) hide show
  1. {lycoris_lora-3.0.0.dev5/lycoris_lora.egg-info → lycoris_lora-3.0.0.dev7}/PKG-INFO +1 -1
  2. {lycoris_lora-3.0.0.dev5 → lycoris_lora-3.0.0.dev7}/lycoris/kohya.py +2 -2
  3. {lycoris_lora-3.0.0.dev5 → lycoris_lora-3.0.0.dev7}/lycoris/modules/locon.py +3 -3
  4. {lycoris_lora-3.0.0.dev5 → lycoris_lora-3.0.0.dev7/lycoris_lora.egg-info}/PKG-INFO +1 -1
  5. {lycoris_lora-3.0.0.dev5 → lycoris_lora-3.0.0.dev7}/setup.py +1 -1
  6. {lycoris_lora-3.0.0.dev5 → lycoris_lora-3.0.0.dev7}/LICENSE.md +0 -0
  7. {lycoris_lora-3.0.0.dev5 → lycoris_lora-3.0.0.dev7}/README.md +0 -0
  8. {lycoris_lora-3.0.0.dev5 → lycoris_lora-3.0.0.dev7}/lycoris/__init__.py +0 -0
  9. {lycoris_lora-3.0.0.dev5 → lycoris_lora-3.0.0.dev7}/lycoris/config.py +0 -0
  10. {lycoris_lora-3.0.0.dev5 → lycoris_lora-3.0.0.dev7}/lycoris/functional/__init__.py +0 -0
  11. {lycoris_lora-3.0.0.dev5 → lycoris_lora-3.0.0.dev7}/lycoris/functional/general.py +0 -0
  12. {lycoris_lora-3.0.0.dev5 → lycoris_lora-3.0.0.dev7}/lycoris/functional/locon.py +0 -0
  13. {lycoris_lora-3.0.0.dev5 → lycoris_lora-3.0.0.dev7}/lycoris/functional/loha.py +0 -0
  14. {lycoris_lora-3.0.0.dev5 → lycoris_lora-3.0.0.dev7}/lycoris/logging.py +0 -0
  15. {lycoris_lora-3.0.0.dev5 → lycoris_lora-3.0.0.dev7}/lycoris/modules/__init__.py +0 -0
  16. {lycoris_lora-3.0.0.dev5 → lycoris_lora-3.0.0.dev7}/lycoris/modules/base.py +0 -0
  17. {lycoris_lora-3.0.0.dev5 → lycoris_lora-3.0.0.dev7}/lycoris/modules/boft.py +0 -0
  18. {lycoris_lora-3.0.0.dev5 → lycoris_lora-3.0.0.dev7}/lycoris/modules/diag_oft.py +0 -0
  19. {lycoris_lora-3.0.0.dev5 → lycoris_lora-3.0.0.dev7}/lycoris/modules/dylora.py +0 -0
  20. {lycoris_lora-3.0.0.dev5 → lycoris_lora-3.0.0.dev7}/lycoris/modules/full.py +0 -0
  21. {lycoris_lora-3.0.0.dev5 → lycoris_lora-3.0.0.dev7}/lycoris/modules/glora.py +0 -0
  22. {lycoris_lora-3.0.0.dev5 → lycoris_lora-3.0.0.dev7}/lycoris/modules/ia3.py +0 -0
  23. {lycoris_lora-3.0.0.dev5 → lycoris_lora-3.0.0.dev7}/lycoris/modules/loha.py +0 -0
  24. {lycoris_lora-3.0.0.dev5 → lycoris_lora-3.0.0.dev7}/lycoris/modules/lokr.py +0 -0
  25. {lycoris_lora-3.0.0.dev5 → lycoris_lora-3.0.0.dev7}/lycoris/modules/norms.py +0 -0
  26. {lycoris_lora-3.0.0.dev5 → lycoris_lora-3.0.0.dev7}/lycoris/utils/__init__.py +0 -0
  27. {lycoris_lora-3.0.0.dev5 → lycoris_lora-3.0.0.dev7}/lycoris/utils/bnb.py +0 -0
  28. {lycoris_lora-3.0.0.dev5 → lycoris_lora-3.0.0.dev7}/lycoris/utils/general.py +0 -0
  29. {lycoris_lora-3.0.0.dev5 → lycoris_lora-3.0.0.dev7}/lycoris/utils/logger.py +0 -0
  30. {lycoris_lora-3.0.0.dev5 → lycoris_lora-3.0.0.dev7}/lycoris/utils/preset.py +0 -0
  31. {lycoris_lora-3.0.0.dev5 → lycoris_lora-3.0.0.dev7}/lycoris/utils/xformers_utils.py +0 -0
  32. {lycoris_lora-3.0.0.dev5 → lycoris_lora-3.0.0.dev7}/lycoris/wrapper.py +0 -0
  33. {lycoris_lora-3.0.0.dev5 → lycoris_lora-3.0.0.dev7}/lycoris_lora.egg-info/SOURCES.txt +0 -0
  34. {lycoris_lora-3.0.0.dev5 → lycoris_lora-3.0.0.dev7}/lycoris_lora.egg-info/dependency_links.txt +0 -0
  35. {lycoris_lora-3.0.0.dev5 → lycoris_lora-3.0.0.dev7}/lycoris_lora.egg-info/not-zip-safe +0 -0
  36. {lycoris_lora-3.0.0.dev5 → lycoris_lora-3.0.0.dev7}/lycoris_lora.egg-info/requires.txt +0 -0
  37. {lycoris_lora-3.0.0.dev5 → lycoris_lora-3.0.0.dev7}/lycoris_lora.egg-info/top_level.txt +0 -0
  38. {lycoris_lora-3.0.0.dev5 → lycoris_lora-3.0.0.dev7}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: lycoris_lora
3
- Version: 3.0.0.dev5
3
+ Version: 3.0.0.dev7
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
@@ -612,7 +612,7 @@ class LycorisNetworkKohya(LycorisNetwork):
612
612
  if metadata is None:
613
613
  metadata = {}
614
614
  model_hash, legacy_hash = precalculate_safetensors_hashes(
615
- state_dict, metadata
615
+ state_dict
616
616
  )
617
617
  metadata["sshs_model_hash"] = model_hash
618
618
  metadata["sshs_legacy_hash"] = legacy_hash
@@ -846,7 +846,7 @@ class IA3Network(torch.nn.Module):
846
846
  if metadata is None:
847
847
  metadata = {}
848
848
  model_hash, legacy_hash = precalculate_safetensors_hashes(
849
- state_dict, metadata
849
+ state_dict
850
850
  )
851
851
  metadata["sshs_model_hash"] = model_hash
852
852
  metadata["sshs_legacy_hash"] = legacy_hash
@@ -154,8 +154,8 @@ class LoConModule(LycorisBaseModule):
154
154
  )
155
155
 
156
156
  def make_weight(self, device=None):
157
- wa = self.lora_up.weight
158
- wb = self.lora_down.weight
157
+ wa = self.lora_up.weight.to(device)
158
+ wb = self.lora_down.weight.to(device)
159
159
  if self.tucker:
160
160
  t = self.lora_mid.weight
161
161
  wa = wa.view(wa.size(0), -1).transpose(0, 1)
@@ -174,7 +174,7 @@ class LoConModule(LycorisBaseModule):
174
174
  drop /= drop.mean()
175
175
  weight *= drop
176
176
 
177
- return weight * self.scalar
177
+ return weight * self.scalar.to(device)
178
178
 
179
179
  def get_diff_weight(self, multiplier=1, shape=None, device=None):
180
180
  scale = self.scale * multiplier
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: lycoris_lora
3
- Version: 3.0.0.dev5
3
+ Version: 3.0.0.dev7
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.0.dev5",
7
+ version="3.0.0.dev7",
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",