mirror of
https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI.git
synced 2025-01-31 10:42:52 +08:00
Bugfix: for empty selection
This commit is contained in:
parent
73d30c0a26
commit
2aede6cc91
@ -842,6 +842,10 @@ def get_loss_graph_images(selection):
|
|||||||
Returns:
|
Returns:
|
||||||
dict: A dictionary of image paths keyed by desired_tags.
|
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')
|
loss_graphs_path = os.path.join(index_root, selection, 'loss_graphs')
|
||||||
if not os.path.exists(loss_graphs_path):
|
if not os.path.exists(loss_graphs_path):
|
||||||
print(f"Directory not found: {loss_graphs_path}")
|
print(f"Directory not found: {loss_graphs_path}")
|
||||||
|
Loading…
Reference in New Issue
Block a user