Created
April 24, 2017 09:47
-
-
Save pranjal-joshi/3bb163c63cb1e555b9e50c9e8be0cda2 to your computer and use it in GitHub Desktop.
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
#!/usr/bin/python | |
import os | |
from scipy.optimize import fmin_l_bfgs_b | |
from scipy.misc import imsave, imread, imresize | |
from keras.applications import vgg16 | |
from keras.preprocessing.image import load_img, img_to_array | |
from keras import backend as K | |
import time | |
import numpy as np | |
root_dir = os.path.abspath('.') | |
base_path = os.path.join(root_dir,'dog.jpg') | |
ref_path = os.path.join(root_dir,'style2.jpg') | |
EPOCHS = 5 | |
img_nrows = 300 | |
img_ncols = 300 | |
style_wt = 0.5 | |
content_wt = 0.025 | |
total_var_wt = 0.5 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment