Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion utils/migration_tools/from_wandb/wandb_to_neptune.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,11 @@
else:
neptune_workspace = input("Enter Neptune workspace name: ").strip()

# Validate that workspace name is not empty
if not neptune_workspace:
print("Error: Neptune workspace name cannot be empty!")
sys.exit(1)

num_workers = input(
"Enter the number of workers to use (int). Leave empty to use ThreadPoolExecutor's defaults: "
).strip()
Expand Down Expand Up @@ -228,7 +233,7 @@ def copy_metrics(neptune_run: neptune.Run, wandb_run: client.run) -> None:
dict(history[key])[i]["_type"] == "table-file"
): # Not uploading W&B table-file to Neptune
continue
except (IndexError, TypeError):
except (IndexError, TypeError, KeyError):
if epoch:
neptune_run[key].append(value, step=epoch)
elif timestamp:
Expand Down