application_vnd.jupyter.stderr_output_2.png application_vnd.jupyter.stderr_output_4.png text_plain_output_3.png text_plain_output_1.png
import os

DATA_DIR = '../input/catsvsdogstest/cats-vs-dogs-1000/dogs_cats_sample_1000/dogs_cats_sample_1000/'

train_dir = os.path.join(DATA_DIR, 'train')
valid_dir = os.path.join(DATA_DIR, 'valid')
test_dir = os.path.join(DATA_DIR, 'test')

train_cats_dir = os.path.join(train_dir, 'cats')
train_dogs_dir = os.path.join(train_dir, 'dogs')

valid_cats_dir = os.path.join(valid_dir, 'cats')
valid_dogs_dir = os.path.join(valid_dir, 'dogs')

print('total train cat image:', len(os.listdir(train_cats_dir)))
print('total train dog image:', len(os.listdir(train_dogs_dir)))
print('total validation cat image:', len(os.listdir(valid_cats_dir)))
print('total validation dog image:', len(os.listdir(valid_dogs_dir)))