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
9a54077d
Commit
9a54077d
authored
Sep 30, 2022
by
AUTOMATIC
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
repair broken highres fix #1109
parent
828d6cce
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
modules/images.py
modules/images.py
+1
-1
modules/processing.py
modules/processing.py
+1
-2
No files found.
modules/images.py
View file @
9a54077d
...
...
@@ -218,7 +218,7 @@ def resize_image(resize_mode, im, width, height):
upscaler
=
upscalers
[
0
]
scale
=
max
(
w
/
im
.
width
,
h
/
im
.
height
)
upscaled
=
upscaler
.
scaler
.
upscale
(
im
,
scale
)
upscaled
=
upscaler
.
scaler
.
upscale
(
im
,
scale
,
upscaler
.
data_path
)
if
upscaled
.
width
!=
w
or
upscaled
.
height
!=
h
:
upscaled
=
im
.
resize
((
w
,
h
),
resample
=
LANCZOS
)
...
...
modules/processing.py
View file @
9a54077d
...
...
@@ -492,8 +492,7 @@ class StableDiffusionProcessingTxt2Img(StableDiffusionProcessing):
x_sample
=
255.
*
np
.
moveaxis
(
x_sample
.
cpu
()
.
numpy
(),
0
,
2
)
x_sample
=
x_sample
.
astype
(
np
.
uint8
)
image
=
Image
.
fromarray
(
x_sample
)
upscaler
=
[
x
for
x
in
shared
.
sd_upscalers
if
x
.
name
==
opts
.
upscaler_for_img2img
][
0
]
image
=
upscaler
.
upscale
(
image
,
self
.
width
,
self
.
height
)
image
=
images
.
resize_image
(
0
,
image
,
self
.
width
,
self
.
height
)
image
=
np
.
array
(
image
)
.
astype
(
np
.
float32
)
/
255.0
image
=
np
.
moveaxis
(
image
,
2
,
0
)
batch_images
.
append
(
image
)
...
...
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