Update dataset_traversal.py

CUDA_VISIBLE_DEVICES 默认值必须为str, 否则split会报错
release/1.1
Neo 5 years ago committed by GitHub
parent 5ed1e2427b
commit b2e1a84981
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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:

Loading…
Cancel
Save