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

super() takes at least 1 argument (0 given) #32

Open
jack1yang opened this issue Mar 5, 2019 · 1 comment
Open

super() takes at least 1 argument (0 given) #32

jack1yang opened this issue Mar 5, 2019 · 1 comment

Comments

@jack1yang
Copy link

Traceback (most recent call last):
File "main.py", line 213, in
dataset = DataLoader(opt, split='train')
File "/workspace/neuralbabytalk/misc/dataloader_coco.py", line 112, in init
self.dataloader_hdf = HDFSingleDataset(self.opt.proposal_h5)
File "/workspace/neuralbabytalk/misc/dataloader_hdf.py", line 59, in init
super().init(
TypeError: super() takes at least 1 argument (0 given)

@jack1yang
Copy link
Author

because you are using python2.X, you should change super.init( ) ,which is ok in python3.X ,into super(HDFSingleDataset,self).init ,and also another one. in NueralBabyTalk/misc/dataloader_hdf.py

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

1 participant