I have 3 files, factory_imagenet.py, imdb.py and imagenet.py
factory_imagenet.py has:
import datasets.imagenet
It
When you call datasets.imdb.__init__(self, image_set) Your imdb.__init__ method gets 3 arguments. Two you send and third is implicit self
datasets.imdb.__init__(self, image_set)
imdb.__init__
self