Custom Dataset and DataLoader: list object is not callable #3103
Answered
by
wsad1
ahmedramly
asked this question in
Q&A
-
Beta Was this translation helpful? Give feedback.
Answered by
wsad1
Sep 9, 2021
Replies: 1 comment 1 reply
-
I think the problem is down to this line
The second argument is |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
ahmedramly
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I think the problem is down to this line
super(EEDataset, self).__init__(root, folders, transform, pre_transform)
. The signature of__init__
in thedataset
class isThe second argument is
transform
, in your case the second argument isfolder
that's the reason you get an error whenself.transform
gets executed. Simply removingfolder
from thesuper
call should fix the issue.