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

Neural mesh renderer installation problems using Windows #1

Closed benjiebob closed 5 years ago

benjiebob commented 5 years ago

With thanks to Sinéad Kearney

In rasterize_cuda_kernel.cu, the section inside:

if CUDA_ARCH < 600 and defined(CUDA_ARCH)

...

I had to replace with (on Windows with CUDA 10):

if !defined(CUDA_ARCH) || CUDA_ARCH >= 600

else

static inline device double atomicAdd(double address, double val) { unsigned long long int address_as_ull = (unsigned long long int)address; unsigned long long int old = address_as_ull, assumed; if (val==0.0) return longlong_as_double(old); do { assumed = old; old = atomicCAS(address_as_ull, assumed, double_as_longlong(val +longlong_as_double(assumed))); } while (assumed != old); return longlong_as_double(old); }

endif