Skip to content

Instantly share code, notes, and snippets.

@pranjal-joshi
Created April 24, 2017 09:47
Show Gist options
  • Save pranjal-joshi/3bb163c63cb1e555b9e50c9e8be0cda2 to your computer and use it in GitHub Desktop.
Save pranjal-joshi/3bb163c63cb1e555b9e50c9e8be0cda2 to your computer and use it in GitHub Desktop.
#!/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