mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2026-02-04 06:42:13 -08:00
avoid importing timer when it is not strictly needed
This commit is contained in:
parent
fc3bdf8c11
commit
33694baea1
1 changed files with 2 additions and 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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue