MPL-pytorch icon indicating copy to clipboard operation
MPL-pytorch copied to clipboard

TypeError: object.__new__() takes exactly one argument (the type to instantiate)

Open FreshmanLin opened this issue 3 years ago • 1 comments

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@~G~Z_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.

FreshmanLin avatar Jun 04 '21 12:06 FreshmanLin

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.

lcmj520 avatar Oct 03 '22 05:10 lcmj520