mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2025-06-25 20:31:33 +02:00
Put back the check to only preload on GPU
This commit is contained in:
parent
5d8bda1178
commit
0dfaf9159d
@ -251,6 +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:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user