File size: 7,030 Bytes
f4195e4 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 |
<!DOCTYPE html>
<html lang="en">
<head>
<style>
/*
body {
font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";
line-height: 1.5;
color: rgb(36, 41, 47);
font-size: 16px;
line-height: 24px;
}
h1, h2 {
font-weight: 600;
border-bottom-color: rgb(216, 222, 228);
border-bottom-style: solid;
border-bottom-width: 1px;
margin-top: 24px;
}
h1 {
font-size: 32px;
line-height: 40px;
padding-bottom: 9.6px;
}
h2 {
font-size: 24px;
line-height: 30px;
padding-bottom: 7.2px;
}
table {
border-collapse: collapse;
border-color: rgb(128, 128, 128);
}
table, tr {
border-top: 1px solid hsla(210,18%,87%,1);
}
tbody {
display: table-row-group;
vertical-align: middle;
border-color: inherit;
}
*/
body {
box-sizing: border-box;
min-width: 200px;
max-width: 1110px;
margin: 0 auto;
padding: 45px;
}
@media (prefers-color-scheme: dark) {
body {
background-color: #0d1117;
}
}
.github-fork-ribbon:before {
background-color: #121612;
}
.banner-image {
border-radius: 50px;
}
</style>
<!-- Google tag (gtag.js) -->
<meta charset="utf-8">
<title>
Animated AI
</title>
<meta content="width=device-width, initial-scale=1.0" name="viewport">
</head>
<body>
<article class="markdown-body">
<h1>
<div>
<img class="banner-image" src="rick.jpg" width="100%">
</div>
</h1>
<p>
I'm creating animations and instructional videos about neural networks.
Check out my
<a>
Patreon
</a>
and
<a>
YouTube channel
</a>
!
</p>
<h2>
Convolution
</h2>
<h3>
The Basic Algorithm
</h3>
Watch the companion YouTube video:
<a>
Fundamental Algorithm of Convolution in Neural Networks
</a>
.
<img alt="The process of convolution in neural networks with a 3x3 kernel size" height="auto" src="rick.jpg" width="960">
<h3>
Padding
</h3>
Companion video:
<a>
Convolution Padding - Neural Networks
</a>
<table>
<tbody>
<tr>
<td>
<img alt="The process of convolution in neural networks with a 3x3 kernel size" height="auto" src="rick.jpg" width="480">
</td>
<td>
<img alt="The process of convolution in neural networks with a 3x3 kernel size and a padding of 'SAME', i.e., 1 pixel on the top, bottom, left, and right." height="auto" src="rick.jpg" width="480">
</td>
</tr>
<tr>
<td>
No Padding AKA "Valid"
</td>
<td>
[1,1,1,1] Padding AKA "Same"
</td>
</tr>
</tbody>
</table>
<h3>
Stride
</h3>
Companion video:
<a>
Stride - Convolution in Neural Networks
</a>
<table>
<thead>
<tr>
<th>
Stride 1
</th>
<th>
Stride 2
</th>
</tr>
</thead>
<tbody>
<tr>
<td>
<img alt="The process of convolution in neural networks with a 3x3 kernel size" height="auto" src="rick.jpg" width="480">
</td>
<td>
<img alt="The process of convolution in neural networks with a 3x3 kernel size and a stride of 2x2" height="auto" src="rick.jpg" width="480">
</td>
</tr>
<tr>
<td>
No Padding AKA "Valid"; Stride of 1
</td>
<td>
No Padding AKA "Valid"; Stride of 2
</td>
</tr>
<tr>
<td>
<img height="auto" src="rick.jpg" width="480">
</td>
<td>
<img alt="The process of convolution in neural networks with a 3x3 kernel size, a stride of 2x2, and a padding of 'SAME', i.e., 1 pixel on the top, bottom, left, and right." height="auto" src="rick.jpg" width="480">
</td>
</tr>
</tbody>
</table>
<h3>
Groups, Depthwise, and Depthwise-Separable
</h3>
Watch the companion YouTube video:
<a>
Groups, Depthwise, and Depthwise-Separable Convolution (Neural Networks)
</a>
.
<table>
<tbody>
<tr>
<td>
<img alt="The process of convolution in neural networks with a 3x3 kernel size" height="auto" src="rick.jpg" width="480">
</td>
<td>
<img alt="The process of convolution in neural networks with a 3x3 kernel size and 2 groups" height="auto" src="rick.jpg" width="480">
</td>
</tr>
<tr>
<td>
1 Group
</td>
<td>
2 Groups
</td>
</tr>
<tr>
<td>
<img alt="The process of convolution in neural networks with a 3x3 kernel size and 8 groups making it a depthwise convolution" height="auto" src="rick.jpg" width="480">
</td>
<td>
<img alt="A depthwise convolution layer followed by a pointwise convolution layer making the combined process a depthwise-separable convolution" height="auto" src="rick.jpg" width="480">
</td>
</tr>
<tr>
<td>
Depthwise (8 Groups)
</td>
<td>
Depthwise-separable (8 Groups followed by pointwise)
</td>
</tr>
</tbody>
</table>
<h2 id="pixel-shuffle">
Pixel Shuffle
</h2>
Watch the companion YouTube video:
<a>
Pixel Shuffle - Changing Resolution with Style
</a>
<h3>
2x2 Block Size
</h3>
<table>
<tbody>
<tr>
<td>
<img alt="Pixel shuffle animation in neural networks with a block size of 2x2" height="auto" src="rick.jpg" width="480">
</td>
<td>
<img alt="Pixel unshuffle animation in neural networks with a block size of 2x2" height="auto" src="rick.jpg" width="480">
</td>
</tr>
<tr>
<td>
2x2 Pixel Shuffle
</td>
<td>
2x2 Pixel Unshuffle
</td>
</tr>
<tr>
<td colspan="2">
<img alt="Pixel shuffle and unshuffle in neural networks with a block size of 2x2 looping animation" height="auto" src="rick.jpg" width="960">
</td>
</tr>
<tr>
<td colspan="2">
2x2 Pixel Shuffle/Unshuffle Loop
</td>
</tr>
</tbody>
</table>
<h3>
3x3 Block Size
</h3>
<table>
<tbody>
<tr>
<td>
<img alt="Pixel shuffle animation in neural networks with a block size of 3x3" height="auto" src="rick.jpg" width="480">
</td>
<td>
<img alt="Pixel unshuffle animation in neural networks with a block size of 3x3" height="auto" src="rick.jpg" width="480">
</td>
</tr>
<tr>
<td>
3x3 Pixel Shuffle
</td>
<td>
3x3 Pixel Unshuffle
</td>
</tr>
<tr>
<td colspan="2">
<img alt="Pixel shuffle and unshuffle in neural networks with a block size of 3x3 looping animation" height="auto" src="rick.jpg" width="960">
</td>
</tr>
<tr>
<td colspan="2">
3x3 Pixel Shuffle/Unshuffle Loop
</td>
</tr>
</tbody>
</table>
<h2>
</h2>
<p>
Licensed under the
<a>
MIT License
</a>
</p>
</article>
</body>
</html>
|