Basically the issue is
settings.image_fnames['train'].keys() != settings.classes
The keys() method should never be used because we have regular dictionaries, not OrderedDicts. The keys should be in the same order every time, but that is not a safe assumption.
Basically the issue is
settings.image_fnames['train'].keys() != settings.classes
Thekeys()
method should never be used because we have regular dictionaries, notOrderedDict
s. The keys should be in the same order every time, but that is not a safe assumption.