MPL-pytorch
MPL-pytorch copied to clipboard
TypeError: object.__new__() takes exactly one argument (the type to instantiate)
I have already successfully run the original code. To try to use new datasets, I inherit torch.utils.data.Dataset and create subclass Webface:
I want to use webface as unlabeled dataset, however when I instantiate a webface object, I get a type error:
How to solve this bug? The error code is from a auto-generated file when I created an anaconda virtual environment.
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.