Skip to content

Commit

Permalink
All work done through Ch09 including EOC assignment.
Browse files Browse the repository at this point in the history
  • Loading branch information
chrismattmann committed Aug 3, 2019
1 parent a66f8ec commit 059efcb
Show file tree
Hide file tree
Showing 7 changed files with 1,796 additions and 51 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,4 @@ logs
aug*.npy
vgg-face
vgg_face_full_urls.csv
vgg-face-1000epochs*
1 change: 1 addition & 0 deletions Listing 9.17-ex9.3.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@
" 1. My model includes all of the suggested improvements, save early stopping (e.g., Augmentation, Regularization, Deeper Architecture, Dropout, and I even added Batch Normalization). \n",
" 2. I added simple predict functions.\n",
" 3. I incorporated ROC curves to understand how well the model is performing per class.\n",
" 4. I ended up learning so much about CIFAR and the tutorial that I fixed [a bug](https://github.com/tensorflow/models/pull/7227) or [two](https://github.com/tensorflow/models/pull/7226) in [Google's Tensorflow Models CIFAR-10 tutorial](https://github.com/tensorflow/models/tree/master/tutorials/image/cifar10).\n",
" \n",
"Enjoy!\n",
"\n",
Expand Down
1,835 changes: 1,787 additions & 48 deletions Listing 9.18-eoc-assign.ipynb

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions checkpoint
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
model_checkpoint_path: "cifar10-cnn-tf1n-ia-dropout-reg-dense-10epochs.ckpt"
all_model_checkpoint_paths: "cifar10-cnn-tf1n-ia-dropout-reg-dense-10epochs.ckpt"
model_checkpoint_path: "vgg-face-1000epochs.ckpt"
all_model_checkpoint_paths: "vgg-face-1000epochs.ckpt"
Binary file added vgg-face-test-data.npy
Binary file not shown.
Binary file added vgg-face-test-labels.npy
Binary file not shown.
6 changes: 5 additions & 1 deletion vgg_create_imgs.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@
from requests.exceptions import ConnectionError
from requests.exceptions import ReadTimeout
from http.client import IncompleteRead
import socket
from socket import timeout

socket.setdefaulttimeout(30)

def fx(df):
for index, row in tqdm(df.iterrows()):
Expand Down Expand Up @@ -41,7 +45,7 @@ def clip_image_and_save(url, bbox, celeb, number):

try:
image = imread(url)
except (AttributeError, HTTPError, ConnectionResetError, ConnectionRefusedError, URLError, ValueError, IncompleteRead) as e:
except (SyntaxError, IndexError, AttributeError, HTTPError, ConnectionResetError, ConnectionRefusedError, URLError, ValueError, IncompleteRead, TimeoutError, timeout) as e:
print('Error writing url: '+url+' skipping. Message: '+str(e))
return

Expand Down

0 comments on commit 059efcb

Please sign in to comment.