Spaces:
Runtime error
Runtime error
Update train.py
Browse files
train.py
CHANGED
@@ -503,7 +503,7 @@ def args_parser(default_opt=None):
|
|
503 |
|
504 |
args = parser.parse_args(sys.argv[1:])
|
505 |
|
506 |
-
|
507 |
if args.opt is not None:
|
508 |
with open(args.opt) as f:
|
509 |
opts = yaml.load(f, Loader=yaml.FullLoader)
|
|
|
503 |
|
504 |
args = parser.parse_args(sys.argv[1:])
|
505 |
|
506 |
+
os.environ["CUDA_VISIBLE_DEVICES"] = args.cuda
|
507 |
if args.opt is not None:
|
508 |
with open(args.opt) as f:
|
509 |
opts = yaml.load(f, Loader=yaml.FullLoader)
|