flashfaster commited on
Commit
a69da77
·
1 Parent(s): 34fe474

Removed shape from image

Browse files
Files changed (1) hide show
  1. pets.ipynb +12 -56
pets.ipynb CHANGED
@@ -9,7 +9,7 @@
9
  },
10
  {
11
  "cell_type": "code",
12
- "execution_count": 5,
13
  "metadata": {},
14
  "outputs": [],
15
  "source": [
@@ -24,7 +24,7 @@
24
  },
25
  {
26
  "cell_type": "code",
27
- "execution_count": 6,
28
  "metadata": {},
29
  "outputs": [
30
  {
@@ -35,7 +35,7 @@
35
  "PILImage mode=RGB size=192x108"
36
  ]
37
  },
38
- "execution_count": 6,
39
  "metadata": {},
40
  "output_type": "execute_result"
41
  }
@@ -48,7 +48,7 @@
48
  },
49
  {
50
  "cell_type": "code",
51
- "execution_count": 7,
52
  "metadata": {},
53
  "outputs": [],
54
  "source": [
@@ -58,7 +58,7 @@
58
  },
59
  {
60
  "cell_type": "code",
61
- "execution_count": 8,
62
  "metadata": {},
63
  "outputs": [
64
  {
@@ -104,7 +104,7 @@
104
  "('False', tensor(0), tensor([1.0000e+00, 9.8498e-07]))"
105
  ]
106
  },
107
- "execution_count": 8,
108
  "metadata": {},
109
  "output_type": "execute_result"
110
  }
@@ -115,7 +115,7 @@
115
  },
116
  {
117
  "cell_type": "code",
118
- "execution_count": 9,
119
  "metadata": {},
120
  "outputs": [],
121
  "source": [
@@ -129,7 +129,7 @@
129
  },
130
  {
131
  "cell_type": "code",
132
- "execution_count": 10,
133
  "metadata": {},
134
  "outputs": [
135
  {
@@ -161,14 +161,7 @@
161
  },
162
  {
163
  "data": {
164
- "text/html": [
165
- "\n",
166
- " <div>\n",
167
- " <progress value='0' class='' max='1' style='width:300px; height:20px; vertical-align: middle;'></progress>\n",
168
- " 0.00% [0/1 00:00&lt;?]\n",
169
- " </div>\n",
170
- " "
171
- ],
172
  "text/plain": [
173
  "<IPython.core.display.HTML object>"
174
  ]
@@ -182,7 +175,7 @@
182
  "{'Dog': 0.9999990463256836, 'Cat': 9.849827620200813e-07}"
183
  ]
184
  },
185
- "execution_count": 10,
186
  "metadata": {},
187
  "output_type": "execute_result"
188
  }
@@ -209,7 +202,7 @@
209
  "data": {
210
  "text/plain": []
211
  },
212
- "execution_count": 11,
213
  "metadata": {},
214
  "output_type": "execute_result"
215
  },
@@ -240,43 +233,6 @@
240
  "metadata": {},
241
  "output_type": "display_data"
242
  },
243
- {
244
- "data": {
245
- "text/html": [],
246
- "text/plain": [
247
- "<IPython.core.display.HTML object>"
248
- ]
249
- },
250
- "metadata": {},
251
- "output_type": "display_data"
252
- },
253
- {
254
- "data": {
255
- "text/html": [
256
- "\n",
257
- "<style>\n",
258
- " /* Turns off some styling */\n",
259
- " progress {\n",
260
- " /* gets rid of default border in Firefox and Opera. */\n",
261
- " border: none;\n",
262
- " /* Needs to be in here for Safari polyfill so background images work as expected. */\n",
263
- " background-size: auto;\n",
264
- " }\n",
265
- " progress:not([value]), progress:not([value])::-webkit-progress-bar {\n",
266
- " background: repeating-linear-gradient(45deg, #7e7e7e, #7e7e7e 10px, #5c5c5c 10px, #5c5c5c 20px);\n",
267
- " }\n",
268
- " .progress-bar-interrupted, .progress-bar-interrupted::-webkit-progress-bar {\n",
269
- " background: #F44336;\n",
270
- " }\n",
271
- "</style>\n"
272
- ],
273
- "text/plain": [
274
- "<IPython.core.display.HTML object>"
275
- ]
276
- },
277
- "metadata": {},
278
- "output_type": "display_data"
279
- },
280
  {
281
  "data": {
282
  "text/html": [],
@@ -290,7 +246,7 @@
290
  ],
291
  "source": [
292
  "#|export\n",
293
- "image = gr.Image(shape=(192, 192))\n",
294
  "label = gr.Label()\n",
295
  "examples = ['dog.jpeg', 'cat.jpeg', 'wot.jpeg']\n",
296
  "\n",
 
9
  },
10
  {
11
  "cell_type": "code",
12
+ "execution_count": 1,
13
  "metadata": {},
14
  "outputs": [],
15
  "source": [
 
24
  },
25
  {
26
  "cell_type": "code",
27
+ "execution_count": 2,
28
  "metadata": {},
29
  "outputs": [
30
  {
 
35
  "PILImage mode=RGB size=192x108"
36
  ]
37
  },
38
+ "execution_count": 2,
39
  "metadata": {},
40
  "output_type": "execute_result"
41
  }
 
48
  },
49
  {
50
  "cell_type": "code",
51
+ "execution_count": 3,
52
  "metadata": {},
53
  "outputs": [],
54
  "source": [
 
58
  },
59
  {
60
  "cell_type": "code",
61
+ "execution_count": 4,
62
  "metadata": {},
63
  "outputs": [
64
  {
 
104
  "('False', tensor(0), tensor([1.0000e+00, 9.8498e-07]))"
105
  ]
106
  },
107
+ "execution_count": 4,
108
  "metadata": {},
109
  "output_type": "execute_result"
110
  }
 
115
  },
116
  {
117
  "cell_type": "code",
118
+ "execution_count": 5,
119
  "metadata": {},
120
  "outputs": [],
121
  "source": [
 
129
  },
130
  {
131
  "cell_type": "code",
132
+ "execution_count": 6,
133
  "metadata": {},
134
  "outputs": [
135
  {
 
161
  },
162
  {
163
  "data": {
164
+ "text/html": [],
 
 
 
 
 
 
 
165
  "text/plain": [
166
  "<IPython.core.display.HTML object>"
167
  ]
 
175
  "{'Dog': 0.9999990463256836, 'Cat': 9.849827620200813e-07}"
176
  ]
177
  },
178
+ "execution_count": 6,
179
  "metadata": {},
180
  "output_type": "execute_result"
181
  }
 
202
  "data": {
203
  "text/plain": []
204
  },
205
+ "execution_count": 7,
206
  "metadata": {},
207
  "output_type": "execute_result"
208
  },
 
233
  "metadata": {},
234
  "output_type": "display_data"
235
  },
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
236
  {
237
  "data": {
238
  "text/html": [],
 
246
  ],
247
  "source": [
248
  "#|export\n",
249
+ "image = gr.Image()\n",
250
  "label = gr.Label()\n",
251
  "examples = ['dog.jpeg', 'cat.jpeg', 'wot.jpeg']\n",
252
  "\n",