geekyrakshit commited on
Commit
fdbe404
1 Parent(s): 246dd98

updated notebook

Browse files
Files changed (2) hide show
  1. .gitignore +1 -0
  2. notebooks/enhance_me_train.ipynb +10 -0
.gitignore CHANGED
@@ -130,3 +130,4 @@ dmypy.json
130
 
131
  # Datasets
132
  datasets/
 
 
130
 
131
  # Datasets
132
  datasets/
133
+ **.h5
notebooks/enhance_me_train.ipynb CHANGED
@@ -34,6 +34,7 @@
34
  },
35
  "outputs": [],
36
  "source": [
 
37
  "import sys\n",
38
  "\n",
39
  "sys.path.append(\"./enhance-me\")\n",
@@ -142,6 +143,15 @@
142
  "history = mirnet.train(epochs=epochs)"
143
  ]
144
  },
 
 
 
 
 
 
 
 
 
145
  {
146
  "cell_type": "code",
147
  "execution_count": null,
 
34
  },
35
  "outputs": [],
36
  "source": [
37
+ "import os\n",
38
  "import sys\n",
39
  "\n",
40
  "sys.path.append(\"./enhance-me\")\n",
 
143
  "history = mirnet.train(epochs=epochs)"
144
  ]
145
  },
146
+ {
147
+ "cell_type": "code",
148
+ "execution_count": null,
149
+ "metadata": {},
150
+ "outputs": [],
151
+ "source": [
152
+ "mirnet.load_weights(os.path.join(mirnet.experiment_name, \"weights.h5\"))"
153
+ ]
154
+ },
155
  {
156
  "cell_type": "code",
157
  "execution_count": null,