forked from extern/easydiffusion
Added warning about validating config.
This commit is contained in:
parent
21afe077d7
commit
ef68e5b13d
@ -356,6 +356,7 @@ async def check_status(): # Task to Validate user config shortly after startup.
|
|||||||
device_count = new_count
|
device_count = new_count
|
||||||
|
|
||||||
if 'render_devices' in config and task_manager.is_alive() <= 0: # No running devices, probably invalid user config. Try to apply defaults.
|
if 'render_devices' in config and task_manager.is_alive() <= 0: # No running devices, probably invalid user config. Try to apply defaults.
|
||||||
|
print('WARNING: No active render devices after loading config. Validate "render_devices" in config.json')
|
||||||
task_manager.start_render_thread('auto') # Detect best device for renders
|
task_manager.start_render_thread('auto') # Detect best device for renders
|
||||||
task_manager.start_render_thread('cpu') # Allow CPU to be used for renders
|
task_manager.start_render_thread('cpu') # Allow CPU to be used for renders
|
||||||
await asyncio.sleep(3) # delay message after thread start.
|
await asyncio.sleep(3) # delay message after thread start.
|
||||||
|
Loading…
Reference in New Issue
Block a user