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
from keras.layers.core import Activation | |
from keras.layers.normalization import BatchNormalization | |
from keras.layers.convolutional import UpSampling2D | |
from keras.layers import Input | |
from keras.layers.convolutional import Conv2D, Conv2DTranspose | |
from keras.models import Model | |
from keras.layers.advanced_activations import LeakyReLU, PReLU | |
from keras.layers import add | |
# Residual block |
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
from numpy import array | |
from scipy.misc import imresize | |
# Takes list of images and provide HR images in form of numpy array | |
def hr_images(images): | |
images_hr = array(images) | |
return images_hr | |
# Takes list of images and provide LR images in form of numpy array | |
def lr_images(images_real , downscale): | |
images = [] |
NewerOlder