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
8f1b3153
Commit
8f1b3153
authored
Sep 30, 2022
by
AUTOMATIC
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bugs in the PR
parent
25414bcd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
sd_models.py
modules/sd_models.py
+1
-1
upscaler.py
modules/upscaler.py
+1
-1
No files found.
modules/sd_models.py
View file @
8f1b3153
...
...
@@ -96,7 +96,7 @@ def list_models():
print
(
f
"Checkpoint in --ckpt argument not found (Possible it was moved to {model_path}: {cmd_ckpt}"
,
file
=
sys
.
stderr
)
for
filename
in
model_list
:
h
=
model_hash
(
filename
)
title
=
modeltitle
(
filename
,
h
)
title
,
model_name
=
modeltitle
(
filename
,
h
)
checkpoints_list
[
title
]
=
CheckpointInfo
(
filename
,
title
,
h
,
model_name
)
def
get_closet_checkpoint_match
(
searchString
):
...
...
modules/upscaler.py
View file @
8f1b3153
...
...
@@ -60,7 +60,7 @@ class Upscaler:
break
img
=
self
.
do_upscale
(
img
,
selected_model
)
if
img
.
width
!=
dest_w
or
img
.
height
!=
dest_h
:
img
=
img
.
resize
(
dest_w
,
dest_h
,
resample
=
LANCZOS
)
img
=
img
.
resize
(
(
dest_w
,
dest_h
)
,
resample
=
LANCZOS
)
return
img
...
...
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