mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-02-07 06:02:53 +08:00
avoid importing timer when it is not strictly needed
This commit is contained in:
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:
|
||||||
|
Loading…
Reference in New Issue
Block a user