dlr: fix crash

This commit is contained in:
Starbeamrainbowlabs 2023-03-10 17:14:06 +00:00
parent cf37aeb11a
commit e6cd0aa1b9
Signed by: sbrl
GPG key ID: 1BE5172E637709C2

View file

@ -314,6 +314,7 @@ def save_samples(filepath, save_list):
def plot_predictions(filepath, input_items, colormap, model): def plot_predictions(filepath, input_items, colormap, model):
filepath_jsonl = filepath.replace("_$$", "").replace(".png", ".jsonl") filepath_jsonl = filepath.replace("_$$", "").replace(".png", ".jsonl")
if os.path.exists(filepath_jsonl):
os.truncate(filepath_jsonl, 0) os.truncate(filepath_jsonl, 0)
i = 0 i = 0