mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2025-02-22 21:32:03 +01:00
Preload the model even in the CPU mode
This commit is contained in:
parent
284b95213e
commit
389e3397ec
@ -251,8 +251,7 @@ def thread_render(device):
|
||||
weak_thread_data[threading.current_thread()] = {
|
||||
'device': runtime.thread_data.device
|
||||
}
|
||||
if runtime.thread_data.device != 'cpu':
|
||||
preload_model()
|
||||
preload_model()
|
||||
current_state = ServerStates.Online
|
||||
while True:
|
||||
task_cache.clean()
|
||||
|
Loading…
Reference in New Issue
Block a user