From e781e5dd4374905b4df5add279310f6cbd80abc1 Mon Sep 17 00:00:00 2001 From: cmdr2 Date: Fri, 28 Oct 2022 22:30:05 +0530 Subject: [PATCH] Need to wrap the filter() output in a list --- ui/server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/server.py b/ui/server.py index ec288faf..649f7f45 100644 --- a/ui/server.py +++ b/ui/server.py @@ -90,7 +90,7 @@ def setConfig(config): print(traceback.format_exc()) if 'render_devices' in config: - gpu_devices = filter(lambda dev: dev.lower().startswith('gpu') or dev.lower().startswith('cuda'), config['render_devices']) + gpu_devices = list(filter(lambda dev: dev.lower().startswith('gpu') or dev.lower().startswith('cuda'), config['render_devices'])) else: gpu_devices = []