diff options
author | Jabasukuriputo Wang <wfjsw@users.noreply.github.com> | 2023-07-21 09:15:44 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-21 09:15:44 +0000 |
commit | 33694baea1a886021e19da27b4ff41898428cbbd (patch) | |
tree | 004af851a797199b5352a8090ac0030b87ad95e7 /launch.py | |
parent | fc3bdf8c1184de1116fe9f30b72905b4b3285e74 (diff) | |
download | stable-diffusion-webui-gfx803-33694baea1a886021e19da27b4ff41898428cbbd.tar.gz stable-diffusion-webui-gfx803-33694baea1a886021e19da27b4ff41898428cbbd.tar.bz2 stable-diffusion-webui-gfx803-33694baea1a886021e19da27b4ff41898428cbbd.zip |
avoid importing timer when it is not strictly needed
Diffstat (limited to 'launch.py')
-rw-r--r-- | launch.py | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1,4 +1,4 @@ -from modules import launch_utils, timer
+from modules import launch_utils
args = launch_utils.args
@@ -26,6 +26,7 @@ start = launch_utils.start def main():
+ from modules import timer
timer.startup_timer.record("start")
if not args.skip_prepare_environment:
|