forked from dkurt/openvino_practice
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
56 lines (46 loc) · 4.03 KB
/
.travis.yml
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
language: cpp
notifications:
email: false
sudo: true
compiler: gcc
os: linux
before_install:
- sudo apt-get install -y megatools python3-setuptools python3-pip
- python3 -m pip install --upgrade pip
- python3 -m pip install -r modules/6_segmentation/requirements.txt --quiet
- python3 -m pip install -r modules/5_tracking/requirements.txt --quiet
- python3 -m pip install -r modules/10_reinforcement_learning/requirements.txt --quiet
# Install OpenVINO
- sudo curl -o GPG-PUB-KEY-INTEL-OPENVINO-2020 https://apt.repos.intel.com/openvino/2020/GPG-PUB-KEY-INTEL-OPENVINO-2020
- sudo apt-key add GPG-PUB-KEY-INTEL-OPENVINO-2020
- sudo echo "deb https://apt.repos.intel.com/openvino/2020 all main" | sudo tee - a /etc/apt/sources.list.d/intel-openvino-2020.list
- sudo apt-get update
- sudo apt-get install -y --no-install-recommends intel-openvino-dev-ubuntu16-2020.2.130
# Download test data
- wget https://download.01.org/opencv/2020/openvinotoolkit/2020.3/open_model_zoo/models_bin/1/face-detection-0104/FP32/face-detection-0104.bin -O data/face-detection-0104.bin
- wget http://yann.lecun.com/exdb/mnist/train-images-idx3-ubyte.gz -O data/train-images.idx3-ubyte.gz && gzip -d data/train-images.idx3-ubyte.gz
- wget http://yann.lecun.com/exdb/mnist/train-labels-idx1-ubyte.gz -O data/train-labels.idx1-ubyte.gz && gzip -d data/train-labels.idx1-ubyte.gz
- wget http://yann.lecun.com/exdb/mnist/t10k-images-idx3-ubyte.gz -O data/t10k-images.idx3-ubyte.gz && gzip -d data/t10k-images.idx3-ubyte.gz
- wget http://yann.lecun.com/exdb/mnist/t10k-labels-idx1-ubyte.gz -O data/t10k-labels.idx1-ubyte.gz && gzip -d data/t10k-labels.idx1-ubyte.gz
- wget https://download.01.org/opencv/2020/openvinotoolkit/2020.3/open_model_zoo/models_bin/1/semantic-segmentation-adas-0001/FP32/semantic-segmentation-adas-0001.bin -O data/semantic-segmentation-adas-0001.bin
- wget https://download.01.org/opencv/2020/openvinotoolkit/2020.3/open_model_zoo/models_bin/1/semantic-segmentation-adas-0001/FP32/semantic-segmentation-adas-0001.xml -O data/semantic-segmentation-adas-0001.xml
- megadl 'https://mega.nz/#!9cFFwAQb!NwSZ_j35wCcD9LUEbw9yrp-DsT37AvGQB5YWtfw3-0w' --path data --no-progress # deoldify.bin
- megadl 'https://mega.nz/#!cBcHTA6Y!1FIiHhDCLSbW_Ba4zVIbSNQGgJB8mTCEjMjYgSwPh5M' --path data --no-progress # deoldify.xml
- megadl 'https://mega.nz/#!lAEwmKKS!1uNNTyrBkROtYjJMeUB6bEMpppwud2TsRVokOvVR09s' --path data --no-progress # distilbert.bin
- megadl 'https://mega.nz/#!IZE0iYaT!XR9MdIy7B4EqVKOiiHppmliRf6E4ov_rtKs18wmyx3I' --path data --no-progress # distilbert.xml
- megadl 'https://mega.nz/#!NMV02agL!APdG2lwOvEKy5oqMwMKpRJJxNPIGDY4hSm3hpY9kj7M' --path data --no-progress # candy.bin
- megadl 'https://mega.nz/#!lNFWyagB!DPTHP8OKDDB9wcrshvQxcTSRAbyrgeUHKeVOYyiFss0' --path data --no-progress # candy.xml
- megadl 'https://mega.nz/#!RcUHRaQI!-4XReh2kFr_sgvl8qmKkVhkhTcxEWDVXMP1xFv8fsp8' --path data --no-progress # celeba_generator.xml
- megadl 'https://mega.nz/#!pUN1kCCQ!e9foW8shMj6fpA7go8_RjtGo5YGYKtiI14SVCSop_l0' --path data --no-progress # celeba_generator.bin
- megadl 'https://mega.nz/#!gQlnAADB!ioLngYD5bK9P7_lhgybkiShonOauMMQ6EUDvJRUoY2A' --path data --no-progress && cd data && unzip tracking_data.zip && cd ..
# origin weights are from https://github.com/NifTK/NiftyNetModelZoo/tree/5-reorganising-with-lfs/unet_histology
- megadl 'https://mega.nz/#!RAFU1I4T!xjuol1lZ9t_hA67AxgAxp8w1JIb5FXm53617UXR0NO8' --path data --no-progress # frozen_unet_histology.pb
# TODO: Implement frozen_unet_histology.pb model conversion with OpenVINO
# (note that TensorFlow accepts input tensor of shape 1,952,1144,1,1,3)
script:
- source /opt/intel/openvino/bin/setupvars.sh -pyver 3.5
- export PYTHONPATH=$(ls modules | xargs -I {} sh -c 'printf $(pwd)/modules/{}:')$PYTHONPATH
- mkdir build && cd build
- cmake .. -DCMAKE_BUILD_TYPE=Release && make -j$(nproc --all)
# Run tests only for changes modules
- git diff --name-only HEAD^ ../modules/ | cut -d "/" -f2 | sed -E "s/[0-9]+_(.*)/\1/" | uniq | xargs -I '{}' sh -c './bin/test_{}'