Created
May 18, 2020 16:08
-
-
Save hzitoun/2a63d5fa139afad975e528b63c049188 to your computer and use it in GitHub Desktop.
Code for my medium story Serve a Deep Learning Image Classification Model Written in TensorFlow 2 as a REST API and Dockerize it! (with GPU support)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
deer = read_image("../data/raw/train/3_deer.png", (32, 32)) | |
car = read_image("../data/raw/train/4_automobile.png", (32, 32)) | |
bird = read_image("../data/raw/train/18_bird.png", (32, 32)) | |
plt.subplot(131) | |
plt.imshow(deer) | |
plt.title('Deer') | |
plt.subplot(132) | |
plt.imshow(car) | |
plt.title('Car') | |
plt.subplot(133) | |
plt.imshow(bird) | |
plt.title('Bird') | |
plt.show() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment