autocolorize icon indicating copy to clipboard operation
autocolorize copied to clipboard

caffe compilation failed

Open sajjo79 opened this issue 6 years ago • 3 comments

Hi, I am trying to compile caffe by including your layers, however i get following error message src/caffe/layers/extended_image_data_layer.cpp:39:21: fatal error: maskApi.h: No such file or directory

sajjo79 avatar Jun 22 '18 11:06 sajjo79

@sajjo79 Hello,I would like to ask you that have you built that caffe now? Thanks a lot.

mezhou avatar Sep 17 '18 09:09 mezhou

Hi, I have the same issue. Did you solve it?

amoazeni75 avatar May 24 '21 12:05 amoazeni75

Hi, I found out how to solve this issue. First, you need to clone the cocoapi to your python directory; for example, /lib/python3.5/site-packages/ git clone https://github.com/cocodataset/cocoapi.git Then cd into cocoapi/PyhtonAPI and run these commands:

  1. 2to3 . -w Note that you might have to install a package to get 2to3
  2. python3 setup.py install

After installing it, add this line to your Makefile.config: lib/python3.5/site-packages/cocoapi/common this directory includes the maskApi.h file

amoazeni75 avatar May 24 '21 13:05 amoazeni75