mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2024-12-23 23:49:11 +01:00
Put back the check to only preload on GPU
This commit is contained in:
parent
5d8bda1178
commit
0dfaf9159d
@ -251,7 +251,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…
Reference in New Issue
Block a user