Unanswered
It Seems Like Clearml Agent Does Not Support Arparse Subparsers, Right?
When the execution starts locally the args
are like:
Namespace(subparser='train', project='test', epochs=0)
then remotely they get converted to:
Namespace(subparser="['train', '--project', 'test', '--epoch', '0']", project='test', epochs=0)
Which is similar to what Tim reported a few messages above.
So when in the code I do something like if args.subparser == "train": ...
I get a normal behaviour locally (i.e. True
), but not remotely because args.subarser
is actually that weird string.
I solved it by chaing the condition to if "train" in args.subparser
, which works in both situation, but itโs not very safe ๐
182 Views
0
Answers
one year ago
one year ago