Bugfix: for empty selection

This commit is contained in:
Wernervanrun 2025-01-13 12:33:18 +01:00
parent 73d30c0a26
commit 2aede6cc91

View File

@ -842,6 +842,10 @@ def get_loss_graph_images(selection):
Returns:
dict: A dictionary of image paths keyed by desired_tags.
"""
if not selection:
print("No project selected")
return {}
loss_graphs_path = os.path.join(index_root, selection, 'loss_graphs')
if not os.path.exists(loss_graphs_path):
print(f"Directory not found: {loss_graphs_path}")