mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2025-02-23 13:51:51 +01:00
Preload the model even in the CPU mode
This commit is contained in:
parent
284b95213e
commit
389e3397ec
@ -251,7 +251,6 @@ 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:
|
||||||
|
Loading…
Reference in New Issue
Block a user