benjiebob / SMALify

This repository contains an implementation for performing 3D animal (quadruped) reconstruction from a monocular image or video. The system adapts the pose (limb positions) and shape (animal type/height/weight) parameters for the SMAL deformable quadruped model, as well as camera parameters until the projected SMAL model aligns with 2D keypoints and silhouette segmentations extracted from the input frame(s).
MIT License
120 stars 18 forks source link

Issue with Pytorch3D on Windows #17

Closed benjiebob closed 4 years ago

benjiebob commented 4 years ago

If you are having problems installing PyTorch3D on Windows with PyTorch 1.6, try the following fixes:

  1. In file venv/Lib/site-packages/torch/include/pybind11/cast.h, change:

    • (l1449)explicit operator type&() { return*(this->value); }
    • to explicit operator type&() { return *((type*)this->value); }
  2. In file venv\Lib\site-packages\torch\include\torch\csrc\jit\runtime, change

    • (l160) static constexpr size_t DEPTH_LIMIT = 128;
    • to static const size_t DEPTH_LIMIT = 128;
  3. In file venv\Lib\site-packages\torch\include\torch\csrc\jit\api, change:

    • all instances of CONSTEXPR_EXCEPT_WIN_CUDA
    • to const