Skip to content

Instantly share code, notes, and snippets.

@callmemaze
Created September 13, 2022 14:42
Show Gist options
  • Save callmemaze/005a07ead44112ac6f76962ed0ba6dbe to your computer and use it in GitHub Desktop.
Save callmemaze/005a07ead44112ac6f76962ed0ba6dbe to your computer and use it in GitHub Desktop.
Display the source blob
Display the rendered blob
Raw
{
"cells": [
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"#Image path \n",
"path = Path(\"/content/dogs_pic.jpeg\")\n",
"#Load the image\n",
"img = image.load_img(path, target_size=(224,224))\n",
"image_array = image.img_to_array(img)"
]
}
],
"metadata": {
"language_info": {
"name": "python"
},
"orig_nbformat": 4
},
"nbformat": 4,
"nbformat_minor": 2
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment