mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2025-08-16 11:09:00 +02:00
Need to wrap the filter() output in a list
This commit is contained in:
@ -90,7 +90,7 @@ def setConfig(config):
|
|||||||
print(traceback.format_exc())
|
print(traceback.format_exc())
|
||||||
|
|
||||||
if 'render_devices' in config:
|
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:
|
else:
|
||||||
gpu_devices = []
|
gpu_devices = []
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user