Skip to content

Commit

Permalink
chapter 4:
Browse files Browse the repository at this point in the history
- removing deprecated files
- the gcloud sessions are not using the same runtime (so we need to re-download data) so writing outputs to gdrive to make sure things are running and outputs are accessible for subsequent notebooks in colab
- renaming 4/1 notebook - since it had underscores instead of hyphens, the colab link in the notebook was not working
- xception added to imports for notebook 1, since it is part of the model_maker
- PracticalDL#163 - fixed
- PracticalDL#164 - fixed
- PracticalDL#169 - fixed
- metric='angular' added for annoy as default arg will be removed in subsequent releases
- removing a duplicate PCA + Annoy section
- PracticalDL#170 - fixed
- time is a negligible factor here, and we do not need it in the plots (since we are using optimised accuracy calculation using numpy from issue 170) - hence, modifying the plots
- removing matplotlib.style.use('seaborn') since it is deprecated
- the final fine-tuning notebook uses Caltech256 features (as per the book), which do not exist, since fine-tuning was done on Caltech101 - hence, renaming those files to caltech101. Can we retain caltech101 to test?
- PracticalDL#167 - fixed, if the above is okay
- formatted the code

chapter 5:
- write_grads and batch_size params have been removed from callback, or will be removed in subsequent releases
- PracticalDL#174 - not able to replicate this issue
- added a pointer to the notebook that suggests that for tensorboard to work without a 403 Forbidden error on Colab, cookies need to be allowed (I faced this issue)
- notebook 3 in chapter 5 is the exact same as notebook 2 in chapter 2 - replaced the file directly
- the autokeras notebook in Colab is named autokeras-error.ipynb - where can we change this to autokeras.ipynb?
- fixing accuracy score calculation in the autokeras notebook
- formatted the code

chapter 6:
- including the download_sample_image function
- formatted the code
  • Loading branch information
manavmoorthy committed Aug 28, 2023
1 parent e1c1a62 commit 90d5a6f
Show file tree
Hide file tree
Showing 20 changed files with 37,534 additions and 6,231 deletions.
390 changes: 195 additions & 195 deletions code/chapter-3/2-analyzing-the-results.ipynb

Large diffs are not rendered by default.

594 changes: 0 additions & 594 deletions code/chapter-4/1-feature-extraction-deprecated.ipynb

This file was deleted.

11,421 changes: 11,421 additions & 0 deletions code/chapter-4/1-feature-extraction.ipynb

Large diffs are not rendered by default.

1,185 changes: 0 additions & 1,185 deletions code/chapter-4/1_feature_extraction.ipynb

This file was deleted.

5,756 changes: 5,552 additions & 204 deletions code/chapter-4/2-similarity-search-level-1.ipynb

Large diffs are not rendered by default.

6,260 changes: 5,984 additions & 276 deletions code/chapter-4/2-similarity-search-level-2.ipynb

Large diffs are not rendered by default.

5,375 changes: 5,287 additions & 88 deletions code/chapter-4/2-similarity-search-level-3.ipynb

Large diffs are not rendered by default.

6,087 changes: 5,767 additions & 320 deletions code/chapter-4/3-reduce-feature-length-with-pca.ipynb

Large diffs are not rendered by default.

977 changes: 813 additions & 164 deletions code/chapter-4/4-improving-accuracy-with-fine-tuning.ipynb

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion code/chapter-4/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ Like Google Reverse Image Search, we explore how one can use embeddings — a co
Run the following command prior to running the scripts in this directory:

`$ pip install annoy -U`
`$ pip install nmslib -U`
`$ pip install falconn -U`

## Code

Expand All @@ -23,4 +25,4 @@ In this portion of the chapter, we will find the least accurate (worst) performi

## Data

We will be using the Caltech101 dataset. Please download the [Caltech101](http://www.vision.caltech.edu/Image_Datasets/Caltech101/101_ObjectCategories.tar.gz) dataset and place it in a `caltech101` directory.
We will be using the [Caltech101](http://www.vision.caltech.edu/Image_Datasets/Caltech101/101_ObjectCategories.tar.gz) dataset. The commands for downloading the dataset can be found in the notebooks.
960 changes: 732 additions & 228 deletions code/chapter-5/1-develop-tool.ipynb

Large diffs are not rendered by default.

1,431 changes: 0 additions & 1,431 deletions code/chapter-5/1_develop_tool.ipynb

This file was deleted.

278 changes: 278 additions & 0 deletions code/chapter-5/3-colab-what-does-my-neural-network-think.ipynb

Large diffs are not rendered by default.

329 changes: 0 additions & 329 deletions code/chapter-5/3-colab-what-does-my-neural-network-think.ipynb.ipynb

This file was deleted.

Loading

0 comments on commit 90d5a6f

Please sign in to comment.