This repository has been archived by the owner on Sep 24, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
52 lines (40 loc) · 1.4 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
update-submodules:
git submodule update --recursive --remote
setup:
pip install -r requirements.txt
smi:
nvidia-smi -l 3
tb:
tensorboard --logdir result --host 0.0.0.0
format:
find . -name "*.py" | xargs isort
black -t py36 . --exclude "data" --exclude "result" --exclude ".mypy_cache"
mypy:
mypy --ignore-missing-imports src
debug:
python src/train.py --config config/debug-isogd-depth.yml
test:
python -m unittest discover -s src/test -p 'test_*.py'
build:
docker build --cache-from docker.io/raahii/dcvgan:test -f docker/Dockerfile.cpu -t raahii/dcvgan:test .
ci: format build
docker run --volume ${PWD}:/home/user/dcvgan --rm raahii/dcvgan:test make test
deploy:
rsync -auvz \
--delete \
--exclude-from=${HOME}/.rsyncignore \
--exclude-from=.rsyncignore \
$(shell ghq root)/github.com/raahii/dcvgan/ labo:~/study/dcvgan/
deploy-ext:
rsync -auvz \
--delete \
--exclude-from=${HOME}/.rsyncignore \
--exclude-from=.rsyncignore \
$(shell ghq root)/github.com/raahii/dcvgan/ labo_ext:~/study/dcvgan/
deploy-enpit:
rsync -auvz \
--delete \
--exclude-from=${HOME}/.rsyncignore \
--exclude-from=.rsyncignore \
$(shell ghq root)/github.com/raahii/dcvgan/ enpit:~/study/dcvgan/
# rsync -auvz --delete --exclude-from=${HOME}/.rsyncignore --exclude-from=.rsyncignore $(shell ghq root)/github.com/raahii/dcvgan/ enpit:~/study/dcvgan/