-
Notifications
You must be signed in to change notification settings - Fork 234
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
confusion about input for dataset #116
Comments
it may be not a big deal, I found out the way to addapt : |
I once changed the code to accept only I thought creating a list every time you want to create a new subject would be even more verbose, so implemented it like this, although I don't have strong arguments to support my decision. Using |
ok fine |
Hello
Sorry if this is obvious but I get confuse with the dataset input
Previously I was just using list of images,
and then
dataset = ImagesDataset(suj)
After a recent update I get know an error
TypeError: Subjects list must contain instances of torchio.Subject, not "<class 'list'>"
so I now need a subject and thought I could do :
suj = [ Subject(ss) for ss in suj ]
but Subject does not accept a list of image : why that ?
this make the code, quite verbose, The only way is to do (as found in example_motion)
it is less convenient than a list of image ...
may be I miss the point ... ?
The text was updated successfully, but these errors were encountered: