-
Notifications
You must be signed in to change notification settings - Fork 21.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
how to make dataloader return multiple tensors each time #17773
Comments
#14705 will support something like your proposed snippet. However, in your case, your |
Fixed via #19228 |
Hi @ssnl ! Could you elaborate a bit more on what has to be done to achieve this behavior? But i cant manage to make my getitem to return 15 samples. This is currently my getitem function:
` |
🚀 Feature
I am working on medical image analysis, in which for data sample (i.e. medial image) it contains multiple samples (data + label) for training. How can I write my own dataset and dataloader to extract all the tensors from one image?
Motivation
Here is my definition of the dataset:
class HCP_taskfmri_datasets(Dataset):
##build a new class for own dataset
###the dataloader will treat all 170 samples as one tensor. How can I extract each individual sample and use it for training the model?
Pitch
Can we make the a for loop for the get_item function? for instance:
Alternatives
Additional context
The text was updated successfully, but these errors were encountered: