Skip to content

The models are not downloading correctly when building from source on macos #2353

@ipflowss

Description

@ipflowss

I cloned the current openpose repository on an M3 running macos 15.5
I do not think the body, face, and hand models were downloaded. For instance the body file took over 15 minutes until I hit control-C and canceled the cmake command. The next time I ran the cmake command the line following "Downloading BODY_25" line says "Model already exists." Is there a way to verify the models were downloaded completely?

Then rm -rf build and started over and there were errors and timeouts. See the second output snippet. Help please.

I used the following command to build

cmake -DCMAKE_POLICY_VERSION_MINIMUM=3.5  ..
❯ cmake -DCMAKE_POLICY_VERSION_MINIMUM=3.5  ..
CMake Warning (dev) at CMakeLists.txt:19 (project):
  cmake_minimum_required() should be called prior to this top-level project()
  call.  Please see the cmake-commands(7) manual for usage documentation of
  both commands.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Deprecation Warning at CMakeLists.txt:34 (cmake_minimum_required):
  Compatibility with CMake < 3.10 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
  to tell CMake that the project requires at least <min> but has been updated
  to work with policies introduced by <max> or earlier.


-- GCC detected, adding compile flags
-- Building CPU Only.
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Found GFlags: /opt/homebrew/include
-- Found gflags  (include: /opt/homebrew/include, library: /opt/homebrew/lib/libgflags.dylib)
-- Found Glog: /opt/homebrew/include
-- Found glog    (include: /opt/homebrew/include, library: /opt/homebrew/lib/libglog.dylib)
CMake Warning at /opt/homebrew/share/cmake/Modules/FindProtobuf.cmake:685 (message):
  Protobuf compiler version 25.3 doesn't match library version 5.29.3
Call Stack (most recent call first):
  CMakeLists.txt:429 (find_package)


-- Found Protobuf: /opt/homebrew/lib/libprotobuf.dylib (found version "5.29.3")
-- Found OpenCV: /usr/local (found version "4.13.0")
-- Could NOT find OpenMP_C (missing: OpenMP_C_FLAGS OpenMP_C_LIB_NAMES)
-- Could NOT find OpenMP_CXX (missing: OpenMP_CXX_FLAGS OpenMP_CXX_LIB_NAMES)
-- Could NOT find OpenMP (missing: OpenMP_C_FOUND OpenMP_CXX_FOUND)
-- Caffe will be downloaded from source now. NOTE: This process might take several minutes depending
        on your internet connection.
-- Caffe has already been downloaded.
HEAD is now at 1807aada Added Ampere arch's (CUDA11)
-- Caffe will be built from source now.
-- Download the models.
-- Downloading BODY_25 model...
-- Model already exists.
-- Not downloading body (COCO) model
-- Not downloading body (MPI) model
-- Downloading face model...
-- NOTE: This process might take several minutes depending on your internet connection.
^C
❯ cmake -DCMAKE_POLICY_VERSION_MINIMUM=3.5  ..
CMake Warning (dev) at CMakeLists.txt:19 (project):
  cmake_minimum_required() should be called prior to this top-level project()
  call.  Please see the cmake-commands(7) manual for usage documentation of
  both commands.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Deprecation Warning at CMakeLists.txt:34 (cmake_minimum_required):
  Compatibility with CMake < 3.10 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
  to tell CMake that the project requires at least <min> but has been updated
  to work with policies introduced by <max> or earlier.


-- GCC detected, adding compile flags
-- Building CPU Only.
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Found GFlags: /opt/homebrew/include
-- Found gflags  (include: /opt/homebrew/include, library: /opt/homebrew/lib/libgflags.dylib)
-- Found Glog: /opt/homebrew/include
-- Found glog    (include: /opt/homebrew/include, library: /opt/homebrew/lib/libglog.dylib)
CMake Warning at /opt/homebrew/share/cmake/Modules/FindProtobuf.cmake:685 (message):
  Protobuf compiler version 25.3 doesn't match library version 5.29.3
Call Stack (most recent call first):
  CMakeLists.txt:429 (find_package)


-- Found Protobuf: /opt/homebrew/lib/libprotobuf.dylib (found version "5.29.3")
-- Found OpenCV: /usr/local (found version "4.13.0")
-- Could NOT find OpenMP_C (missing: OpenMP_C_FLAGS OpenMP_C_LIB_NAMES)
-- Could NOT find OpenMP_CXX (missing: OpenMP_CXX_FLAGS OpenMP_CXX_LIB_NAMES)
-- Could NOT find OpenMP (missing: OpenMP_C_FOUND OpenMP_CXX_FOUND)
-- Caffe will be downloaded from source now. NOTE: This process might take several minutes depending
        on your internet connection.
-- Caffe has already been downloaded.
HEAD is now at 1807aada Added Ampere arch's (CUDA11)
-- Caffe will be built from source now.
-- Download the models.
-- Downloading BODY_25 model...
-- Model already exists.
-- Not downloading body (COCO) model
-- Not downloading body (MPI) model
-- Downloading face model...
-- Model already exists.
-- Downloading hand model...
-- NOTE: This process might take several minutes depending on your internet connection.
^C
❯ cmake -DCMAKE_POLICY_VERSION_MINIMUM=3.5  ..
CMake Warning (dev) at CMakeLists.txt:19 (project):
  cmake_minimum_required() should be called prior to this top-level project()
  call.  Please see the cmake-commands(7) manual for usage documentation of
  both commands.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Deprecation Warning at CMakeLists.txt:34 (cmake_minimum_required):
  Compatibility with CMake < 3.10 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
  to tell CMake that the project requires at least <min> but has been updated
  to work with policies introduced by <max> or earlier.


-- GCC detected, adding compile flags
-- Building CPU Only.
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Found GFlags: /opt/homebrew/include
-- Found gflags  (include: /opt/homebrew/include, library: /opt/homebrew/lib/libgflags.dylib)
-- Found Glog: /opt/homebrew/include
-- Found glog    (include: /opt/homebrew/include, library: /opt/homebrew/lib/libglog.dylib)
CMake Warning at /opt/homebrew/share/cmake/Modules/FindProtobuf.cmake:685 (message):
  Protobuf compiler version 25.3 doesn't match library version 5.29.3
Call Stack (most recent call first):
  CMakeLists.txt:429 (find_package)


-- Found Protobuf: /opt/homebrew/lib/libprotobuf.dylib (found version "5.29.3")
-- Found OpenCV: /usr/local (found version "4.13.0")
-- Could NOT find OpenMP_C (missing: OpenMP_C_FLAGS OpenMP_C_LIB_NAMES)
-- Could NOT find OpenMP_CXX (missing: OpenMP_CXX_FLAGS OpenMP_CXX_LIB_NAMES)
-- Could NOT find OpenMP (missing: OpenMP_C_FOUND OpenMP_CXX_FOUND)
-- Caffe will be downloaded from source now. NOTE: This process might take several minutes depending
        on your internet connection.
-- Caffe has already been downloaded.
HEAD is now at 1807aada Added Ampere arch's (CUDA11)
-- Caffe will be built from source now.
-- Download the models.
-- Downloading BODY_25 model...
-- Model already exists.
-- Not downloading body (COCO) model
-- Not downloading body (MPI) model
-- Downloading face model...
-- Model already exists.
-- Downloading hand model...
-- Model already exists.
-- Models Downloaded.
-- Configuring done (0.5s)
-- Generating done (0.0s)
-- Build files have been written to: /Users/noah/3d-project/openpose/build
❯ cmake ..
CMake Warning (dev) at CMakeLists.txt:24 (project):
  cmake_minimum_required() should be called prior to this top-level project()
  call.  Please see the cmake-commands(7) manual for usage documentation of
  both commands.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Error at CMakeLists.txt:39 (cmake_minimum_required):
  Compatibility with CMake < 3.5 has been removed from CMake.

  Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
  to tell CMake that the project requires at least <min> but has been updated
  to work with policies introduced by <max> or earlier.

  Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.


-- Configuring incomplete, errors occurred!
❯ cmake -DCMAKE_POLICY_VERSION_MINIMUM=3.5 ..
CMake Warning (dev) at CMakeLists.txt:24 (project):
  cmake_minimum_required() should be called prior to this top-level project()
  call.  Please see the cmake-commands(7) manual for usage documentation of
  both commands.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Deprecation Warning at CMakeLists.txt:39 (cmake_minimum_required):
  Compatibility with CMake < 3.10 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
  to tell CMake that the project requires at least <min> but has been updated
  to work with policies introduced by <max> or earlier.


-- GCC detected, adding compile flags
-- Building CPU Only.
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Found GFlags: /opt/homebrew/include
-- Found gflags  (include: /opt/homebrew/include, library: /opt/homebrew/lib/libgflags.dylib)
-- Found Glog: /opt/homebrew/include
-- Found glog    (include: /opt/homebrew/include, library: /opt/homebrew/lib/libglog.dylib)
CMake Warning at /Applications/CMake.app/Contents/share/cmake-4.0/Modules/FindProtobuf.cmake:685 (message):
  Protobuf compiler version 25.3 doesn't match library version 5.29.3
Call Stack (most recent call first):
  CMakeLists.txt:434 (find_package)


-- Found Protobuf: /opt/homebrew/lib/libprotobuf.dylib (found version "5.29.3")
-- Found OpenCV: /usr/local (found version "4.13.0")
-- Could NOT find OpenMP_C (missing: OpenMP_C_FLAGS OpenMP_C_LIB_NAMES)
-- Could NOT find OpenMP_CXX (missing: OpenMP_CXX_FLAGS OpenMP_CXX_LIB_NAMES)
-- Could NOT find OpenMP (missing: OpenMP_C_FOUND OpenMP_CXX_FOUND)
-- Caffe will be downloaded from source now. NOTE: This process might take several minutes depending
        on your internet connection.
-- Caffe has already been downloaded.
error: pathspec '1807aad' did not match any file(s) known to git
-- Caffe will be built from source now.
-- Download the models.
-- Downloading BODY_25 model...
-- NOTE: This process might take several minutes depending on your internet connection.
CMake Error at cmake/Utils.cmake:8 (file):
  file DOWNLOAD cannot compute hash on failed download

    status: [28;"Timeout was reached"]
Call Stack (most recent call first):
  CMakeLists.txt:991 (download_model)


-- Not downloading body (COCO) model
-- Not downloading body (MPI) model
-- Downloading face model...
-- NOTE: This process might take several minutes depending on your internet connection.
CMake Error at cmake/Utils.cmake:8 (file):
  file DOWNLOAD cannot compute hash on failed download

    status: [28;"Timeout was reached"]
Call Stack (most recent call first):
  CMakeLists.txt:997 (download_model)


-- Downloading hand model...
-- NOTE: This process might take several minutes depending on your internet connection.
CMake Error at cmake/Utils.cmake:8 (file):
  file DOWNLOAD cannot compute hash on failed download

    status: [28;"Timeout was reached"]
Call Stack (most recent call first):
  CMakeLists.txt:999 (download_model)


-- Models Downloaded.
-- Configuring incomplete, errors occurred!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions