Skip to content
Snippets Groups Projects
Commit 8f79bdf8 authored by Christopher Hesse's avatar Christopher Hesse
Browse files

Fix command line indentation

parent 99236096
No related branches found
No related tags found
No related merge requests found
...@@ -19,7 +19,10 @@ python ../tools/dockrun.py python process-local.py \ ...@@ -19,7 +19,10 @@ python ../tools/dockrun.py python process-local.py \
# run local server # run local server
python ../tools/dockrun.py python --port 8000 serve.py --local_models_dir models python ../tools/dockrun.py python --port 8000 serve.py --local_models_dir models
# test the local server # test the local server
python process-remote.py --input_file static/facades-input.png --url http://localhost:8000/example --output_file output.png python process-remote.py \
--input_file static/facades-input.png \
--url http://localhost:8000/example \
--output_file output.png
``` ```
If you open [http://localhost:8000/](http://localhost:8000/) in a browser, you should see an interactive demo, though this expects the server to be hosting the exported models available here: If you open [http://localhost:8000/](http://localhost:8000/) in a browser, you should see an interactive demo, though this expects the server to be hosting the exported models available here:
...@@ -61,7 +64,10 @@ export GOOGLE_CREDENTIALS="$(cat <path to service-account.json>)" ...@@ -61,7 +64,10 @@ export GOOGLE_CREDENTIALS="$(cat <path to service-account.json>)"
sudo docker build --rm --tag us.gcr.io/$GOOGLE_PROJECT/pix2pix-server:v1 . sudo docker build --rm --tag us.gcr.io/$GOOGLE_PROJECT/pix2pix-server:v1 .
# test image locally # test image locally
sudo docker run --publish 8080:8080 --rm --name server us.gcr.io/$GOOGLE_PROJECT/pix2pix-server:v1 sudo docker run --publish 8080:8080 --rm --name server us.gcr.io/$GOOGLE_PROJECT/pix2pix-server:v1
python process-remote.py --input_file static/facades-input.png --url http://localhost:8080/example --output_file output.png python process-remote.py \
--input_file static/facades-input.png \
--url http://localhost:8080/example \
--output_file output.png
# publish image to private google container repository # publish image to private google container repository
gcloud docker -- push us.gcr.io/$GOOGLE_PROJECT/pix2pix-server:v1 gcloud docker -- push us.gcr.io/$GOOGLE_PROJECT/pix2pix-server:v1
# setup server # setup server
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment