facebookresearch / DensePose

A real-time approach for mapping all human pixels of 2D RGB images to a 3D surface-based model of the body
http://densepose.org
Other
6.95k stars 1.29k forks source link

make ops protobuf version? #151

Open htzheng opened 5 years ago

htzheng commented 5 years ago

when make ops, I encounter the following issue. From https://github.com/caffe2/caffe2/issues/1684, I fully understand it's caused by inconstancy between protobuf runtime library and source code. However, I do want to know which specific protobuf version should I use?

I have tried conda install protobuf=3.5.1 and conda install protobuf=3.2.0, but neither work

The error looks like these:

from /fileserver//Cloth_lib/DensePose-master/detectron/ops/zero_even_op.cc:17: /fileserver//local/anaconda2/envs/densepose/lib/python2.7/site-packages/torch/lib/include/caffe2/proto/caffe2.pb.h:12:2: error: #error This file was generated by a newer version of protoc which is

error This file was generated by a newer version of protoc which is

^ /fileserver//local/anaconda2/envs/densepose/lib/python2.7/site-packages/torch/lib/include/caffe2/proto/caffe2.pb.h:13:2: error: #error incompatible with your Protocol Buffer headers. Please update

error incompatible with your Protocol Buffer headers. Please update

^ /fileserver//local/anaconda2/envs/densepose/lib/python2.7/site-packages/torch/lib/include/caffe2/proto/caffe2.pb.h:14:2: error: #error your headers.

Anikily commented 5 years ago

hi@htzheng,i have the same problem.Have you solved it?

Johnqczhang commented 5 years ago

when make ops, I encounter the following issue. From facebookarchive/caffe2#1684, I fully understand it's caused by inconstancy between protobuf runtime library and source code. However, I do want to know which specific protobuf version should I use?

I have tried conda install protobuf=3.5.1 and conda install protobuf=3.2.0, but neither work

The error looks like these:

from /fileserver//Cloth_lib/DensePose-master/detectron/ops/zero_even_op.cc:17: /fileserver//local/anaconda2/envs/densepose/lib/python2.7/site-packages/torch/lib/include/caffe2/proto/caffe2.pb.h:12:2: error: #error This file was generated by a newer version of protoc which is

error This file was generated by a newer version of protoc which is

^ /fileserver//local/anaconda2/envs/densepose/lib/python2.7/site-packages/torch/lib/include/caffe2/proto/caffe2.pb.h:13:2: error: #error incompatible with your Protocol Buffer headers. Please update

error incompatible with your Protocol Buffer headers. Please update

^ /fileserver//local/anaconda2/envs/densepose/lib/python2.7/site-packages/torch/lib/include/caffe2/proto/caffe2.pb.h:14:2: error: #error your headers.

Did you install caffe2 from source code or conda install? For the latter case, an installation guide can be found here.

hanabi7 commented 4 years ago

you should use protobuf version==3.6.1