We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c8b834b + e11e0e2 commit 1fb0d3eCopy full SHA for 1fb0d3e
modules/dense_correspondence_manipulation/utils/utils.py
@@ -94,8 +94,10 @@ def set_default_cuda_visible_devices():
94
config = get_defaults_config()
95
host_name = socket.gethostname()
96
user_name = getpass.getuser()
97
- gpu_list = config[host_name][user_name]["cuda_visible_devices"]
98
- set_cuda_visible_devices(gpu_list)
+ if host_name in config:
+ if user_name in config[host_name]:
99
+ gpu_list = config[host_name][user_name]["cuda_visible_devices"]
100
+ set_cuda_visible_devices(gpu_list)
101
102
def get_defaults_config():
103
dc_source_dir = getDenseCorrespondenceSourceDir()
0 commit comments