Skip to content

Commit

Permalink
Created using Colaboratory
Browse files Browse the repository at this point in the history
  • Loading branch information
sthalles committed Apr 25, 2020
1 parent c057471 commit 8ae7116
Showing 1 changed file with 69 additions and 10 deletions.
79 changes: 69 additions & 10 deletions feature_eval/linear_feature_eval.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -42,38 +42,82 @@
"metadata": {
"id": "WSgRE1CcLqdS",
"colab_type": "code",
"colab": {}
"colab": {
"base_uri": "https://localhost:8080/",
"height": 163
},
"outputId": "60a2169b-a652-4d4b-e441-18a1a77ba53a"
},
"source": [
"!pip install gdown"
],
"execution_count": 0,
"outputs": []
"execution_count": 4,
"outputs": [
{
"output_type": "stream",
"text": [
"Requirement already satisfied: gdown in /usr/local/lib/python3.6/dist-packages (3.6.4)\n",
"Requirement already satisfied: requests in /usr/local/lib/python3.6/dist-packages (from gdown) (2.21.0)\n",
"Requirement already satisfied: tqdm in /usr/local/lib/python3.6/dist-packages (from gdown) (4.38.0)\n",
"Requirement already satisfied: six in /usr/local/lib/python3.6/dist-packages (from gdown) (1.12.0)\n",
"Requirement already satisfied: urllib3<1.25,>=1.21.1 in /usr/local/lib/python3.6/dist-packages (from requests->gdown) (1.24.3)\n",
"Requirement already satisfied: idna<2.9,>=2.5 in /usr/local/lib/python3.6/dist-packages (from requests->gdown) (2.8)\n",
"Requirement already satisfied: certifi>=2017.4.17 in /usr/local/lib/python3.6/dist-packages (from requests->gdown) (2020.4.5.1)\n",
"Requirement already satisfied: chardet<3.1.0,>=3.0.2 in /usr/local/lib/python3.6/dist-packages (from requests->gdown) (3.0.4)\n"
],
"name": "stdout"
}
]
},
{
"cell_type": "code",
"metadata": {
"id": "G7YMxsvEZMrX",
"colab_type": "code",
"colab": {}
"colab": {
"base_uri": "https://localhost:8080/",
"height": 219
},
"outputId": "26a6b27f-320c-4562-9b7c-f8b9262f6033"
},
"source": [
"folder_name = 'Mar14_05-52-52_thallessilva'\n",
"\n",
"# !gdown https://drive.google.com/uc?id=12kKgvo4h41G9qnDdhDnZXFlR5_aqvaVR # ResNet 18 --> 40 epochs trained\n",
"!gdown https://drive.google.com/uc?id=1LjuZ1RmhotrnugprRQc2Exk0EbQHMJhL # ResNet 18 --> 80 epochs trained\n",
"# !gdown https://drive.google.com/file/d/1c4eVon0sUd-ChVhH6XMpF6nCngNJsAPk/view?usp=sharing # ResNet 18 --> 40 epochs trained\n",
"!gdown https://drive.google.com/file/d/1L0yoeY9i2mzDcj69P4slTWb-cfr3PyoT/view?usp=sharing # ResNet 18 --> 80 epochs trained\n",
"!unzip Mar14_05-52-52_thallessilva\n",
"!ls"
],
"execution_count": 0,
"outputs": []
"execution_count": 5,
"outputs": [
{
"output_type": "stream",
"text": [
"unzip: cannot find or open Mar14_05-52-52_thallessilva, Mar14_05-52-52_thallessilva.zip or Mar14_05-52-52_thallessilva.ZIP.\n",
" sample_data 'view?usp=sharing'\n",
"/usr/local/lib/python2.7/dist-packages/gdown/parse_url.py:31: UserWarning: You specified Google Drive Link but it is not the correct link to download the file. Maybe you should try: https://drive.google.com/uc?id=1L0yoeY9i2mzDcj69P4slTWb-cfr3PyoT\n",
" .format(url='https://drive.google.com/uc?id={}'.format(file_id))\n",
"Downloading...\n",
"From: https://drive.google.com/file/d/1L0yoeY9i2mzDcj69P4slTWb-cfr3PyoT/view?usp=sharing\n",
"To: /content/view?usp=sharing\n",
"69.7kB [00:00, 613kB/s]\n",
"unzip: cannot find or open Mar14_05-52-52_thallessilva, Mar14_05-52-52_thallessilva.zip or Mar14_05-52-52_thallessilva.ZIP.\n",
" sample_data 'view?usp=sharing'\n"
],
"name": "stdout"
}
]
},
{
"cell_type": "code",
"metadata": {
"id": "vEoblAn6RsO7",
"colab_type": "code",
"colab": {}
"colab": {
"base_uri": "https://localhost:8080/",
"height": 174
},
"outputId": "f32e47cc-6195-4b92-a1aa-ad4328e39269"
},
"source": [
"# download and extract stl10\n",
Expand All @@ -82,7 +126,22 @@
"!ls"
],
"execution_count": 0,
"outputs": []
"outputs": [
{
"output_type": "stream",
"text": [
"--2020-04-25 20:09:26-- http://ai.stanford.edu/~acoates/stl10/stl10_binary.tar.gz\n",
"Resolving ai.stanford.edu (ai.stanford.edu)... 171.64.68.10\n",
"Connecting to ai.stanford.edu (ai.stanford.edu)|171.64.68.10|:80... connected.\n",
"HTTP request sent, awaiting response... 200 OK\n",
"Length: 2640397119 (2.5G) [application/x-gzip]\n",
"Saving to: ‘stl10_binary.tar.gz’\n",
"\n",
"stl10_binary.tar.gz 62%[===========> ] 1.54G 19.3MB/s eta 51s "
],
"name": "stdout"
}
]
},
{
"cell_type": "code",
Expand Down

0 comments on commit 8ae7116

Please sign in to comment.