{"cells":[{"metadata":{"_uuid":"8f2839f25d086af736a60e9eeb907d3b93b6e0e5","_cell_guid":"b1076dfc-b9ad-4769-8c92-a6c4dae69d19","trusted":true},"cell_type":"code","source":"import numpy as np # linear algebra\nimport pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv)\n\nimport math, os, random, cv2\nimport numpy as np, pandas as pd\nimport matplotlib.pyplot as plt","execution_count":null,"outputs":[]},{"metadata":{"_uuid":"d629ff2d2480ee46fbb7e2d37f6b5fab8052498a","_cell_guid":"79c7e3d0-c299-4dcb-8224-4455121ee9b0","trusted":true},"cell_type":"code","source":"#took form:https://www.kaggle.com/ihelon/monet-eda\ndef vis(path, n_images, is_random=True, figsize=(16, 16)):\n    plt.figure(figsize=figsize)\n    \n    w = int(n_images ** .5)\n    h = math.ceil(n_images / w)\n    \n    image_names = os.listdir(path)\n    \n    for i in range(n_images):\n        image_name = image_names[i]\n        if is_random:\n            image_name = random.choice(image_names)\n            \n        img = cv2.imread(os.path.join(path, image_name))\n        plt.subplot(h, w, i + 1)\n        plt.imshow(img)\n        plt.xticks([])\n        plt.yticks([])\n    \n    plt.show()","execution_count":null,"outputs":[]},{"metadata":{},"cell_type":"markdown","source":"# Monet\n\nMostly took from [here](https://www.kaggle.com/ihelon/monet-eda), from [Yaroslav Isaienkov](https://www.kaggle.com/ihelon)","execution_count":null},{"metadata":{"trusted":true},"cell_type":"code","source":"BASE_PATH = '../input/gan-getting-started/'\nMONET_PATH = os.path.join(BASE_PATH, 'monet_jpg')\nPHOTO_PATH = os.path.join(BASE_PATH, 'photo_jpg')\n\nprint(f'Monet images: {len(os.listdir(MONET_PATH))}')\nprint(f'Photo images: {len(os.listdir(PHOTO_PATH))}')","execution_count":null,"outputs":[]},{"metadata":{},"cell_type":"markdown","source":"### Monet","execution_count":null},{"metadata":{"_kg_hide-input":true,"trusted":true},"cell_type":"code","source":"vis(MONET_PATH, 16, is_random=True)","execution_count":null,"outputs":[]},{"metadata":{},"cell_type":"markdown","source":"### Photos","execution_count":null},{"metadata":{"_kg_hide-input":true,"trusted":true},"cell_type":"code","source":"vis(PHOTO_PATH, 16, is_random=True)","execution_count":null,"outputs":[]},{"metadata":{},"cell_type":"markdown","source":"# Van Gogh","execution_count":null},{"metadata":{"trusted":true},"cell_type":"code","source":"BASE_PATH = '../input/van-gogh-paintings/'\nArles_PATH    = os.path.join(BASE_PATH, 'Arles')\nAuvers_PATH   = os.path.join(BASE_PATH, 'Auvers sur Oise')\nDrawings_PATH = os.path.join(BASE_PATH, 'Drawings')\nFace_PATH     = os.path.join(BASE_PATH, 'Face')\nNuenem_PATH   = os.path.join(BASE_PATH, 'Nuenen')\nParis_PATH    = os.path.join(BASE_PATH, 'Paris')\nSaint_PATH    = os.path.join(BASE_PATH, 'Saint Remy')\nSketches_PATH = os.path.join(BASE_PATH, 'Sketches in letters')\nVillege_PATH  = os.path.join(BASE_PATH, 'Villege')\nWater_PATH    = os.path.join(BASE_PATH, 'Watercolors')\nYoungVan_PATH = os.path.join(BASE_PATH, 'Works of the young van Gogh')\n\n\nprint(f'Arles images   : {len(os.listdir(Arles_PATH))}')\nprint(f'Auvers images  : {len(os.listdir(Auvers_PATH))}')\nprint(f'Drawings images: {len(os.listdir(Drawings_PATH))}')\nprint(f'Face images    : {len(os.listdir(Face_PATH))}')\nprint(f'Nuenem images  : {len(os.listdir(Nuenem_PATH))}')\nprint(f'Paris images   : {len(os.listdir(Paris_PATH))}')\nprint(f'Saint images   : {len(os.listdir(Saint_PATH))}')\nprint(f'Sketches images: {len(os.listdir(Sketches_PATH))}')\nprint(f'Villege images : {len(os.listdir(Villege_PATH))}')\nprint(f'Water images   : {len(os.listdir(Water_PATH))}')\nprint(f'YoungVan images: {len(os.listdir(YoungVan_PATH))}')","execution_count":null,"outputs":[]},{"metadata":{},"cell_type":"markdown","source":"## Arles","execution_count":null},{"metadata":{"_kg_hide-input":true,"trusted":true},"cell_type":"code","source":"vis(Arles_PATH, 16, is_random=True)","execution_count":null,"outputs":[]},{"metadata":{},"cell_type":"markdown","source":"## Auvers","execution_count":null},{"metadata":{"_kg_hide-input":true,"trusted":true},"cell_type":"code","source":"vis(Auvers_PATH, 16, is_random=True)","execution_count":null,"outputs":[]},{"metadata":{},"cell_type":"markdown","source":"### Drawing","execution_count":null},{"metadata":{"_kg_hide-input":true,"trusted":true},"cell_type":"code","source":"vis(Drawings_PATH, 16, is_random=True)","execution_count":null,"outputs":[]},{"metadata":{},"cell_type":"markdown","source":"### Nuenem","execution_count":null},{"metadata":{"_kg_hide-input":true,"trusted":true},"cell_type":"code","source":"vis(Nuenem_PATH, 16, is_random=True)","execution_count":null,"outputs":[]},{"metadata":{},"cell_type":"markdown","source":"### Paris","execution_count":null},{"metadata":{"_kg_hide-input":true,"trusted":true},"cell_type":"code","source":"vis(Paris_PATH, 16, is_random=True)","execution_count":null,"outputs":[]},{"metadata":{},"cell_type":"markdown","source":"### Saint","execution_count":null},{"metadata":{"_kg_hide-input":true,"trusted":true},"cell_type":"code","source":"vis(Saint_PATH, 16, is_random=True)","execution_count":null,"outputs":[]},{"metadata":{},"cell_type":"markdown","source":"### Sketches","execution_count":null},{"metadata":{"_kg_hide-input":true,"trusted":true},"cell_type":"code","source":"vis(Sketches_PATH, 16, is_random=True)","execution_count":null,"outputs":[]},{"metadata":{},"cell_type":"markdown","source":"### Villege","execution_count":null},{"metadata":{"_kg_hide-input":true,"trusted":true},"cell_type":"code","source":"vis(Villege_PATH, 16, is_random=True)","execution_count":null,"outputs":[]},{"metadata":{},"cell_type":"markdown","source":"### Water Fall","execution_count":null},{"metadata":{"_kg_hide-input":true,"trusted":true},"cell_type":"code","source":"vis(Water_PATH, 16, is_random=True)","execution_count":null,"outputs":[]},{"metadata":{},"cell_type":"markdown","source":"### Work of Young Van ","execution_count":null},{"metadata":{"_kg_hide-input":true,"trusted":true},"cell_type":"code","source":"vis(YoungVan_PATH, 16, is_random=True)","execution_count":null,"outputs":[]}],"metadata":{"kernelspec":{"language":"python","display_name":"Python 3","name":"python3"},"language_info":{"pygments_lexer":"ipython3","nbconvert_exporter":"python","version":"3.6.4","file_extension":".py","codemirror_mode":{"name":"ipython","version":3},"name":"python","mimetype":"text/x-python"}},"nbformat":4,"nbformat_minor":4}