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
5dee0fa1
Commit
5dee0fa1
authored
Jul 14, 2023
by
AUTOMATIC1111
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add a message about unsupported samplers
parent
ac2d47ff
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
modules/sd_samplers.py
modules/sd_samplers.py
+3
-0
modules/sd_samplers_compvis.py
modules/sd_samplers_compvis.py
+3
-3
No files found.
modules/sd_samplers.py
View file @
5dee0fa1
...
...
@@ -28,6 +28,9 @@ def create_sampler(name, model):
assert
config
is
not
None
,
f
'bad sampler name: {name}'
if
model
.
is_sdxl
and
config
.
options
.
get
(
"no_sdxl"
,
False
):
raise
Exception
(
f
"Sampler {config.name} is not supported for SDXL"
)
sampler
=
config
.
constructor
(
model
)
sampler
.
config
=
config
...
...
modules/sd_samplers_compvis.py
View file @
5dee0fa1
...
...
@@ -11,9 +11,9 @@ import modules.models.diffusion.uni_pc
samplers_data_compvis
=
[
sd_samplers_common
.
SamplerData
(
'DDIM'
,
lambda
model
:
VanillaStableDiffusionSampler
(
ldm
.
models
.
diffusion
.
ddim
.
DDIMSampler
,
model
),
[],
{
"default_eta_is_0"
:
True
,
"uses_ensd"
:
True
}),
sd_samplers_common
.
SamplerData
(
'PLMS'
,
lambda
model
:
VanillaStableDiffusionSampler
(
ldm
.
models
.
diffusion
.
plms
.
PLMSSampler
,
model
),
[],
{}),
sd_samplers_common
.
SamplerData
(
'UniPC'
,
lambda
model
:
VanillaStableDiffusionSampler
(
modules
.
models
.
diffusion
.
uni_pc
.
UniPCSampler
,
model
),
[],
{}),
sd_samplers_common
.
SamplerData
(
'DDIM'
,
lambda
model
:
VanillaStableDiffusionSampler
(
ldm
.
models
.
diffusion
.
ddim
.
DDIMSampler
,
model
),
[],
{
"default_eta_is_0"
:
True
,
"uses_ensd"
:
True
,
"no_sdxl"
:
True
}),
sd_samplers_common
.
SamplerData
(
'PLMS'
,
lambda
model
:
VanillaStableDiffusionSampler
(
ldm
.
models
.
diffusion
.
plms
.
PLMSSampler
,
model
),
[],
{
"no_sdxl"
:
True
}),
sd_samplers_common
.
SamplerData
(
'UniPC'
,
lambda
model
:
VanillaStableDiffusionSampler
(
modules
.
models
.
diffusion
.
uni_pc
.
UniPCSampler
,
model
),
[],
{
"no_sdxl"
:
True
}),
]
...
...
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