Commit 7dacad08 authored by Yuxin Wu's avatar Yuxin Wu

cache CI depednencies

parent 4114ed88
...@@ -31,16 +31,23 @@ jobs: ...@@ -31,16 +31,23 @@ jobs:
python-version: [3.6] python-version: [3.6]
TF-version: [tensorflow==1.5.0, tensorflow-cpu==1.15.0] TF-version: [tensorflow==1.5.0, tensorflow-cpu==1.15.0]
steps: steps:
- uses: actions/checkout@v1 - uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }} - name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1 uses: actions/setup-python@v2
with: with:
python-version: ${{ matrix.python-version }} python-version: ${{ matrix.python-version }}
- name: Cache dependencies
uses: actions/cache@v2
with:
path: |
${{ env.pythonLocation }}/lib/python3.6/site-packages
key: ${{ runner.os }}-${{ matrix.TF-version }}-20200711
- name: Install dependencies - name: Install dependencies
run: | run: |
python -m pip install --upgrade pip python -m pip install --upgrade pip
python -m pip install scikit-image opencv-python lmdb h5py pyarrow python -m pip install scikit-image opencv-python lmdb h5py pyarrow
python -m pip install . python -m pip install -e .
python -c "import tensorpack.dataflow" python -c "import tensorpack.dataflow"
# check that dataflow can be imported alone without tensorflow # check that dataflow can be imported alone without tensorflow
python -c "import cv2; print('OpenCV '+ cv2.__version__)" python -c "import cv2; print('OpenCV '+ cv2.__version__)"
......
...@@ -84,7 +84,7 @@ if __name__ == '__main__': ...@@ -84,7 +84,7 @@ if __name__ == '__main__':
HostMemoryTracker(), HostMemoryTracker(),
ThroughputTracker(samples_per_step=cfg.TRAIN.NUM_GPUS), ThroughputTracker(samples_per_step=cfg.TRAIN.NUM_GPUS),
EstimatedTimeLeft(median=True), EstimatedTimeLeft(median=True),
SessionRunTimeout(60000), # 1 minute timeout SessionRunTimeout(600000), # 10 minute timeout
GPUUtilizationTracker() GPUUtilizationTracker()
] ]
if cfg.TRAIN.EVAL_PERIOD > 0: if cfg.TRAIN.EVAL_PERIOD > 0:
......
...@@ -5,8 +5,8 @@ set -v ...@@ -5,8 +5,8 @@ set -v
. /workspace/venv/bin/activate . /workspace/venv/bin/activate
pip install -e . pip install -e .
pip install tensorflow-gpu==1.14.0 pip install tensorflow-gpu==1.15.0
pip install opencv-python scipy pip install opencv-python-headless scipy pycocotools>=2.0.1
echo "Extracting ..." echo "Extracting ..."
cd ./.data/vision/coco cd ./.data/vision/coco
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment