From 369902190aba0e2431ad35245d754233412b69e4 Mon Sep 17 00:00:00 2001 From: Sanskar Omar Date: Thu, 4 May 2023 12:20:24 +0530 Subject: [PATCH] Update Horse_or_Human_NoValidation.ipynb Fixes AttributeError: module 'keras.preprocessing.image' has no attribute 'load_img'. Refer to: https://stackoverflow.com/a/74331986/17192981 --- Horse_or_Human_NoValidation.ipynb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Horse_or_Human_NoValidation.ipynb b/Horse_or_Human_NoValidation.ipynb index 272795ba..d943763d 100644 --- a/Horse_or_Human_NoValidation.ipynb +++ b/Horse_or_Human_NoValidation.ipynb @@ -506,7 +506,7 @@ "source": [ "import numpy as np\n", "from google.colab import files\n", - "from keras.preprocessing import image\n", + "import keras.utils as image\n", "\n", "uploaded = files.upload()\n", "\n",