~dricottone/dalle-mini-terminal

ref: 1beb83d1b0cb623abda74fc54c56a514c6694fe2 dalle-mini-terminal/Makefile -rw-r--r-- 733 bytes
1beb83d1Dominic Ricottone v1.1 Update 1 year, 4 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
clean:
	rm -rf .venv
	rm -rf **/__pycache__ **/*.pyc

dalle_mini_terminal/cli.py: dalle_mini_terminal/cli.toml
	gap dalle_mini_terminal/cli.toml -o dalle_mini_terminal/cli.py

.venv: dalle_mini_terminal/cli.py
	python -m venv .venv
	(. .venv/bin/activate; pip install --upgrade pip)
	(. .venv/bin/activate; pip install wheel)
	(. .venv/bin/activate; pip install jax==0.3.25 jaxlib==0.3.25 orbax-checkpoint==0.1.1 git+https://github.com/patil-suraj/vqgan-jax.git dalle-mini)

install: .venv

run:
	(. .venv/bin/activate; python -m dalle_mini_terminal --dalle ./mini-1_v0_artifacts --vqgan ./vqgan_imagenet_f16_16384_artifacts -- cats playing chess)

build:
	sudo docker build -t dalle_mini_terminal .

.PHONY: clean install run build