luanfujun / deep-painterly-harmonization

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

any luck getting this going with fastAI on colab? #40

Open IEWbgfnYDwHRoRRSKtkdyMDUzgdwuBYgDKtDJWd opened 5 years ago

IEWbgfnYDwHRoRRSKtkdyMDUzgdwuBYgDKtDJWd commented 5 years ago

Seems like no one has been able to do this? I have been fiddling for a few hours, figured I was ask here while still working. thanks.

IEWbgfnYDwHRoRRSKtkdyMDUzgdwuBYgDKtDJWd commented 5 years ago

[image: TIM图片20191013191853.png]

Doesn't load?

ghost commented 5 years ago

你运行成功了吗?

AlexRMU commented 4 years ago

still not working on colab

marcduda commented 4 years ago

It works by installing torch in colab, I did a fork of the repo and add some modification to the makefile and gen_all.py files to be able to launch it in colab, there is a notebook as well that you can directly use https://github.com/marcduda/deep-painterly-harmonization

AlexRMU commented 4 years ago

@marcduda in deep_painterly_harmonization_colab.ipynb !make clean && make error: find . -type f | xargs -n 5 touch rm -f libcuda_utils.so /usr/local/cuda-8.0/bin/nvcc -arch sm_35 -O3 -DNDEBUG -Xcompiler -fopenmp --compiler-options '-fPIC' -o libcuda_utils.so --shared cuda_utils.cu -I/home/ubuntu/torch/install/include/THC -I/home/ubuntu/torch/install/include/TH -I/home/ubuntu/torch/install/include -L/home/ubuntu/torch/install/lib -Xlinker -rpath,/home/ubuntu/torch/install/lib -lluaT -lTHC -lTH -lpng -lluajit -lgomp make: /usr/local/cuda-8.0/bin/nvcc: Command not found makefile:10: recipe for target 'libcuda_utils.so' failed make: *** [libcuda_utils.so] Error 127

!python gen_all.py error: sh: 1: th: not found

marcduda commented 4 years ago

i refreshed the repo, can you retry ?

AlexRMU commented 4 years ago

@marcduda All errors remain. Can you give a link to collab that works for you? Or a copy of the code with execution logs.

marcduda commented 4 years ago

https://github.com/marcduda/deep-painterly-harmonization/blob/master/deep_painterly_harmonization.ipynb

AlexRMU commented 4 years ago

I copied all the code from there and got errors. But then I just clicked "Open in Colab" and everything worked :-\

eyaler commented 2 years ago

a working colab: https://github.com/luanfujun/deep-painterly-harmonization/issues/63