未验证 提交 b2e1a849 编写于 作者: Neo__Wong's avatar Neo__Wong 提交者: GitHub

Update dataset_traversal.py

CUDA_VISIBLE_DEVICES 默认值必须为str, 否则split会报错
上级 5ed1e242
......@@ -237,7 +237,7 @@ class SimpleReader(object):
def get_device_num():
if self.use_gpu:
gpus = os.environ.get("CUDA_VISIBLE_DEVICES", 1)
gpus = os.environ.get("CUDA_VISIBLE_DEVICES", '1')
gpu_num = len(gpus.split(','))
return gpu_num
else:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册