This repository has been archived by the owner on Jun 23, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 24
/
Makefile
52 lines (52 loc) · 2.43 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
.PHONY: build
build: venv requirements.txt
@echo "Downloading categories.txt..."
wget https://storage.googleapis.com/tm-christmais/categories.txt
mkdir categories && \
mv categories.txt categories/
@echo "Categories stored in ./categories/categories.txt"
@echo "Downloading checkpoint model..."
mkdir ckpt && \
wget https://storage.googleapis.com/download.magenta.tensorflow.org/models/arbitrary_style_transfer.tar.gz && \
tar --strip-components 1 -xvzf arbitrary_style_transfer.tar.gz -C ckpt/
@echo "Checkpoint model stored in ./ckpt/model.ckpt"
@echo "Downloading chromedriver..."
mkdir webdriver && \
wget https://chromedriver.storage.googleapis.com/2.44/chromedriver_linux64.zip && \
unzip chromedriver_*.zip -d webdriver
@echo "WebDriver stored in ./webdriver/chromedriver"
@echo "Installing system dependencies for magenta (SUDO required)"
sudo apt-get install build-essential libasound2-dev libjack-dev
@echo "Installing requirements..."
venv/bin/pip-sync
@echo "Installing christmAIs..."
venv/bin/python3 setup.py install --user
dev: venv requirements-dev.txt
@echo "Downloading categories.txt..."
wget https://storage.googleapis.com/tm-christmais/categories.txt
mkdir categories && \
mv categories.txt categories/
@echo "Categories stored in ./categories/categories.txt"
@echo "Downloading checkpoint model..."
mkdir ckpt && \
wget https://storage.googleapis.com/download.magenta.tensorflow.org/models/arbitrary_style_transfer.tar.gz && \
tar --strip-components 1 -xvzf arbitrary_style_transfer.tar.gz -C ckpt/
@echo "Checkpoint model stored in ./ckpt/model.ckpt"
@echo "Downloading chromedriver..."
mkdir webdriver && \
wget https://chromedriver.storage.googleapis.com/2.44/chromedriver_linux64.zip && \
unzip chromedriver_*.zip -d webdriver
@echo "WebDriver stored in ./webdriver/chromedriver"
@echo "Installing system dependencies for magenta (SUDO required)"
sudo apt-get install build-essential libasound2-dev libjack-dev
@echo "Installing dev requirements..."
venv/bin/pip-sync requirements-dev.txt
@echo "Installing christmAIs..."
venv/bin/python3 setup.py install --user
venv:
python3 -m venv venv
venv/bin/pip3 install pip-tools
requirements.txt: requirements.in
venv/bin/pip-compile -o requirements.txt --no-header --no-annotate requirements.in
requirements-dev.txt: requirements-dev.in
venv/bin/pip-compile -o requirements-dev.txt --no-header --no-annotate requirements-dev.in