You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
4 years ago | |
|---|---|---|
| .. | ||
| static | 4 years ago | |
| tools | 4 years ago | |
| README.md | 4 years ago | |
| serve.py | 4 years ago | |
README.md
pix2pix-tensorflow server
Host pix2pix-tensorflow models to be used with something like the Image-to-Image Demo.
This is a simple python server that uses deeplearn.js and weights exported from pix2pix checkpoints using tools/export-checkpoint.py.
Exporting
You can export a model to be served with tools/export-checkpoint.py.
python tools/export-checkpoint.py \
--checkpoint facades_BtoA \
--output_file static/models/facades_BtoA.bin
You can also copy models from the pix2pix-tensorflow-models repo:
git clone git@github.com:affinelayer/pix2pix-tensorflow-models.git static/models
Serving
python serve.py --port 8000
If you open http://localhost:8000/ in a browser, you should see an interactive demo.