Skip to content

Instantly share code, notes, and snippets.

View AyaanZaveri's full-sized avatar
🚀

Ayaan AyaanZaveri

🚀
  • Toronto, Ontario
  • 07:35 (UTC -04:00)
View GitHub Profile
#Mount Drive
from google.colab import drive
drive.mount('/content/drive')
# @title Load Models
def load_image_into_numpy_array(path):
"""Load an image from file into a numpy array.
Puts image into numpy array to feed into tensorflow graph.
Note that by convention we put it into a numpy array with shape
(height, width, channels), where channels=3 for RGB.
Args:
#TensorFlow 2.5
#Takes about a minute
!pip install -U tensorflow>=2.5
#Import
import os
import pathlib
import matplotlib
import matplotlib.pyplot as plt