Skip to content
Discussion options

You must be logged in to vote

For each point cloud, you would create an individual data object, e.g.:

import pandas as pd

pos = torch.from_numpy(pd.read_csv(pos.txt).values).to(torch.float)
y = ... # read label into PyTorch tensor
data = Data(pos=pos, y=y)

You can then simply hold that in a Python list or merge it into a PyG InMemoryDataset and pass it to the DataLoader:

from torch_geometric.loader import DataLoader

loader = DataLoader([data1, data2, data3, ...], batch_size=16, ...)

Replies: 1 comment 8 replies

Comment options

You must be logged in to vote
8 replies
@rusty1s
Comment options

@davodogster
Comment options

@rusty1s
Comment options

@davodogster
Comment options

@rusty1s
Comment options

Answer selected by davodogster
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants