diff --git a/server/README.md b/server/README.md index c06d285d8ec9752f922ee81bc42306e306a27a89..6908651fde7c2d937915767ebefc7bbef4171590 100644 --- a/server/README.md +++ b/server/README.md @@ -19,7 +19,10 @@ python ../tools/dockrun.py python process-local.py \ # run local server python ../tools/dockrun.py python --port 8000 serve.py --local_models_dir models # 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: @@ -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 . # test image locally 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 gcloud docker -- push us.gcr.io/$GOOGLE_PROJECT/pix2pix-server:v1 # setup server