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.__new__() takes exactly one argument (the type to instantiate) #17

Open
FreshmanLin opened this issue Jun 4, 2021 · 1 comment

Comments

@FreshmanLin
Copy link

I have already successfully run the original code. To try to use new datasets, I inherit torch.utils.data.Dataset and create subclass Webface:
HJZ1N%7GF8YR 4DU1JLFFN9
ECMY27X4@GZ_E8F4O7A2
I want to use webface as unlabeled dataset, however when I instantiate a webface object, I get a type error:
CVQ6Y PW HKEFH)7JO_6 UG
How to solve this bug? The error code is from a auto-generated file when I created an anaconda virtual environment.

@lcmj520
Copy link

lcmj520 commented Oct 3, 2022

Your "init" function has been rewriten as "init" incorrectly, which could not be recognized by the compiler. There should be two underline at the head and end.

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