mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2025-02-23 22:01:25 +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()] = {
|
weak_thread_data[threading.current_thread()] = {
|
||||||
'device': runtime.thread_data.device
|
'device': runtime.thread_data.device
|
||||||
}
|
}
|
||||||
if runtime.thread_data.device != 'cpu':
|
preload_model()
|
||||||
preload_model()
|
|
||||||
current_state = ServerStates.Online
|
current_state = ServerStates.Online
|
||||||
while True:
|
while True:
|
||||||
task_cache.clean()
|
task_cache.clean()
|
||||||
|
Loading…
Reference in New Issue
Block a user