module.__init__() takes at most 2 arguments error in Python

后端 未结 3 1204
北荒
北荒 2021-01-05 23:16

I have 3 files, factory_imagenet.py, imdb.py and imagenet.py

factory_imagenet.py has:

import datasets.imagenet

It

3条回答
  •  天涯浪人
    2021-01-06 00:06

    When you call datasets.imdb.__init__(self, image_set)
    Your imdb.__init__ method gets 3 arguments. Two you send and third is implicit self

提交回复
热议问题