{"nbformat":4,"nbformat_minor":0,"metadata":{"colab":{"name":"5-4 CNN 시각화.ipynb","provenance":[],"collapsed_sections":[],"authorship_tag":"ABX9TyNCd7dqD2oN4ktRsXatcvQO"},"kernelspec":{"name":"python3","display_name":"Python 3"},"accelerator":"GPU"},"cells":[{"cell_type":"code","metadata":{"id":"bq6EM0owvcjg","colab_type":"code","outputId":"19da8354-f08b-4e4b-a19c-64e4087ee104","executionInfo":{"status":"ok","timestamp":1580364611856,"user_tz":-540,"elapsed":20358,"user":{"displayName":"Yoon Jack","photoUrl":"","userId":"04923927567667044980"}},"colab":{"base_uri":"https://localhost:8080/","height":127}},"source":["from google.colab import drive\n","drive.mount('/content/drive')"],"execution_count":1,"outputs":[{"output_type":"stream","text":["Go to this URL in a browser: https://accounts.google.com/o/oauth2/auth?client_id=947318989803-6bn6qk8qdgf4n4g3pfee6491hc0brc4i.apps.googleusercontent.com&redirect_uri=urn%3aietf%3awg%3aoauth%3a2.0%3aoob&response_type=code&scope=email%20https%3a%2f%2fwww.googleapis.com%2fauth%2fdocs.test%20https%3a%2f%2fwww.googleapis.com%2fauth%2fdrive%20https%3a%2f%2fwww.googleapis.com%2fauth%2fdrive.photos.readonly%20https%3a%2f%2fwww.googleapis.com%2fauth%2fpeopleapi.readonly\n","\n","Enter your authorization code:\n","··········\n","Mounted at /content/drive\n"],"name":"stdout"}]},{"cell_type":"code","metadata":{"id":"JohwKmHWvnt0","colab_type":"code","outputId":"3b26795f-8467-4056-9154-624aca02a63b","executionInfo":{"status":"ok","timestamp":1580364617696,"user_tz":-540,"elapsed":2641,"user":{"displayName":"Yoon Jack","photoUrl":"","userId":"04923927567667044980"}},"colab":{"base_uri":"https://localhost:8080/","height":71}},"source":["!ls -ltr"],"execution_count":2,"outputs":[{"output_type":"stream","text":["total 8\n","drwxr-xr-x 1 root root 4096 Jan 13 16:38 sample_data\n","drwx------ 4 root root 4096 Jan 30 06:10 drive\n"],"name":"stdout"}]},{"cell_type":"code","metadata":{"id":"7EigQ-kGvu4k","colab_type":"code","outputId":"d704f693-6184-4be7-e23c-ea2d9f591b11","executionInfo":{"status":"ok","timestamp":1580364619949,"user_tz":-540,"elapsed":1002,"user":{"displayName":"Yoon Jack","photoUrl":"","userId":"04923927567667044980"}},"colab":{"base_uri":"https://localhost:8080/","height":35}},"source":["cd drive"],"execution_count":3,"outputs":[{"output_type":"stream","text":["/content/drive\n"],"name":"stdout"}]},{"cell_type":"code","metadata":{"id":"RgchlWX4vv26","colab_type":"code","outputId":"3f86fd4d-ee0f-45ad-d9e7-a8d5ae8c014a","executionInfo":{"status":"ok","timestamp":1580364621479,"user_tz":-540,"elapsed":745,"user":{"displayName":"Yoon Jack","photoUrl":"","userId":"04923927567667044980"}},"colab":{"base_uri":"https://localhost:8080/","height":35}},"source":["cd 'My Drive'/'Colab Notebooks'/Keras_creator"],"execution_count":4,"outputs":[{"output_type":"stream","text":["/content/drive/My Drive/Colab Notebooks/Keras_creator\n"],"name":"stdout"}]},{"cell_type":"code","metadata":{"id":"k8FuajrEvwwN","colab_type":"code","outputId":"254d24f7-c77d-4e2c-ef96-81738bda940f","executionInfo":{"status":"ok","timestamp":1580364633778,"user_tz":-540,"elapsed":11650,"user":{"displayName":"Yoon Jack","photoUrl":"","userId":"04923927567667044980"}},"colab":{"base_uri":"https://localhost:8080/","height":1000}},"source":["from keras.models import load_model\n","\n","model = load_model('/content/drive/My Drive/Colab Notebooks/Keras_creator/model/cats_and_dogs_small_2.h5')\n","model.summary() # 기억을 되살리기 위해서 모델 구조를 출력합니다"],"execution_count":5,"outputs":[{"output_type":"stream","text":["Using TensorFlow backend.\n"],"name":"stderr"},{"output_type":"display_data","data":{"text/html":["
\n","The default version of TensorFlow in Colab will soon switch to TensorFlow 2.x.
\n","We recommend you upgrade now \n","or ensure your notebook will continue to use TensorFlow 1.x via the %tensorflow_version 1.x
magic:\n","more info.