Fix suggested alias for relative paths. Closes #37 #28.

This commit is contained in:
Alex J. Champandard
2016-11-01 15:11:55 +01:00
parent 34f8e629c2
commit 0c31e53731
+3 -3
View File
@@ -89,12 +89,12 @@ The easiest way to get up-and-running is to `install Docker <https://www.docker.
.. code:: bash .. code:: bash
# Setup the alias. Put this in your .bash_rc or .zshrc file so it's available at startup. # Setup the alias. Put this in your .bash_rc or .zshrc file so it's available at startup.
alias enhance="function ne() { docker run -v \`dirname \$1\`:/ne/input -it alexjc/neural-enhance input/\`basename \$1\`; }; ne" alias enhance='function ne() { docker run -v $(PWD)/`dirname $1`:/ne/input -it alexjc/neural-enhance input/`basename $1`; }; ne'
# Now run any of the examples above using this alias, without the `.py` extension. # Now run any of the examples above using this alias, without the `.py` extension.
enhance images/example.jpg enhance images/example.jpg
**Multiple Images** — To enhance multiple images in a row (faster) from a folder or widlcard specification, make sure to quote the argument to the alias: **Multiple Images** — To enhance multiple images in a row (faster) from a folder or widlcard specification, make sure to quote the argument to the alias command:
.. code:: bash .. code:: bash