-
Notifications
You must be signed in to change notification settings - Fork 0
3_BASICS: Installing and using neural style through a virtual machine
jamahun edited this page Aug 3, 2020
·
5 revisions
The following tutorial will be referencing jcjohnson's neural-style. Follow the link for a more detailed information.
Use git clone
to download the neural-style folder onto your virtual machine
cd ~
git clone https://github.com/jcjohnson/neural-style
cd neural-style
sh models/download_models.sh
Navigate to the neural-style root directory cd ~/neural-style
and execute the following command:
th neural_style.lua -style_image <examples/inputs/image.jpg> -content_image <examples/inputs/image.jpg>
Search for images to use for both style and content and upload them to the /examples/inputs
folder. You can use the command wget
for this, to do so:
cd examples/inputs
wget -O style_name http://your_url.com
wget -O content_name http://your_url.com
For the full list of options go to https://github.com/jcjohnson/neural-style
Navigate to /examples/multigpu_scripts/starry_stanford.sh
and open the file so that you can edit the text
- Using Jupyter Lab, edit the .sh file and make the following changes:
STYLE_IMAGE=examples/inputs/<styleName.jpg>
CONTENT_IMAGE=examples/inputs/<contentName.jpg>
- Save the .sh file and then execute it by using the command
sh starry_stanford.sh