Skip to content

Commit

Permalink
modified inference notebook
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanLauLinTiong committed Mar 18, 2022
1 parent d9bb414 commit 2d2e0ef
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions inference.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@
"metadata": {},
"outputs": [],
"source": [
"MODEL_PATH = \"./model/model_epoch50_lr0.01_batch8.pt\""
"# MODEL_PATH = \"./model/model_epoch50_lr0.01_batch8.pt\"\n",
"MODEL_PATH = \"./model_de_Mar19_01-27-40_epoch25_lr0.005_batch128_acc0.481.pt\""
]
},
{
Expand Down Expand Up @@ -141,12 +142,17 @@
"outputs": [],
"source": [
"# tranformations\n",
"# preprocess = transforms.Compose([\n",
"# transforms.ToPILImage(),\n",
"# transforms.Grayscale(3),\n",
"# transforms.Resize(256),\n",
"# transforms.ToTensor(),\n",
"# transforms.Normalize(mean=[0.485, 0.456, 0.406], std=[0.229, 0.224, 0.225])\n",
"# ])\n",
"\n",
"preprocess = transforms.Compose([\n",
" transforms.ToPILImage(),\n",
" transforms.Grayscale(3),\n",
" transforms.Resize(256),\n",
" transforms.ToTensor(),\n",
" transforms.Normalize(mean=[0.485, 0.456, 0.406], std=[0.229, 0.224, 0.225])\n",
" transforms.Normalize((0.5,), (0.5,))\n",
"])"
]
},
Expand Down

0 comments on commit 2d2e0ef

Please sign in to comment.