mirror of
https://github.com/sbrl/research-rainfallradar
synced 2024-12-22 14:15:01 +00:00
dlr: fix crash
This commit is contained in:
parent
cf37aeb11a
commit
e6cd0aa1b9
1 changed files with 2 additions and 1 deletions
|
@ -314,7 +314,8 @@ def save_samples(filepath, save_list):
|
|||
|
||||
def plot_predictions(filepath, input_items, colormap, model):
|
||||
filepath_jsonl = filepath.replace("_$$", "").replace(".png", ".jsonl")
|
||||
os.truncate(filepath_jsonl, 0)
|
||||
if os.path.exists(filepath_jsonl):
|
||||
os.truncate(filepath_jsonl, 0)
|
||||
|
||||
i = 0
|
||||
for input_pair in input_items:
|
||||
|
|
Loading…
Reference in a new issue