mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-12-19 17:47:25 -05:00
avoid importing timer when it is not strictly needed
This commit is contained in:
committed by
GitHub
parent
fc3bdf8c11
commit
33694baea1
@@ -1,4 +1,4 @@
|
|||||||
from modules import launch_utils, timer
|
from modules import launch_utils
|
||||||
|
|
||||||
|
|
||||||
args = launch_utils.args
|
args = launch_utils.args
|
||||||
@@ -26,6 +26,7 @@ start = launch_utils.start
|
|||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
|
from modules import timer
|
||||||
timer.startup_timer.record("start")
|
timer.startup_timer.record("start")
|
||||||
|
|
||||||
if not args.skip_prepare_environment:
|
if not args.skip_prepare_environment:
|
||||||
|
|||||||
Reference in New Issue
Block a user