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
fb274229
Commit
fb274229
authored
Feb 10, 2023
by
space-nuko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug fix
parent
06cb0dc9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
modules/models/diffusion/uni_pc/sampler.py
modules/models/diffusion/uni_pc/sampler.py
+1
-1
modules/processing.py
modules/processing.py
+3
-1
No files found.
modules/models/diffusion/uni_pc/sampler.py
View file @
fb274229
...
@@ -70,7 +70,7 @@ class UniPCSampler(object):
...
@@ -70,7 +70,7 @@ class UniPCSampler(object):
# sampling
# sampling
C
,
H
,
W
=
shape
C
,
H
,
W
=
shape
size
=
(
batch_size
,
C
,
H
,
W
)
size
=
(
batch_size
,
C
,
H
,
W
)
print
(
f
'Data shape for UniPC sampling is {size}
, eta {eta}
'
)
print
(
f
'Data shape for UniPC sampling is {size}'
)
device
=
self
.
model
.
betas
.
device
device
=
self
.
model
.
betas
.
device
if
x_T
is
None
:
if
x_T
is
None
:
...
...
modules/processing.py
View file @
fb274229
...
@@ -884,7 +884,9 @@ class StableDiffusionProcessingTxt2Img(StableDiffusionProcessing):
...
@@ -884,7 +884,9 @@ class StableDiffusionProcessingTxt2Img(StableDiffusionProcessing):
shared
.
state
.
nextjob
()
shared
.
state
.
nextjob
()
img2img_sampler_name
=
'DDIM'
# PLMS/UniPC does not support img2img so we just silently switch ot DDIM
img2img_sampler_name
=
self
.
sampler_name
if
self
.
sampler_name
in
[
'PLMS'
,
'UniPC'
]:
# PLMS/UniPC do not support img2img so we just silently switch to DDIM
img2img_sampler_name
=
'DDIM'
self
.
sampler
=
sd_samplers
.
create_sampler
(
img2img_sampler_name
,
self
.
sd_model
)
self
.
sampler
=
sd_samplers
.
create_sampler
(
img2img_sampler_name
,
self
.
sd_model
)
samples
=
samples
[:,
:,
self
.
truncate_y
//
2
:
samples
.
shape
[
2
]
-
(
self
.
truncate_y
+
1
)
//
2
,
self
.
truncate_x
//
2
:
samples
.
shape
[
3
]
-
(
self
.
truncate_x
+
1
)
//
2
]
samples
=
samples
[:,
:,
self
.
truncate_y
//
2
:
samples
.
shape
[
2
]
-
(
self
.
truncate_y
+
1
)
//
2
,
self
.
truncate_x
//
2
:
samples
.
shape
[
3
]
-
(
self
.
truncate_x
+
1
)
//
2
]
...
...
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