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
9fd69327
Commit
9fd69327
authored
Mar 16, 2024
by
AUTOMATIC1111
Committed by
GitHub
Mar 16, 2024
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #15211 from light-and-ray/type_hintinh_in_shared.py
type hinting in shared.py
parents
f7bad19e
2d57a2df
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
12 deletions
+16
-12
modules/shared.py
modules/shared.py
+16
-12
No files found.
modules/shared.py
View file @
9fd69327
...
@@ -6,6 +6,10 @@ import gradio as gr
...
@@ -6,6 +6,10 @@ import gradio as gr
from
modules
import
shared_cmd_options
,
shared_gradio_themes
,
options
,
shared_items
,
sd_models_types
from
modules
import
shared_cmd_options
,
shared_gradio_themes
,
options
,
shared_items
,
sd_models_types
from
modules.paths_internal
import
models_path
,
script_path
,
data_path
,
sd_configs_path
,
sd_default_config
,
sd_model_file
,
default_sd_model_file
,
extensions_dir
,
extensions_builtin_dir
# noqa: F401
from
modules.paths_internal
import
models_path
,
script_path
,
data_path
,
sd_configs_path
,
sd_default_config
,
sd_model_file
,
default_sd_model_file
,
extensions_dir
,
extensions_builtin_dir
# noqa: F401
from
modules
import
util
from
modules
import
util
from
typing
import
TYPE_CHECKING
if
TYPE_CHECKING
:
from
modules
import
shared_state
,
styles
,
interrogate
,
shared_total_tqdm
,
memmon
cmd_opts
=
shared_cmd_options
.
cmd_opts
cmd_opts
=
shared_cmd_options
.
cmd_opts
parser
=
shared_cmd_options
.
parser
parser
=
shared_cmd_options
.
parser
...
@@ -16,11 +20,11 @@ styles_filename = cmd_opts.styles_file = cmd_opts.styles_file if len(cmd_opts.st
...
@@ -16,11 +20,11 @@ styles_filename = cmd_opts.styles_file = cmd_opts.styles_file if len(cmd_opts.st
config_filename
=
cmd_opts
.
ui_settings_file
config_filename
=
cmd_opts
.
ui_settings_file
hide_dirs
=
{
"visible"
:
not
cmd_opts
.
hide_ui_dir_config
}
hide_dirs
=
{
"visible"
:
not
cmd_opts
.
hide_ui_dir_config
}
demo
=
None
demo
:
gr
.
Blocks
=
None
device
=
None
device
:
str
=
None
weight_load_location
=
None
weight_load_location
:
str
=
None
xformers_available
=
False
xformers_available
=
False
...
@@ -28,21 +32,21 @@ hypernetworks = {}
...
@@ -28,21 +32,21 @@ hypernetworks = {}
loaded_hypernetworks
=
[]
loaded_hypernetworks
=
[]
state
=
None
state
:
'shared_state.State'
=
None
prompt_styles
=
None
prompt_styles
:
'styles.StyleDatabase'
=
None
interrogator
=
None
interrogator
:
'interrogate.InterrogateModels'
=
None
face_restorers
=
[]
face_restorers
=
[]
options_templates
=
None
options_templates
:
dict
=
None
opts
=
None
opts
:
options
.
Options
=
None
restricted_opts
=
None
restricted_opts
:
set
[
str
]
=
None
sd_model
:
sd_models_types
.
WebuiSdModel
=
None
sd_model
:
sd_models_types
.
WebuiSdModel
=
None
settings_components
=
None
settings_components
:
dict
=
None
"""assigned from ui.py, a mapping on setting names to gradio components repsponsible for those settings"""
"""assigned from ui.py, a mapping on setting names to gradio components repsponsible for those settings"""
tab_names
=
[]
tab_names
=
[]
...
@@ -65,9 +69,9 @@ progress_print_out = sys.stdout
...
@@ -65,9 +69,9 @@ progress_print_out = sys.stdout
gradio_theme
=
gr
.
themes
.
Base
()
gradio_theme
=
gr
.
themes
.
Base
()
total_tqdm
=
None
total_tqdm
:
'shared_total_tqdm.TotalTQDM'
=
None
mem_mon
=
None
mem_mon
:
'memmon.MemUsageMonitor'
=
None
options_section
=
options
.
options_section
options_section
=
options
.
options_section
OptionInfo
=
options
.
OptionInfo
OptionInfo
=
options
.
OptionInfo
...
...
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