from __future__ import absolute_import from __future__ import division from __future__ import print_function import os import pickle import random import time import numpy as np import pandas as pd import tensorflow as tf assert tf.__version__.startswith('2') import PIL from PIL import Image import matplotlib.pyplot as plt import tensorflow.keras.backend as K from tensorflow.keras import Input, Model from tensorflow.keras.layers import LeakyReLU, BatchNormalization, ReLU, Activation from tensorflow.keras.layers import UpSampling2D, Conv2D, Concatenate, Dense, concatenate from tensorflow.keras.layers import Flatten, Lambda, Reshape, ZeroPadding2D, add from tensorflow.keras.optimizers import Adam from tensorflow.keras.preprocessing.image import ImageDataGenerator