mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2025-05-01 23:04:48 +02:00
Enable preload on cpu when no other devices are alive.
This commit is contained in:
parent
7dc7ba9977
commit
22a11769fa
@ -250,7 +250,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':
|
if runtime.thread_data.device != 'cpu' or is_alive() == 1:
|
||||||
preload_model()
|
preload_model()
|
||||||
current_state = ServerStates.Online
|
current_state = ServerStates.Online
|
||||||
while True:
|
while True:
|
||||||
|
Loading…
Reference in New Issue
Block a user