image_output_1.png
import glob

import os

root_images = '../input/all-dogs/all-dogs/'
root_annots = '../input/annotation/Annotation/'
all_images = os.listdir('../input/all-dogs/all-dogs/')
print(f'Total images : {len(all_images)}')
breeds = glob.glob('../input/annotation/Annotation/*')
annotation = []
for b in breeds:
    annotation += glob.glob(b + '/*')
print(f'Total annotation : {len(annotation)}')
breed_map = {}
for annot in annotation:
    breed = annot.split('/')[-2]
    index = breed.split('-')[0]
    breed_map.setdefault(index, breed)
print(f'Total Breeds : {len(breed_map)}')