Skip to content

Instantly share code, notes, and snippets.

@Crazz-Zaac
Last active January 1, 2021 16:16
Show Gist options
  • Save Crazz-Zaac/08c6d73a055fd0a2e08aab53524ea690 to your computer and use it in GitHub Desktop.
Save Crazz-Zaac/08c6d73a055fd0a2e08aab53524ea690 to your computer and use it in GitHub Desktop.
Importing essential libraries
import numpy as np
from keras import layers
from keras.layers import Input, Dense, Activation, ZeroPadding2D, BatchNormalization, Flatten, Conv2D
from keras.layers import AveragePooling2D, MaxPooling2D, Dropout, GlobalMaxPooling2D, GlobalAveragePooling2D
from keras.models import Model
from keras.preprocessing import image
from keras.utils import layer_utils
from keras.utils.data_utils import get_file
from keras.applications.imagenet_utils import preprocess_input
import pydot
from IPython.display import SVG
from keras.utils.vis_utils import model_to_dot
from keras.utils import plot_model
from kt_utils import *
import keras.backend as K
K.set_image_data_format('channels_last')
import matplotlib.pyplot as plt
from matplotlib.pyplot import imshow
# %matplotlib inline ##this line is only necessary when you're executing in python notebook
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment