11. Generative Models
Activity 11.01: Generating Images Using GANs
Solution:
Perform the following steps to complete this activity:
- Load Google Colab and Google Drive:
try: from google.colab import drive drive.mount('/content/drive', force_remount=True) COLAB = True print("Note: using Google CoLab") %tensorflow_version 2.x except: print("Note: not using Google CoLab") COLAB = False
Your output should look something like this:
Mounted at /content/drive Note: using Google CoLab
- Import the libraries that you will be using:
import tensorflow as tf from tensorflow.keras.models import Sequential, Model, load_model from tensorflow.keras.layers import ...