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
4bc39d23
Commit
4bc39d23
authored
Apr 23, 2024
by
w-e-w
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Show LoRA if model is None
parent
2b717bb1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
11 deletions
+12
-11
extensions-builtin/Lora/ui_extra_networks_lora.py
extensions-builtin/Lora/ui_extra_networks_lora.py
+12
-11
No files found.
extensions-builtin/Lora/ui_extra_networks_lora.py
View file @
4bc39d23
...
...
@@ -60,18 +60,19 @@ class ExtraNetworksPageLora(ui_extra_networks.ExtraNetworksPage):
else
:
sd_version
=
lora_on_disk
.
sd_version
if
shared
.
opts
.
lora_show_all
or
not
enable_filter
:
pass
elif
sd_version
==
network
.
SdVersion
.
Unknown
:
model_version
=
network
.
SdVersion
.
SDXL
if
shared
.
sd_model
.
is_sdxl
else
network
.
SdVersion
.
SD2
if
shared
.
sd_model
.
is_sd2
else
network
.
SdVersion
.
SD1
if
model_version
.
name
in
shared
.
opts
.
lora_hide_unknown_for_versions
:
if
shared
.
sd_model
is
not
None
:
# still show LoRA in case an error occurs during initial model loading
if
shared
.
opts
.
lora_show_all
or
not
enable_filter
:
pass
elif
sd_version
==
network
.
SdVersion
.
Unknown
:
model_version
=
network
.
SdVersion
.
SDXL
if
shared
.
sd_model
.
is_sdxl
else
network
.
SdVersion
.
SD2
if
shared
.
sd_model
.
is_sd2
else
network
.
SdVersion
.
SD1
if
model_version
.
name
in
shared
.
opts
.
lora_hide_unknown_for_versions
:
return
None
elif
shared
.
sd_model
.
is_sdxl
and
sd_version
!=
network
.
SdVersion
.
SDXL
:
return
None
elif
shared
.
sd_model
.
is_sd2
and
sd_version
!=
network
.
SdVersion
.
SD2
:
return
None
elif
shared
.
sd_model
.
is_sd1
and
sd_version
!=
network
.
SdVersion
.
SD1
:
return
None
elif
shared
.
sd_model
.
is_sdxl
and
sd_version
!=
network
.
SdVersion
.
SDXL
:
return
None
elif
shared
.
sd_model
.
is_sd2
and
sd_version
!=
network
.
SdVersion
.
SD2
:
return
None
elif
shared
.
sd_model
.
is_sd1
and
sd_version
!=
network
.
SdVersion
.
SD1
:
return
None
return
item
...
...
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