Stephen Lee commited on
Commit
76e47ef
·
1 Parent(s): 599e240

notebook stuff

Browse files
.gitignore ADDED
@@ -0,0 +1 @@
 
 
1
+ persons
.ipynb_checkpoints/Untitled-checkpoint.ipynb ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "cells": [],
3
+ "metadata": {},
4
+ "nbformat": 4,
5
+ "nbformat_minor": 5
6
+ }
.ipynb_checkpoints/elon_or_not-checkpoint.ipynb ADDED
The diff for this file is too large to render. See raw diff
 
Untitled.ipynb ADDED
@@ -0,0 +1,241 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "cells": [
3
+ {
4
+ "cell_type": "code",
5
+ "execution_count": 2,
6
+ "id": "aed92b5f",
7
+ "metadata": {},
8
+ "outputs": [
9
+ {
10
+ "name": "stdout",
11
+ "output_type": "stream",
12
+ "text": [
13
+ "Downloading a new version of this dataset...\n"
14
+ ]
15
+ },
16
+ {
17
+ "data": {
18
+ "text/html": [
19
+ "\n",
20
+ "<style>\n",
21
+ " /* Turns off some styling */\n",
22
+ " progress {\n",
23
+ " /* gets rid of default border in Firefox and Opera. */\n",
24
+ " border: none;\n",
25
+ " /* Needs to be in here for Safari polyfill so background images work as expected. */\n",
26
+ " background-size: auto;\n",
27
+ " }\n",
28
+ " progress:not([value]), progress:not([value])::-webkit-progress-bar {\n",
29
+ " background: repeating-linear-gradient(45deg, #7e7e7e, #7e7e7e 10px, #5c5c5c 10px, #5c5c5c 20px);\n",
30
+ " }\n",
31
+ " .progress-bar-interrupted, .progress-bar-interrupted::-webkit-progress-bar {\n",
32
+ " background: #F44336;\n",
33
+ " }\n",
34
+ "</style>\n"
35
+ ],
36
+ "text/plain": [
37
+ "<IPython.core.display.HTML object>"
38
+ ]
39
+ },
40
+ "metadata": {},
41
+ "output_type": "display_data"
42
+ },
43
+ {
44
+ "data": {
45
+ "text/html": [
46
+ "\n",
47
+ " <div>\n",
48
+ " <progress value='811712512' class='' max='811706944' style='width:300px; height:20px; vertical-align: middle;'></progress>\n",
49
+ " 100.00% [811712512/811706944 07:25&lt;00:00]\n",
50
+ " </div>\n",
51
+ " "
52
+ ],
53
+ "text/plain": [
54
+ "<IPython.core.display.HTML object>"
55
+ ]
56
+ },
57
+ "metadata": {},
58
+ "output_type": "display_data"
59
+ },
60
+ {
61
+ "data": {
62
+ "text/plain": [
63
+ "Path('/root/.fastai/data/oxford-iiit-pet/images')"
64
+ ]
65
+ },
66
+ "execution_count": 2,
67
+ "metadata": {},
68
+ "output_type": "execute_result"
69
+ }
70
+ ],
71
+ "source": [
72
+ "from fastai.vision.all import *\n",
73
+ "path = untar_data(URLs.PETS)/'images'\n"
74
+ ]
75
+ },
76
+ {
77
+ "cell_type": "code",
78
+ "execution_count": 3,
79
+ "id": "b090c8f3",
80
+ "metadata": {},
81
+ "outputs": [
82
+ {
83
+ "name": "stderr",
84
+ "output_type": "stream",
85
+ "text": [
86
+ "/root/mambaforge/lib/python3.10/site-packages/torchvision/models/_utils.py:208: UserWarning: The parameter 'pretrained' is deprecated since 0.13 and may be removed in the future, please use 'weights' instead.\n",
87
+ " warnings.warn(\n",
88
+ "/root/mambaforge/lib/python3.10/site-packages/torchvision/models/_utils.py:223: UserWarning: Arguments other than a weight enum or `None` for 'weights' are deprecated since 0.13 and may be removed in the future. The current behavior is equivalent to passing `weights=ResNet34_Weights.IMAGENET1K_V1`. You can also use `weights=ResNet34_Weights.DEFAULT` to get the most up-to-date weights.\n",
89
+ " warnings.warn(msg)\n"
90
+ ]
91
+ },
92
+ {
93
+ "data": {
94
+ "text/html": [
95
+ "\n",
96
+ "<style>\n",
97
+ " /* Turns off some styling */\n",
98
+ " progress {\n",
99
+ " /* gets rid of default border in Firefox and Opera. */\n",
100
+ " border: none;\n",
101
+ " /* Needs to be in here for Safari polyfill so background images work as expected. */\n",
102
+ " background-size: auto;\n",
103
+ " }\n",
104
+ " progress:not([value]), progress:not([value])::-webkit-progress-bar {\n",
105
+ " background: repeating-linear-gradient(45deg, #7e7e7e, #7e7e7e 10px, #5c5c5c 10px, #5c5c5c 20px);\n",
106
+ " }\n",
107
+ " .progress-bar-interrupted, .progress-bar-interrupted::-webkit-progress-bar {\n",
108
+ " background: #F44336;\n",
109
+ " }\n",
110
+ "</style>\n"
111
+ ],
112
+ "text/plain": [
113
+ "<IPython.core.display.HTML object>"
114
+ ]
115
+ },
116
+ "metadata": {},
117
+ "output_type": "display_data"
118
+ },
119
+ {
120
+ "data": {
121
+ "text/html": [
122
+ "<table border=\"1\" class=\"dataframe\">\n",
123
+ " <thead>\n",
124
+ " <tr style=\"text-align: left;\">\n",
125
+ " <th>epoch</th>\n",
126
+ " <th>train_loss</th>\n",
127
+ " <th>valid_loss</th>\n",
128
+ " <th>error_rate</th>\n",
129
+ " <th>time</th>\n",
130
+ " </tr>\n",
131
+ " </thead>\n",
132
+ " <tbody>\n",
133
+ " <tr>\n",
134
+ " <td>0</td>\n",
135
+ " <td>0.168562</td>\n",
136
+ " <td>0.010664</td>\n",
137
+ " <td>0.002706</td>\n",
138
+ " <td>25:44</td>\n",
139
+ " </tr>\n",
140
+ " </tbody>\n",
141
+ "</table>"
142
+ ],
143
+ "text/plain": [
144
+ "<IPython.core.display.HTML object>"
145
+ ]
146
+ },
147
+ "metadata": {},
148
+ "output_type": "display_data"
149
+ },
150
+ {
151
+ "data": {
152
+ "text/html": [
153
+ "\n",
154
+ "<style>\n",
155
+ " /* Turns off some styling */\n",
156
+ " progress {\n",
157
+ " /* gets rid of default border in Firefox and Opera. */\n",
158
+ " border: none;\n",
159
+ " /* Needs to be in here for Safari polyfill so background images work as expected. */\n",
160
+ " background-size: auto;\n",
161
+ " }\n",
162
+ " progress:not([value]), progress:not([value])::-webkit-progress-bar {\n",
163
+ " background: repeating-linear-gradient(45deg, #7e7e7e, #7e7e7e 10px, #5c5c5c 10px, #5c5c5c 20px);\n",
164
+ " }\n",
165
+ " .progress-bar-interrupted, .progress-bar-interrupted::-webkit-progress-bar {\n",
166
+ " background: #F44336;\n",
167
+ " }\n",
168
+ "</style>\n"
169
+ ],
170
+ "text/plain": [
171
+ "<IPython.core.display.HTML object>"
172
+ ]
173
+ },
174
+ "metadata": {},
175
+ "output_type": "display_data"
176
+ },
177
+ {
178
+ "data": {
179
+ "text/html": [
180
+ "<table border=\"1\" class=\"dataframe\">\n",
181
+ " <thead>\n",
182
+ " <tr style=\"text-align: left;\">\n",
183
+ " <th>epoch</th>\n",
184
+ " <th>train_loss</th>\n",
185
+ " <th>valid_loss</th>\n",
186
+ " <th>error_rate</th>\n",
187
+ " <th>time</th>\n",
188
+ " </tr>\n",
189
+ " </thead>\n",
190
+ " <tbody>\n",
191
+ " <tr>\n",
192
+ " <td>0</td>\n",
193
+ " <td>0.057169</td>\n",
194
+ " <td>0.014913</td>\n",
195
+ " <td>0.004060</td>\n",
196
+ " <td>4:12:40</td>\n",
197
+ " </tr>\n",
198
+ " </tbody>\n",
199
+ "</table>"
200
+ ],
201
+ "text/plain": [
202
+ "<IPython.core.display.HTML object>"
203
+ ]
204
+ },
205
+ "metadata": {},
206
+ "output_type": "display_data"
207
+ }
208
+ ],
209
+ "source": []
210
+ },
211
+ {
212
+ "cell_type": "code",
213
+ "execution_count": null,
214
+ "id": "0a2f27f4",
215
+ "metadata": {},
216
+ "outputs": [],
217
+ "source": []
218
+ }
219
+ ],
220
+ "metadata": {
221
+ "kernelspec": {
222
+ "display_name": "Python 3 (ipykernel)",
223
+ "language": "python",
224
+ "name": "python3"
225
+ },
226
+ "language_info": {
227
+ "codemirror_mode": {
228
+ "name": "ipython",
229
+ "version": 3
230
+ },
231
+ "file_extension": ".py",
232
+ "mimetype": "text/x-python",
233
+ "name": "python",
234
+ "nbconvert_exporter": "python",
235
+ "pygments_lexer": "ipython3",
236
+ "version": "3.10.8"
237
+ }
238
+ },
239
+ "nbformat": 4,
240
+ "nbformat_minor": 5
241
+ }
bears/test_grizzly.jpg DELETED
Binary file (874 kB)
 
bears/test_teddy.jpg DELETED
Binary file (82.1 kB)
 
elon_or_not.ipynb ADDED
The diff for this file is too large to render. See raw diff
 
random.jpeg ADDED
serious_elon.jpeg ADDED