Skip to content
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

TypeError: object() takes no parameters #24

Closed
zx0728 opened this issue Mar 25, 2021 · 0 comments
Closed

TypeError: object() takes no parameters #24

zx0728 opened this issue Mar 25, 2021 · 0 comments

Comments

@zx0728
Copy link

zx0728 commented Mar 25, 2021

ipython-input-5-ad41ec68ba80> in
7 plt.figure(figsize=(8,8))
8 for i in range(9):
----> 9 img,label = ds_train[i]
10 img = img.permute(1,2,0)
11 ax = plt.subplot(3,3,i+1)

E:\anaconda\envs\pytorch\lib\site-packages\torchvision\datasets\folder.py in getitem(self, index)
151 sample = self.loader(path)
152 if self.transform is not None:
--> 153 sample = self.transform(sample)
154 if self.target_transform is not None:
155 target = self.target_transform(target)

E:\anaconda\envs\pytorch\lib\site-packages\torchvision\transforms\transforms.py in call(self, img)
65 def call(self, img):
66 for t in self.transforms:
---> 67 img = t(img)
68 return img
69

TypeError: object() takes no parameters

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants