mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2025-07-08 18:37:07 +02:00
Preload the model even in the CPU mode
This commit is contained in:
@ -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:
|
||||||
|
Reference in New Issue
Block a user