As shown in the following snippet, class_to_idx has been obtained by function self._find_classes(self.root). Therefore, class_to_idx can be reused by function make_custom_dataset. Probably, file imagenet_class_to_id_map.json can be removed permanently.
As shown in the following snippet,
class_to_idx
has been obtained by functionself._find_classes(self.root)
. Therefore,class_to_idx
can be reused by functionmake_custom_dataset
. Probably, fileimagenet_class_to_id_map.json
can be removed permanently.