gustavla / autocolorize

Automatic colorizaton of grayscale images using Deep Learning
BSD 3-Clause "New" or "Revised" License
220 stars 65 forks source link

caffe compilation failed #13

Open sajjo79 opened 6 years ago

sajjo79 commented 6 years ago

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

mezhou commented 6 years ago

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

amoazeni75 commented 3 years ago

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

amoazeni75 commented 3 years ago

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