text: import os
  import argparse
  from style_transfer import style_transfer
  
  
  VGG_PATH = os.path.join('data', 'imagenet-vgg-verydeep-19.mat')
  ITERS = 1001
  CONTENT_WEIGHT = 50
  STYLE_WEIGHT = 400
  LEARNING_RATE = 3e0
  BETA1 = 0.9
  BETA2 = 0.999
  EPSILON = 1e-08
  GPU = -1
  
  content_path = os.path.join("sample", "content.jpg")
  style_path = os.path.join("sample", "style.jpg")
  output_path = os.path.join("sample", "output.jpg")
  
  
  def parse_arguments():
  	global content_path, style_path, output_path
  	global VGG_PATH, ITERS, CONTENT_WEIGHT, STYLE_WEIGHT, LEARNING_RATE, GPU
  
  	parser = argparse.ArgumentParser()
  	parser.add_argument("-c", "--content", type=str, help="Path of content image")
  	parser.add_argument("-s", "--style", type=str, help="Path of style image")
  	parser.add_argument("-o", "--output", type=str, help="Destination for output image")
  	parser.add_argument("--iterations", type=int, help="Number of iterations of backprop")
  	parser.add_argument("--content_weight", type=float, help="Weight of content image (alpha)")
  	parser.add_argument("--style_weight", type=float, help="Weight of style image (beta)")
  	parser.add_argument("--vgg", type=str, help="Path for VGG model")
  	parser.add_argument("--gpu", type=int, help="Choose device to be used for computation. -1 for /cpu:0; 0 for /gpu:0, 1 for /gpu:1, etc.")
  	parser.add_argument("--learning_rate", type=float, help="Learning rate for optimizer")
  	args = parser.parse_args()
  
  	if args.content:
  		content_path = args.content
  	if args.style:
  		style_path = args.style
  	if args.output:
  		output_path = args.output
  	if args.iterations:
  		ITERS = args.iterations
  	if args.content_weight:
  		CONTENT_WEIGHT = args.content_weight
  	if args.style_weight:
  		STYLE_WEIGHT = args.style_weight
  	if args.vgg:
  		VGG_PATH = args.vgg
  	if type(args.gpu) is int:
  		GPU = args.gpu
  	if args.learning_rate:
  		LEARNING_RATE = args.learning_rate
  
  def main():
  	# Parse arguments
  	parse_arguments()
  
  	# Make .ckpt directory
  	if not os.path.exists(".ckpt"):
  		os.mkdir(".ckpt")
  
  	# Stylize image
  	style_transfer(content_path, style_path, output_path, VGG_PATH, ITERS, CONTENT_WEIGHT,
  			STYLE_WEIGHT, LEARNING_RATE, BETA1, BETA2, EPSILON, GPU)
  
  if __name__ == '__main__':
  	main()
  