Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
S
stable-diffusion-webui
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
stable-diffusion-webui
Commits
4f434c8a
Commit
4f434c8a
authored
Sep 21, 2022
by
d8ahazard
Committed by
AUTOMATIC1111
Sep 22, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix/Revert opts name from GAN to ESRGAN
parent
9a93a82b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
esrgan_model.py
modules/esrgan_model.py
+2
-2
realesrgan_model.py
modules/realesrgan_model.py
+2
-2
No files found.
modules/esrgan_model.py
View file @
4f434c8a
...
@@ -92,10 +92,10 @@ def upscale_without_tiling(model, img):
...
@@ -92,10 +92,10 @@ def upscale_without_tiling(model, img):
def
esrgan_upscale
(
model
,
img
):
def
esrgan_upscale
(
model
,
img
):
if
opts
.
GAN_tile
==
0
:
if
opts
.
ESR
GAN_tile
==
0
:
return
upscale_without_tiling
(
model
,
img
)
return
upscale_without_tiling
(
model
,
img
)
grid
=
modules
.
images
.
split_grid
(
img
,
opts
.
GAN_tile
,
opts
.
GAN_tile
,
opts
.
GAN_tile_overlap
)
grid
=
modules
.
images
.
split_grid
(
img
,
opts
.
ESRGAN_tile
,
opts
.
ESRGAN_tile
,
opts
.
ESR
GAN_tile_overlap
)
newtiles
=
[]
newtiles
=
[]
scale_factor
=
1
scale_factor
=
1
...
...
modules/realesrgan_model.py
View file @
4f434c8a
...
@@ -96,8 +96,8 @@ def upscale_with_realesrgan(image, RealESRGAN_upscaling, RealESRGAN_model_index)
...
@@ -96,8 +96,8 @@ def upscale_with_realesrgan(image, RealESRGAN_upscaling, RealESRGAN_model_index)
model_path
=
info
.
location
,
model_path
=
info
.
location
,
model
=
model
,
model
=
model
,
half
=
not
cmd_opts
.
no_half
,
half
=
not
cmd_opts
.
no_half
,
tile
=
opts
.
GAN_tile
,
tile
=
opts
.
ESR
GAN_tile
,
tile_pad
=
opts
.
GAN_tile_overlap
,
tile_pad
=
opts
.
ESR
GAN_tile_overlap
,
)
)
upsampled
=
upsampler
.
enhance
(
np
.
array
(
image
),
outscale
=
RealESRGAN_upscaling
)[
0
]
upsampled
=
upsampler
.
enhance
(
np
.
array
(
image
),
outscale
=
RealESRGAN_upscaling
)[
0
]
...
...
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