Skip to content

Instantly share code, notes, and snippets.

@AyaanZaveri
Last active May 22, 2021 18:45
Show Gist options
  • Save AyaanZaveri/d3574e42c3fef300ac12b32143521f5e to your computer and use it in GitHub Desktop.
Save AyaanZaveri/d3574e42c3fef300ac12b32143521f5e to your computer and use it in GitHub Desktop.
#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
import io
import scipy.misc
import numpy as np
from six import BytesIO
from PIL import Image, ImageDraw, ImageFont, ImageOps
from six.moves.urllib.request import urlopen
import tensorflow as tf
import tensorflow_hub as hub
from google.colab import files
tf.get_logger().setLevel('ERROR')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment