Unanswered
Hello! I Have A Clearml-Task That Reads Args From Command Line Using Argparse. Before This Worked Fine. Now, Args Are Show Up In The Configuration Tab Of The Experiment, But Are Not Being Passed To The Script, Printing Passed Argyments Yields An Empty Lis
Im testing with the following script. It runs fine if its not part of a git repo. Placing it inside a git repo (though I am testing it in a private bitbucket in my work) and the args arent passed:
#script that just multiplies args, with one arg, x being obligatory
if __name__ == "__main__":
import argparse
parser = argparse.ArgumentParser()
parser.add_argument("--x", type=float, required=True)
parser.add_argument("--y", type=float, default = 2.)
parser.add_argument("--z", type=float, default=3.)
args = parser.parse_args()
v = 1
for key, value in vars(args).items():
print(key, value)
v *= value
print(v)
21 Views
0
Answers
2 months ago
2 months ago