Skip to content

Instantly share code, notes, and snippets.

@AyaanZaveri
Created May 22, 2021 16:13
Show Gist options
  • Save AyaanZaveri/8999b4fecfa596240979ec145a235c6b to your computer and use it in GitHub Desktop.
Save AyaanZaveri/8999b4fecfa596240979ec145a235c6b to your computer and use it in GitHub Desktop.
#Download The Image
!wget -O myfile.jpg.tmp "https://images.unsplash.com/photo-1595801185745-c35f30d63934?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=2250&q=80" && mv myfile.jpg{.tmp,} && mv /content/myfile.jpg "/content/"
#Set Image Path
image_path = "/content/myfile.jpg"
image_np = load_image_into_numpy_array(image_path)
#Show Image
plt.figure(figsize=(24,32))
plt.imshow(image_np[0])
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment