Put back the check to only preload on GPU

This commit is contained in:
cmdr2 2022-10-28 00:04:33 +05:30
parent 5d8bda1178
commit 0dfaf9159d

View File

@ -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()