jcjohnson / neural-style

Torch implementation of neural style algorithm
MIT License
18.31k stars 2.7k forks source link

First run, having syntax error #206

Open spwater opened 8 years ago

spwater commented 8 years ago

Greetings,

when I type neural_style.lua -style_image 2.jpg -content_image 1.jpg I got an error msg like: syntax error: [string "neural_style.lua -style_image 2 -content_imag..."]:1: '=' expected near '-

I am a freshman in this projcet, would anyoen please help me about this issue? Thank you in advance!

Pei

htoyryla commented 8 years ago

spwater notifications@github.com kirjoitti 14.4.2016 kello 13.25:

Greetings,

when I type neural_style.lua -style_image 2.jpg -content_image 1.jpg I got an error msg like: syntax error: [string "neural_style.lua -style_image 2 -content_imag..."]:1: '=' expected near '-

I guess you have typed this inside the th interpreter.

You should type

th neural_style.lua ….

on the command line to get th to run neural-style. It may be that you have pressed ENTER after th, taking you into the interpreter.

Hannu