luanfujun / deep-painterly-harmonization

Code and data for paper "Deep Painterly Harmonization": https://arxiv.org/abs/1804.03189
6.08k stars 628 forks source link

(marcduda fork) makefile:10: recipe for target 'libcuda_utils.so' failed #44

Closed AlexRMU closed 4 years ago

AlexRMU commented 4 years ago

Colab code:

!git clone https://github.com/marcduda/deep-painterly-harmonization

!apt install octave
!apt install caffe-cuda
!apt-get update
!apt-get install cuda
!pip install --upgrade tensorflow-gpu

%cd /content/deep-painterly-harmonization

!sh models/download_models.sh

!make clean && make

Error: !make clean && make

find . -type f | xargs -n 5 touch
rm -f libcuda_utils.so  
/usr/local/cuda-10.1/bin/nvcc -arch sm_35 -O3 -DNDEBUG -Xcompiler -fopenmp --compiler-options '-fPIC' -o libcuda_utils.so --shared cuda_utils.cu -I/content/torch/install/include/THC -I/content/torch/install/include/TH -I/content/torch/install/include -L/content/torch/install/lib -Xlinker -rpath,/content/torch/install/lib -lluaT -lTHC -lTH -lpng -lluajit -lgomp
cuda_utils.cu:2:11: fatal error: lua.h: No such file or directory
  #include "lua.h"
           ^~~~~~~
compilation terminated.
makefile:10: recipe for target 'libcuda_utils.so' failed
make: *** [libcuda_utils.so] Error 1
marcduda commented 4 years ago

@AlexRMU it is not meant to be merged or pulled in this repo, I just forked it so I can make it work on colab and the two files that I changed only work if your executing it as I put it in the colab notebook otherwise it's useless. there is the collab notebook that I added where you can execute it and it works this fork is just a work around to play with the author's code in colab nothing more.