forked from ivukotic/ML_platform_tests
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCaloGAN.sh
executable file
·34 lines (29 loc) · 1.53 KB
/
CaloGAN.sh
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
# create input data directory
mkdir -p /data-rook/CaloGAN/inputs/
cd /data-rook/CaloGAN/inputs
wget -nc https://data.mendeley.com/archiver/pvn3xc3wy5?version=1 -O CaloGAN.zip
yes n | unzip CaloGAN.zip
# create weight data directory
mkdir -p /data-rook/CaloGAN/weights
#create output data directory
mkdir -p /data-rook/CaloGAN/outputs
#install xrootd client
mkdir -p /data-rook/xrootd
cd /data-rook/xrootd
export PATH=$PATH:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
wget -nc http://storage-ci.web.cern.ch/storage-ci/debian/xrootd/pool/artful/master/x/xrootd/xrootd-client_20171105-c4b77813_amd64.deb
wget -nc http://storage-ci.web.cern.ch/storage-ci/debian/xrootd/pool/artful/master/x/xrootd/xrootd-client-libs_20171105-c4b77813_amd64.deb
wget -nc http://storage-ci.web.cern.ch/storage-ci/debian/xrootd/pool/artful/master/x/xrootd/xrootd-libs_20171105-c4b77813_amd64.deb
wget -nc http://ftp.us.debian.org/debian/pool/main/r/readline/libreadline7_7.0-3_amd64.deb
export DEBIAN_FRONTEND=noninteractive
apt-get -q install ./libreadline7_7.0-3_amd64.deb
apt-get -q install ./xrootd-libs_20171105-c4b77813_amd64.deb
apt-get -q install ./xrootd-client-libs_20171105-c4b77813_amd64.deb
apt-get -q install ./xrootd-client_20171105-c4b77813_amd64.deb
cd /ML_platform_tests/tutorial/
git clone https://github.com/ivukotic/sc2017_prp.git
cd /ML_platform_tests/tutorial/sc2017_prp
export SHELL=/bin/bash
#python train.py "$@"
#python generator.py /data-rook/CaloGAN/weights/params_generator_epoch_049.hdf5 /data-rook/CaloGAN/outputs/images1.h5
python "$@"