From 035c6faac7994dff649571591da6559692303632 Mon Sep 17 00:00:00 2001 From: davidpagnon Date: Sat, 27 Jan 2024 01:44:25 +0100 Subject: [PATCH] solve Colab issue --- Sports2D/Sports2D.ipynb | 33 ++------------------------------- 1 file changed, 2 insertions(+), 31 deletions(-) diff --git a/Sports2D/Sports2D.ipynb b/Sports2D/Sports2D.ipynb index 9111628..88c3a7d 100644 --- a/Sports2D/Sports2D.ipynb +++ b/Sports2D/Sports2D.ipynb @@ -158,7 +158,8 @@ " !sed -i 's/execute_process(COMMAND git checkout master WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}\\/3rdparty\\/caffe)/execute_process(COMMAND git checkout f019d0dfe86f49d1140961f8c7dec22130c83154 WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}\\/3rdparty\\/caffe)/g' openpose/CMakeLists.txt\n", " # install system dependencies\n", " !apt-get -qq install -y libatlas-base-dev libprotobuf-dev libleveldb-dev libsnappy-dev libhdf5-serial-dev protobuf-compiler libgflags-dev libgoogle-glog-dev liblmdb-dev opencl-headers ocl-icd-opencl-dev libviennacl-dev\n", - " # build openpose\n", + " # build openpose # doing it twice seems to solve the issue\n", + " !cd openpose && rm -rf build || true && mkdir build && cd build && cmake .. && make -j`nproc` \n", " !cd openpose && rm -rf build || true && mkdir build && cd build && cmake .. && make -j`nproc` \n", " # Install body_25b model\n", " !wget posefs1.perception.cs.cmu.edu/OpenPose/models/pose/1_25BBkg/body_25b/pose_iter_XXXXXX.caffemodel -P /content/openpose/models/pose/body_25b\n", @@ -615,36 +616,6 @@ " config_dict.get('pose').get('BLAZEPOSE').update({'model_complexity':model_complexity_nb})" ] }, - { - "cell_type": "code", - "execution_count": 40, - "metadata": { - "colab": { - "base_uri": "https://localhost:8080/", - "height": 35 - }, - "id": "QAnqMLcolA6W", - "outputId": "0b8e2101-7dc3-405f-ec05-73b3ecb6d82e" - }, - "outputs": [ - { - "data": { - "application/vnd.google.colaboratory.intrinsic+json": { - "type": "string" - }, - "text/plain": [ - "'OpenPose'" - ] - }, - "execution_count": 40, - "metadata": {}, - "output_type": "execute_result" - } - ], - "source": [ - "pose_algo" - ] - }, { "cell_type": "markdown", "metadata": {