Skip to content

Commit

Permalink
Fix error
Browse files Browse the repository at this point in the history
  • Loading branch information
bestfw committed Nov 19, 2023
1 parent 39d0ed1 commit 5b404f1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 36 deletions.
30 changes: 6 additions & 24 deletions open-machine-learning-jupyter-book/deep-learning/autoencoder.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -63,28 +63,19 @@
"- Find directions of maximum variance\n",
"\n",
":::{figure} https://static-1300131294.cos.ap-shanghai.myqcloud.com/images/deep-learning/autoencoder/01_PCA1.png\n",
"---\n",
"name: Illustration of PCA 1\n",
"---\n",
"PCA 1\n",
"Illustration of PCA\n",
":::\n",
"\n",
"- Transform features onto directions of maximum variance\n",
"\n",
":::{figure} https://static-1300131294.cos.ap-shanghai.myqcloud.com/images/deep-learning/autoencoder/02_PCA2.png\n",
"---\n",
"name: Illustration of PCA 2\n",
"---\n",
"PCA 2\n",
"Illustration of PCA\n",
":::\n",
"\n",
"- Usually consider a subset of vectors of most variance (dimensionality reduction)\n",
"\n",
":::{figure} https://static-1300131294.cos.ap-shanghai.myqcloud.com/images/deep-learning/autoencoder/03_PCA3.png\n",
"---\n",
"name: Illustration of PCA 3\n",
"---\n",
"PCA 3\n",
"Illustration of PCA\n",
":::"
]
},
Expand All @@ -97,10 +88,7 @@
"Here is an example of a basic fully-connected autoencoder\n",
"\n",
":::{figure} https://static-1300131294.cos.ap-shanghai.myqcloud.com/images/deep-learning/autoencoder/04_simple.png\n",
"---\n",
"name: Illustration of Fully Connected autoencoder\n",
"---\n",
"Simple\n",
"Illustration of Fully Connected autoencoder\n",
":::\n",
"\n",
":::{note}\n",
Expand All @@ -125,21 +113,15 @@
"The difference between regular convolution and transposed convolution can be seen from the following image.\n",
"\n",
":::{figure} https://static-1300131294.cos.ap-shanghai.myqcloud.com/images/deep-learning/autoencoder/05_diff_conv.png\n",
"---\n",
"name: Difference between regular and transposed convolution\n",
"---\n",
"diff\n",
"Difference between regular and transposed convolution\n",
":::\n",
"\n",
"In transposed convolutions, we stride over the output; hence, larger strides will result in larger outputs (opposite to regular convolutions); and we pad the output; hence, larger padding will result in smaller output maps.\n",
"\n",
"So, the whole model consists of two parts, encoder and decoder, and they are composed with regular convolution and transposed convolution respectively.\n",
"\n",
":::{figure} https://static-1300131294.cos.ap-shanghai.myqcloud.com/images/deep-learning/autoencoder/06_convmodel.png\n",
"---\n",
"name: Structure of convoluted autoencoder\n",
"---\n",
"Structure\n",
"Structure of convoluted autoencoder\n",
":::\n",
"\n",
":::{note}\n",
Expand Down
12 changes: 0 additions & 12 deletions open-machine-learning-jupyter-book/deep-learning/cnn.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -615,28 +615,19 @@
"The style image is\n",
"\n",
":::{figure} https://static-1300131294.cos.ap-shanghai.myqcloud.com/images/deep-learning/CNN/starry_night.jpg\n",
"---\n",
"name: Style image starry night\n",
"---\n",
"starry night\n",
":::\n",
"\n",
"The context image is below.\n",
"\n",
":::{figure} https://static-1300131294.cos.ap-shanghai.myqcloud.com/images/deep-learning/CNN/book_cover.jpg\n",
"---\n",
"name: Content image book cover\n",
"---\n",
"book cover\n",
":::\n",
"\n",
"The final result looks like\n",
"\n",
":::{figure} https://static-1300131294.cos.ap-shanghai.myqcloud.com/images/deep-learning/CNN/05_stylenet_ex.png\n",
"---\n",
"name: stylenet final result\n",
"---\n",
"stylenet\n",
":::\n"
]
},
Expand Down Expand Up @@ -888,10 +879,7 @@
"Here are some potential outputs.\n",
"\n",
":::{figure} https://static-1300131294.cos.ap-shanghai.myqcloud.com/images/deep-learning/CNN/06_deepdream_ex.png\n",
"---\n",
"name: Deepdream outputs\n",
"---\n",
"deepdream\n",
":::"
]
},
Expand Down

0 comments on commit 5b404f1

Please sign in to comment.