Preload the model even in the CPU mode

This commit is contained in:
cmdr2 2022-10-27 23:17:41 +05:30
parent 284b95213e
commit 389e3397ec

View File

@ -251,7 +251,6 @@ 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: