Skip to content

Commit

Permalink
solve Colab issue
Browse files Browse the repository at this point in the history
  • Loading branch information
davidpagnon committed Jan 27, 2024
1 parent cf752ed commit 035c6fa
Showing 1 changed file with 2 additions and 31 deletions.
33 changes: 2 additions & 31 deletions Sports2D/Sports2D.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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": {
Expand Down

0 comments on commit 035c6fa

Please sign in to comment.