Skip to content

Commit

Permalink
Created using Colaboratory
Browse files Browse the repository at this point in the history
  • Loading branch information
souravs17031999 committed Aug 31, 2020
1 parent c965c6d commit 7ce086e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Single_test_inference.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@
" def __getitem__(self, index):\n",
" img_name,label = self.df[index]\n",
" img_path = os.path.join(self.data_dir, img_name+'.png')\n",
" image = cv2.imread(img_path)\n",
" image = cv2.imread(img_path) # if getting error, use PIL to load the image here.\n",
" if self.transform is not None:\n",
" image = self.transform(image)\n",
" return image, label"
Expand Down

0 comments on commit 7ce086e

Please sign in to comment.