Skip to content

Commit 98a8760

Browse files
committed
Configure OpenPose before fixing Caffe
This way Caffe will be downloaded first in the configure script
1 parent 2ac8553 commit 98a8760

1 file changed

Lines changed: 11 additions & 8 deletions

File tree

.github/workflows/pluginbuild.yml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -40,24 +40,27 @@ jobs:
4040
shell: bash
4141
working-directory: ${{ env.OPENPOSE_PATH }}
4242
run: sudo apt-get install libopencv-dev && sudo bash ./scripts/ubuntu/install_deps.sh
43-
- name: Fix CAFFE SetTotalBytesLimit
44-
shell: bash
45-
working-directory: ${{ env.OPENPOSE_PATH }}
46-
run: |
47-
find . -name "io.cpp" -path "*/caffe/utils/*" -type f -exec sed -i 's/SetTotalBytesLimit(.*,.*)/SetTotalBytesLimit(268435456)/g' {} +
48-
# Backup command in case the path is slightly different
49-
find . -name "io.cpp" -path "*/caffe/src/caffe/util/*" -type f -exec sed -i 's/SetTotalBytesLimit(.*,.*)/SetTotalBytesLimit(268435456)/g' {} +
5043
- name: Install Libfreenect2 Dependencies
5144
shell: bash
5245
working-directory: ${{ env.LIBFREENECT_PATH }}
5346
run: sudo apt-get install libusb-1.0-0-dev libturbojpeg0-dev libglfw3-dev
54-
- name: Build and Install OpenPose
47+
- name: Configure OpenPose
5548
shell: bash
5649
working-directory: ${{ env.OPENPOSE_PATH }}
5750
run: |
5851
mkdir -p build
5952
cd build
6053
cmake .. -DCMAKE_BUILD_TYPE='Release' -DENABLE_PYTHON=OFF -DENABLE_PYTHON_BINDINGS=OFF -DGPU_MODE=CPU_ONLY -DUSE_CUDA=OFF -DDOWNLOAD_BODY_25_MODEL=OFF -DDOWNLOAD_BODY_COCO_MODEL=OFF -DDOWNLOAD_FACE_MODEL=OFF -DDOWNLOAD_HAND_MODEL=OFF
54+
- name: Fix CAFFE SetTotalBytesLimit
55+
shell: bash
56+
working-directory: ${{ env.OPENPOSE_PATH }}
57+
run: |
58+
find . -name "io.cpp" -path "*/caffe/src/caffe/util/*" -type f -exec sed -i 's/SetTotalBytesLimit(.*,.*)/SetTotalBytesLimit(kProtoReadBytesLimit)/g' {} +
59+
- name: Build OpenPose
60+
shell: bash
61+
working-directory: ${{ env.OPENPOSE_PATH }}
62+
run: |
63+
cd build
6164
make -j$(nproc)
6265
sudo make install
6366
- name: Build and Install Libfreenect2

0 commit comments

Comments
 (0)