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.
1 parent 41aa312 commit 1484320Copy full SHA for 1484320
tests/test_finetune.py
@@ -34,9 +34,12 @@ def test_finetune_multiple_backbones(model_name):
34
35
torch.save(filtered_state_dict, os.path.join("/tmp", model_name + ".pt"))
36
37
- # Running the terratorch CLI
38
- command_str = f"terratorch fit -c tests/manufactured-finetune_{model_name}.yaml"
+ try:
+ # Running the terratorch CLI
39
+ command_str = f"terratorch fit -c tests/manufactured-finetune_{model_name}.yaml"
40
- subprocess.run(command_str, shell=True)
41
+ subprocess.run(command_str, shell=True)
42
+ except:
43
+ Exception("Fine-tuning cannot be executed.")
44
45
0 commit comments