You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
KeyError in DataLoader when (tx, belongs, bd).edge_label is missing for some samples #94
I’m running into a KeyError in the PyTorch Geometric DataLoader when using the package. Some .pt files in my dataset do not include an edge_label in the (tx, belongs, bd) edge store, which leads PyG’s collation logic to crash. It appears that the package generates inconsistent keys across samples in the “processed” dataset, causing the default Batch.from_data_list to fail.
Steps to Reproduce
Create or load a dataset in which some HeteroData objects have (tx, belongs, bd).edge_label while others do not.
Call DataLoader(dataset, batch_size=N).
Attempt to iterate over the loader, e.g., with next(iter(dataloader)).
Hello there!
I think I've got a similar issue with edge_label in the prediction step, which looks like the error message in this one #81 (comment)
Any ideas what to try? @EliHei2
both create dataset and train_model finished correctly
Activity
andrewmoorman commentedon Apr 1, 2025
Thanks for flagging this @mossishahi! I'll take a look.
BioinfoTongLI commentedon Jun 9, 2025
Hello there!
I think I've got a similar issue with
edge_labelin the prediction step, which looks like the error message in this one #81 (comment)Any ideas what to try? @EliHei2
both create dataset and train_model finished correctly
but not prediction step.
cc'ing @krademaker
And I am using this docker images