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
3c570421
Commit
3c570421
authored
Jul 18, 2023
by
wfjsw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
move start timer
parent
420cc8f6
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
5 deletions
+4
-5
launch.py
launch.py
+3
-1
modules/api/models.py
modules/api/models.py
+1
-1
modules/launch_utils.py
modules/launch_utils.py
+0
-3
No files found.
launch.py
View file @
3c570421
from
modules
import
launch_utils
from
modules
import
launch_utils
,
timer
args
=
launch_utils
.
args
...
...
@@ -25,6 +25,8 @@ start = launch_utils.start
def
main
():
timer
.
startup_timer
.
record
(
"start"
)
if
not
args
.
skip_prepare_environment
:
prepare_environment
()
...
...
modules/api/models.py
View file @
3c570421
...
...
@@ -213,7 +213,7 @@ for key, metadata in opts.data_labels.items():
value
=
None
optType
=
opts
.
typemap
.
get
(
type
(
metadata
.
default
),
type
(
value
))
if
optType
==
types
.
NoneType
:
if
isinstance
(
optType
,
types
.
NoneType
)
:
pass
elif
metadata
is
not
None
:
fields
.
update
({
key
:
(
Optional
[
optType
],
Field
(
default
=
metadata
.
default
,
description
=
metadata
.
label
))})
...
...
modules/launch_utils.py
View file @
3c570421
...
...
@@ -10,9 +10,6 @@ from functools import lru_cache
from
modules
import
cmd_args
,
errors
from
modules.paths_internal
import
script_path
,
extensions_dir
from
modules
import
timer
timer
.
startup_timer
.
record
(
"start"
)
args
,
_
=
cmd_args
.
parser
.
parse_known_args
()
...
...
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