Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
S
Stable Diffusion Webui
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
novelai-storage
Stable Diffusion Webui
Commits
b9abdb50
Commit
b9abdb50
authored
May 14, 2023
by
AUTOMATIC
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add a possible fix for 'LatentDiffusion' object has no attribute 'lora_layer_mapping'
parent
d7e9ac2a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
0 deletions
+5
-0
CHANGELOG.md
CHANGELOG.md
+1
-0
extensions-builtin/Lora/lora.py
extensions-builtin/Lora/lora.py
+4
-0
No files found.
CHANGELOG.md
View file @
b9abdb50
...
@@ -9,6 +9,7 @@
...
@@ -9,6 +9,7 @@
*
allow bf16 in safe unpickler (resolves problems with loading some loras)
*
allow bf16 in safe unpickler (resolves problems with loading some loras)
*
allow web UI to be ran fully offline
*
allow web UI to be ran fully offline
*
fix localizations not working
*
fix localizations not working
*
fix error for loras: 'LatentDiffusion' object has no attribute 'lora_layer_mapping'
## 1.2.0
## 1.2.0
...
...
extensions-builtin/Lora/lora.py
View file @
b9abdb50
...
@@ -133,6 +133,10 @@ def load_lora(name, filename):
...
@@ -133,6 +133,10 @@ def load_lora(name, filename):
sd
=
sd_models
.
read_state_dict
(
filename
)
sd
=
sd_models
.
read_state_dict
(
filename
)
# this should not be needed but is here as an emergency fix for an unknown error people are experiencing in 1.2.0
if
not
hasattr
(
shared
.
sd_model
,
'lora_layer_mapping'
):
assign_lora_names_to_compvis_modules
(
shared
.
sd_model
)
keys_failed_to_match
=
{}
keys_failed_to_match
=
{}
is_sd2
=
'model_transformer_resblocks'
in
shared
.
sd_model
.
lora_layer_mapping
is_sd2
=
'model_transformer_resblocks'
in
shared
.
sd_model
.
lora_layer_mapping
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment