mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2025-06-25 20:31:33 +02:00
Dont preload on cpu.
This commit is contained in:
parent
a036b2981a
commit
3bdc90451a
@ -207,7 +207,8 @@ def thread_render(device):
|
||||
weak_thread_data[threading.current_thread()] = {
|
||||
'device': runtime.thread_data.device
|
||||
}
|
||||
preload_model()
|
||||
if runtime.thread_data.device != 'cpu':
|
||||
preload_model()
|
||||
current_state = ServerStates.Online
|
||||
while True:
|
||||
task_cache.clean()
|
||||
|
Loading…
x
Reference in New Issue
Block a user