Kohaku-Blueleaf
90441294db
Add rescale mechanism
...
LyCORIS will support save oft_blocks instead of oft_diag in the near future (for both OFT and BOFT)
But this means we need to store the rescale if user enable it.
2024-02-12 14:25:09 +08:00
v0xie
eb6f2df826
Revert "fix: add butterfly_factor fn"
...
This reverts commit 81c16c965e
.
2024-02-08 22:00:15 -08:00
v0xie
613b0d9548
doc: add boft comment
2024-02-08 21:58:59 -08:00
v0xie
325eaeb584
fix: get boft params from weight shape
2024-02-08 11:55:05 -08:00
v0xie
2f1073dc6e
style: fix lint
2024-02-07 04:55:11 -08:00
v0xie
81c16c965e
fix: add butterfly_factor fn
2024-02-07 04:54:14 -08:00
v0xie
a4668a16b6
fix: calculate butterfly factor
2024-02-07 04:51:22 -08:00
v0xie
9588721197
feat: support LyCORIS BOFT
2024-02-07 04:49:17 -08:00
AUTOMATIC1111
358e9e2847
Merge pull request #14726 from v0xie/fix-oft-device
...
Fix kohya-ss OFT network wrong device for eye and constraint
2024-01-23 22:34:24 +03:00
AUTOMATIC1111
569dc1919c
Merge pull request #14588 from Sj-Si/feature/extra-networks-tree-view
...
Feature: Extra Networks Tree View
2024-01-22 22:24:06 +03:00
v0xie
fd383140cf
fix: wrong devices for eye and constraint
2024-01-22 02:52:34 -08:00
chi2nagisa
e280eb4055
fix using wrong model caused by alias
2024-01-16 03:45:19 +08:00
Sj-Si
036500223d
Merge changes from dev
2024-01-11 16:37:35 -05:00
Sj-Si
0726a6e12e
Finish base layout. Fix bugs. Need to test for stability and clean up.
2024-01-11 15:06:57 -05:00
AUTOMATIC1111
8b6848c6db
Merge pull request #14546 from AUTOMATIC1111/fix-oft-dtype
...
Fix dtype casting in OFT module
2024-01-06 10:50:38 +03:00
Kohaku-Blueleaf
44744d6005
linting
2024-01-05 16:38:05 +08:00
Kohaku-Blueleaf
18ca987c92
Add general forward method for all modules.
2024-01-05 16:32:19 +08:00
Kohaku-Blueleaf
f8f38c7c28
Fix dtype casting for OFT module
2024-01-05 16:31:48 +08:00
Learwin
d4945f4422
Removed weight slider for negative prompts
2023-12-31 13:22:30 +01:00
Learwin
a2f23f9d22
Code Style fixes
2023-12-30 22:16:51 +01:00
Learwin
bc5ae74c7d
Added negative prompts to extra networks lora
2023-12-30 21:52:27 +01:00
w-e-w
59d060fd5e
More lora not found warning
2023-12-30 17:11:03 +09:00
Kohaku-Blueleaf
0fb34b57b8
Merge branch 'dev' into test-fp8
2023-12-14 16:54:45 +08:00
AUTOMATIC1111
2be85f8fe0
Merge pull request #14237 from ReneKroon/dev
...
#13354 : solve lora loading issue
2023-12-14 10:15:36 +03:00
AUTOMATIC1111
6ef0ff39f2
Merge pull request #14300 from AUTOMATIC1111/oft_fixes
...
Fix wrong implementation in network_oft
2023-12-14 10:14:19 +03:00
AUTOMATIC1111
778a30a95e
Merge pull request #14237 from ReneKroon/dev
...
#13354 : solve lora loading issue
2023-12-14 10:08:03 +03:00
Kohaku-Blueleaf
3772a82a70
better naming and correct order for device.
2023-12-14 01:47:13 +08:00
Kohaku-Blueleaf
8fc67f3851
remove debug print
2023-12-14 01:44:49 +08:00
Kohaku-Blueleaf
265bc26c21
Use self.scale instead of custom finalize
2023-12-14 01:43:24 +08:00
Kohaku-Blueleaf
735c9e8059
Fix network_oft
2023-12-14 01:38:32 +08:00
Rene Kroon
16bdcce92d
#13354 : solve lora loading issue
2023-12-08 21:20:55 +01:00
Kohaku-Blueleaf
370a77f8e7
Option for using fp16 weight when apply lora
2023-11-21 19:59:34 +08:00
Kohaku-Blueleaf
b60e1088db
Merge branch 'dev' into test-fp8
2023-11-19 15:24:57 +08:00
AUTOMATIC1111
337bc4a2fb
Merge pull request #13014 from AUTOMATIC1111/thread-safe-extranetworks-list_items
...
thread safe extra network list_items
2023-11-19 09:09:21 +03:00
v0xie
eb667e715a
feat: LyCORIS/kohya OFT network support
2023-11-15 18:28:48 -08:00
v0xie
d6d0b22e66
fix: ignore calc_scale() for COFT which has very small alpha
2023-11-15 03:08:50 -08:00
v0xie
bbf00a96af
refactor: remove unused function
2023-11-04 14:56:47 -07:00
v0xie
329c8bacce
refactor: use same updown for both kohya OFT and LyCORIS diag-oft
2023-11-04 14:54:36 -07:00
v0xie
f6c8201e56
refactor: move factorization to lyco_helpers, separate calc_updown for kohya and kb
2023-11-03 19:35:15 -07:00
v0xie
fe1967a4c4
skip multihead attn for now
2023-11-03 17:52:55 -07:00
v0xie
d727ddfccd
no idea what i'm doing, trying to support both type of OFT, kblueleaf diag_oft has MultiheadAttn which kohya's doesn't?, attempt create new module based off network_lora.py, errors about tensor dim mismatch
2023-11-02 00:13:11 -07:00
v0xie
65ccd6305f
detect diag_oft type
2023-11-02 00:11:32 -07:00
v0xie
a2fad6ee05
test implementation based on kohaku diag-oft implementation
2023-11-01 22:34:27 -07:00
v0xie
6523edb8a4
style: conform style
2023-10-22 09:31:15 -07:00
v0xie
3b8515d2c9
fix: multiplier applied twice in finalize_updown
2023-10-22 09:27:48 -07:00
v0xie
4a50c9638c
refactor: remove used OFT functions
2023-10-22 08:54:24 -07:00
v0xie
de8ee92ed8
fix: use merge_weight to cache value
2023-10-21 17:37:17 -07:00
v0xie
76f5abdbdb
style: cleanup oft
2023-10-21 16:07:45 -07:00
v0xie
fce86ab7d7
fix: support multiplier, no forward pass hook
2023-10-21 16:03:54 -07:00
v0xie
7683547728
fix: return orig weights during updown, merge weights before forward
2023-10-21 14:42:24 -07:00
v0xie
2d8c894b27
refactor: use forward hook instead of custom forward
2023-10-21 13:43:31 -07:00
v0xie
0550659ce6
style: fix ambiguous variable name
2023-10-19 13:13:02 -07:00
v0xie
d10c4db57e
style: formatting
2023-10-19 12:52:14 -07:00
v0xie
321680ccd0
refactor: fix constraint, re-use get_weight
2023-10-19 12:41:17 -07:00
Kohaku-Blueleaf
7c128bbdac
Add fp8 for sd unet
2023-10-19 13:56:17 +08:00
v0xie
eb01d7f0e0
faster by calculating R in updown and using cached R in forward
2023-10-18 04:56:53 -07:00
v0xie
853e21d98e
faster by using cached R in forward
2023-10-18 04:27:44 -07:00
v0xie
1c6efdbba7
inference working but SLOW
2023-10-18 04:16:01 -07:00
v0xie
ec718f76b5
wip incorrect OFT implementation
2023-10-17 23:35:50 -07:00
AUTOMATIC1111
4be7b620c2
Merge pull request #13568 from AUTOMATIC1111/lora_emb_bundle
...
Add lora-embedding bundle system
2023-10-14 12:18:55 +03:00
AUTOMATIC1111
a8cbe50c9f
remove duplicated code
2023-10-14 12:17:59 +03:00
v0xie
906d1179e9
support inference with LyCORIS GLora networks
2023-10-11 21:26:58 -07:00
Kohaku-Blueleaf
891ccb767c
Fix lint
2023-10-10 15:07:25 +08:00
Kohaku-Blueleaf
81e94de318
Add warning when meet emb name conflicting
...
Choose standalone embedding (in /embeddings folder) first
2023-10-10 14:44:20 +08:00
Kohaku-Blueleaf
2282eb8dd5
Remove dev debug print
2023-10-10 12:11:00 +08:00
Kohaku-Blueleaf
3d8b1af6be
Support string_to_param nested dict
...
format:
bundle_emb.EMBNAME.string_to_param.KEYNAME
2023-10-10 12:09:33 +08:00
Kohaku-Blueleaf
2aa485b5af
add lora bundle system
2023-10-09 22:52:09 +08:00
w-e-w
74b80e7211
add comment
2023-09-12 09:29:07 +09:00
w-e-w
e785402b6a
return nothing if not found
2023-09-11 19:37:55 +09:00
dongwenpu
7d4d871d46
fix: lora-bias-backup don't reset cache
2023-09-10 17:53:42 +08:00
w-e-w
f5959c1c30
thread safe extra network using list
2023-09-09 17:05:50 +09:00
w-e-w
25de9a785c
Revert "thread safe extra network list_items"
...
This reverts commit aab385d01b
.
2023-09-09 16:56:19 +09:00
w-e-w
aab385d01b
thread safe extra network list_items
2023-09-03 11:56:02 +09:00
bluelovers
d83a1ba65b
feat: display file metadata ss_output_name
...
https://github.com/AUTOMATIC1111/stable-diffusion-webui/issues/12289
2023-08-29 06:33:00 +08:00
AUTOMATIC1111
86221269f9
RAM optimization round 2
2023-08-16 09:55:35 +03:00
AUTOMATIC1111
85fcb7b8df
lint
2023-08-15 19:25:03 +03:00
AUTOMATIC1111
8b181c812f
Merge pull request #12584 from AUTOMATIC1111/full-module-with-bias
...
Add ex_bias into full module
2023-08-15 19:24:15 +03:00
AUTOMATIC1111
f01682ee01
store patches for Lora in a specialized module
2023-08-15 19:23:40 +03:00
Kohaku-Blueleaf
aa57a89a21
full module with ex_bias
2023-08-15 23:41:46 +08:00
Kohaku-Blueleaf
f70ded8936
remove "if bias exist" check
2023-08-14 13:53:40 +08:00
Kohaku-Blueleaf
e7c03ccdce
Merge branch 'dev' into extra-norm-module
2023-08-14 13:34:51 +08:00
Kohaku-Blueleaf
d9cc27cb29
Fix MHA updown err and support ex-bias for no-bias layer
2023-08-14 13:32:51 +08:00
AUTOMATIC1111
1c6ca09992
Merge pull request #12510 from catboxanon/feat/extnet/hashes
...
Support search and display of hashes for all extra network items
2023-08-13 16:46:32 +03:00
AUTOMATIC1111
db40d26d08
linter
2023-08-13 16:38:10 +03:00
AUTOMATIC1111
d8419762c1
Lora: output warnings in UI rather than fail for unfitting loras; switch to logging for error output in console
2023-08-13 15:07:37 +03:00
catboxanon
7fa5ee54b1
Support search and display of hashes for all extra network items
2023-08-13 02:32:54 -04:00
Kohaku-Blueleaf
5881dcb887
remove debug print
2023-08-13 02:36:02 +08:00
Kohaku-Blueleaf
a2b8305096
return None if no ex_bias
2023-08-13 02:35:04 +08:00
Kohaku-Blueleaf
bd4da4474b
Add extra norm module into built-in lora ext
...
refer to LyCORIS 1.9.0.dev6
add new option and module for training norm layer
(Which is reported to be good for style)
2023-08-13 02:27:39 +08:00
catboxanon
4fafc34e49
Fix to make LoRA old method setting work
2023-08-10 23:42:58 -04:00
AUTOMATIC1111
eed963e972
Lora cache in memory
2023-08-09 16:54:49 +03:00
AUTOMATIC1111
362789a379
gradio 3.39
2023-08-04 08:04:23 +03:00
AUTOMATIC1111
91a131aa6c
update lora extension to work with python 3.8
2023-07-27 09:00:47 +03:00
AUTOMATIC1111
d0bf509fa1
fix for #11963
2023-07-25 16:18:10 +03:00
catboxanon
a68f469030
Fix to parse TE in some LoRAs
2023-07-24 17:54:59 -04:00
AUTOMATIC1111
b010eea520
fix incorrect multiplier for Loras
2023-07-19 00:41:00 +03:00
AUTOMATIC1111
136c8859a4
add backwards compatibility --lyco-dir-backcompat option, use that for LyCORIS directory instead of hardcoded value
...
prevent running preload.py for disabled extensions
2023-07-18 20:11:30 +03:00
AUTOMATIC1111
4b5a63aa11
add a bit more metadata info for the lora user metadata page
2023-07-18 17:32:46 +03:00
Kohaku-Blueleaf
3d31caf4a5
use "is not None" for Tensor
2023-07-18 10:45:42 +08:00
Kohaku-Blueleaf
17e14ed2d9
Fix wrong key name in lokr module
2023-07-18 10:23:41 +08:00