Skip to content

[add] adding requirements.txt for server.py pip requirements #26

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 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions demo/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ Then, run `get_manipulators.py`
# Run server and client for demo
To run server for demo, run `python server.py`.


To run client, run `python -m http.server` (starts a local http server at port 8000) and open `0.0.0.0:8000/web` in your browser.

To test client, upload `test/img.png`. You should see aligned image and be able to move sliders.
Expand Down
2 changes: 1 addition & 1 deletion demo/script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ locale-gen en_US.UTF-8
export LC_ALL=en_US.UTF-8

# Pip packages for running server and face-aligned (dlib takes a while to install)
pip install flask flask_cors tqdm opencv-python imutils dlib imageio
$(which pip) install flask flask_cors tqdm opencv-python imutils dlib imageio

# Get model weights
curl https://storage.googleapis.com/glow-demo/large3/graph_optimized.pb > graph_optimized.pb
Expand Down