Skip to content

Commit

Permalink
Cleaned up ResNet v8 classifier
Browse files Browse the repository at this point in the history
  • Loading branch information
AnanthVivekanand committed Dec 7, 2020
1 parent ceaa0db commit 6c539e4
Show file tree
Hide file tree
Showing 5 changed files with 1,492 additions and 765 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,15 +96,7 @@
"id": "phcY5PRevHqi"
},
"outputs": [],
"source": [
"#with open('/content/drive/My Drive/wavenet-test/features.pickle', 'rb') as handle:\n",
"# features = pickle.load(handle)\n",
" \n",
"#with open('/content/drive/My Drive/wavenet-test/labels.pickle', 'rb') as handle:\n",
"# labels = pickle.load(handle)\n",
"\n",
"#!cp '/content/drive/My Drive/wavenet-test/US8K.tar' ."
]
"source": []
},
{
"cell_type": "code",
Expand Down Expand Up @@ -270,9 +262,6 @@
" x.set_shape([4, 341, 513, 2])\n",
" return x, y\n",
"\n",
"#from sklearn.model_selection import train_test_split \n",
"#x_train, x_test, y_train, y_test = train_test_split(all_X, all_Y, test_size=0.2, random_state = 42)\n",
"\n",
"x_train = []\n",
"x_test = []\n",
"y_train = []\n",
Expand Down Expand Up @@ -325,8 +314,6 @@
"\n",
" x = np.array(x)\n",
" x = np.swapaxes(x, 1, 2)\n",
" #x = tf.convert_to_tensor(x)\n",
" #x.set_shape([341, 513, 2])\n",
" y = np.array(y).astype(int)\n",
" res = (x,y)\n",
" #print (res)\n",
Expand Down Expand Up @@ -356,8 +343,7 @@
},
"outputs": [],
"source": [
"model = create_new_model()\n",
"#model = load_model(9, 32, 2, \"./drive/My Drive/wavenet-test/new2/9_32_2_skipconnections_customdropout_run2/\")"
"model = create_new_model()"
]
},
{
Expand Down

Large diffs are not rendered by default.

733 changes: 0 additions & 733 deletions training/Attempt_8_22khz_ResNet.ipynb

This file was deleted.

18 changes: 2 additions & 16 deletions training/ResNet_classifier_from_scratch.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -96,15 +96,7 @@
"id": "phcY5PRevHqi"
},
"outputs": [],
"source": [
"#with open('/content/drive/My Drive/wavenet-test/features.pickle', 'rb') as handle:\n",
"# features = pickle.load(handle)\n",
" \n",
"#with open('/content/drive/My Drive/wavenet-test/labels.pickle', 'rb') as handle:\n",
"# labels = pickle.load(handle)\n",
"\n",
"#!cp '/content/drive/My Drive/wavenet-test/US8K.tar' ."
]
"source": []
},
{
"cell_type": "code",
Expand Down Expand Up @@ -270,9 +262,6 @@
" x.set_shape([4, 341, 513, 2])\n",
" return x, y\n",
"\n",
"#from sklearn.model_selection import train_test_split \n",
"#x_train, x_test, y_train, y_test = train_test_split(all_X, all_Y, test_size=0.2, random_state = 42)\n",
"\n",
"x_train = []\n",
"x_test = []\n",
"y_train = []\n",
Expand Down Expand Up @@ -325,8 +314,6 @@
"\n",
" x = np.array(x)\n",
" x = np.swapaxes(x, 1, 2)\n",
" #x = tf.convert_to_tensor(x)\n",
" #x.set_shape([341, 513, 2])\n",
" y = np.array(y).astype(int)\n",
" res = (x,y)\n",
" #print (res)\n",
Expand Down Expand Up @@ -356,8 +343,7 @@
},
"outputs": [],
"source": [
"model = create_new_model()\n",
"#model = load_model(9, 32, 2, \"./drive/My Drive/wavenet-test/new2/9_32_2_skipconnections_customdropout_run2/\")"
"model = create_new_model()"
]
},
{
Expand Down
744 changes: 744 additions & 0 deletions training/ResNet_classifier_transfer_learning.ipynb

Large diffs are not rendered by default.

0 comments on commit 6c539e4

Please sign in to comment.