Skip to content

Apply filter in docker container, supporting GPU #268

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions nut.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
syntax_version: "7"
project_name: neural-style
docker_image: matthieudelaro/cuda-torch-plus
container_working_directory: /opt/style
enable_nvidia_devices: true
volumes:
main:
host_path: .
container_path: /opt/style
macros:
setup:
usage: download model
actions:
- sh ./models/download_models.sh
run:
usage: run the neural network in the container, on GPU
actions:
- export iterations=1000
- time th neural_style.lua -num_iterations $iterations -seed 123 -style_image style_image.jpg -content_image content_image.jpg -output_image "output_image_`date '+%Y-%m-%d_%Hh%Mmin%S'`.png"