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
5e12c23a
Commit
5e12c23a
authored
Sep 07, 2022
by
AUTOMATIC
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
clarification for settings; another comment about copied files
parent
6a9b33c8
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
1 deletion
+5
-1
codeformer_arch.py
modules/codeformer/codeformer_arch.py
+2
-0
vqgan_arch.py
modules/codeformer/vqgan_arch.py
+2
-0
shared.py
modules/shared.py
+1
-1
No files found.
modules/codeformer/codeformer_arch.py
View file @
5e12c23a
# this file is copied from CodeFormer repository. Please see comment in modules/codeformer_model.py
import
math
import
numpy
as
np
import
torch
...
...
modules/codeformer/vqgan_arch.py
View file @
5e12c23a
# this file is copied from CodeFormer repository. Please see comment in modules/codeformer_model.py
'''
VQGAN code, adapted from the original created by the Unleashing Transformers authors:
https://github.com/samb-t/unleashing-transformers/blob/master/models/vqgan.py
...
...
modules/shared.py
View file @
5e12c23a
...
...
@@ -121,7 +121,7 @@ class Options:
"show_progressbar"
:
OptionInfo
(
True
,
"Show progressbar"
),
"show_progress_every_n_steps"
:
OptionInfo
(
0
,
"Show show image creation progress every N sampling steps. Set 0 to disable."
,
gr
.
Slider
,
{
"minimum"
:
0
,
"maximum"
:
32
,
"step"
:
1
}),
"face_restoration_model"
:
OptionInfo
(
None
,
"Face restoration model"
,
gr
.
Radio
,
lambda
:
{
"choices"
:
[
x
.
name
()
for
x
in
face_restorers
]}),
"code_former_weight"
:
OptionInfo
(
0.5
,
"CodeFormer weight parameter"
,
gr
.
Slider
,
{
"minimum"
:
0
,
"maximum"
:
1
,
"step"
:
0.01
}),
"code_former_weight"
:
OptionInfo
(
0.5
,
"CodeFormer weight parameter
; 0 = fix face completely; 1 = do nothing
"
,
gr
.
Slider
,
{
"minimum"
:
0
,
"maximum"
:
1
,
"step"
:
0.01
}),
}
def
__init__
(
self
):
...
...
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