-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
71 lines (52 loc) · 2.47 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
default: run
# RUNNING
run:
sbatch launch.sh
test:
python3 test.py
debug:
rm -fr runs/AEGEAN_test
KMP_DUPLICATE_LIB_OK=TRUE python3 -c'import AEGEAN as AG; opt = AG.init(); opt.run_path = "AEGEAN_test"; opt.datapath="../database/swapnesh_butterflies/"; opt.n_epochs=5; opt.sample_interval=1; opt.padding_mode="zeros"; opt.img_size = 64; opt.verbose=True; AG.learn(opt)'
run_CFD:
python3 -c'import AEGEAN as AG; opt = AG.init(); opt.img_size = 256; opt.run_path = "AEGEAN_long"; opt.n_epochs=16384; opt.sample_interval=128; AG.learn(opt)'
run_128:
python3 -c'import AEGEAN as AG; opt = AG.init(); opt.img_size = 128; opt.run_path = "AEGEAN_128_long"; opt.n_epochs=16384; opt.sample_interval=128; AG.learn(opt)'
run_simpsons:
python3 -c'import AEGEAN as AG; opt = AG.init(); opt.run_path = "Simpsons_long"; opt.datapath="../database/Simpsons-Face_clear/cp/"; opt.img_size = 128; opt.n_epochs=16384; opt.sample_interval=128; AG.learn(opt)'
run_butterflies:
python3 -c'import AEGEAN as AG; opt = AG.init(); opt.run_path = "butterflies_long"; opt.datapath="../database/swapnesh_butterflies/"; opt.n_epochs=16384; opt.sample_interval=128; AG.learn(opt)'
# CODING
pep8:
autopep8 $(DIR)/*.py -r -i --max-line-length 120 --ignore E402
tb:
# tensorboard --bind_all --logdir runs
tensorboard --logdir runs
# FILES
MARIA_URL = laurent@10.164.6.243:GAN-SDPC/AEGEAN
maria_pull:
# rsync --progress -avhuz --exclude-from=.ExclusionRSync $(URL)/ .
rsync --progress -avhuz $(MARIA_URL)/runs .
maria_push:
rsync --progress -avhuz --exclude-from=.ExclusionRSync ../AEGEAN $(MARIA_URL)/..
rsync --progress -avhuz --delete --exclude-from=.ExclusionRSync ../database $(MARIA_URL)/..
MESO_URL = lperrinet@login.mesocentre.univ-amu.fr:/home/lperrinet/science/AEGeAN
meso_run:
# https://mesocentre.univ-amu.fr/slurm/
srun -p gpu -A h146 -t 4-2 --gres=gpu:1 --gres-flags=enforce-binding --pty bash -i
meso_pull:
# rsync --progress -avhuz --exclude-from=.ExclusionRSync $(URL)/ .
rsync --progress -avh $(MESO_URL)/runs/ runs
# rsync --progress -avh --delete $(MESO_URL)/runs/ runs
meso_push:
#rsync --progress -avhuz runs $(MESO_URL)
rsync --progress -avhuz --delete --exclude-from=.ExclusionRSync ../database $(MESO_URL)/..
load_modules:
module purge; module load userspace/all; module load python3/3.6.3; module load cuda/10.1
clean_models:
rm */models/*.pt; rm */*/models/*.pt
clean:
rm -fr runs
## INSTALL
install:
python3 -m pip install --user -r requirements.txt
python3 -m pip install --user -e .