Comments (8)
For Clarity on @luke14free comment:
On the command line:
cd [parent directory of deep-photo-styletransfer]
sudo apt-get install liboctave-dev
wget https://downloads.sourceforge.net/project/octave/Octave%20Forge%20Packages/Individual%20Package%20Releases/image-2.6.1.tar.gz?r=&ts=1491430627&use_mirror=superb-sea2
mv image-2.6.1.tar.gz?r= image-2.6.1.tar.gz
Then run inside of octave, by launching octave on the command line:
octave
pkg install image-2.6.1.tar.gz
pkg load image
run('deep-photo-styletransfer/gen_laplacian/gen_laplacian.m')
from deep-photo-styletransfer.
first run
$ sudo apt-get install liboctave-dev
then from octave after you downloaded image-2.6.1.tar.gz from https://octave.sourceforge.io/image/ run pkg install image-2.6.1.tar.gz
, finally run pkg load image
and then execute the script. Note that then I had an issue with some directories not being correctly imported (and there was an undefined getLaplacian1()), to fix it simply change the first two lines of the matlab file to:
addpath matting/
addpath gaimc/
(basically reversing the slash)
from deep-photo-styletransfer.
@luanfujun Is using Octave: https://www.gnu.org/software/octave/ instead of Matlab possible without modifying the code? Octave appears to support all the required Matlab stuff, and it's free and open source software.
Edit: Testing Octave:
ubuntu@ip-Address:~/deep-photo-styletransfer$ octave
octave:1> run('gen_laplacian/gen_laplacian.m')
warning: addpath: matting\: No such file or directory
warning: addpath: gaimc\: No such file or directory
Working on image index = 1
warning: your version of GraphicsMagick limits images to 16 bits per pixel
'im2double' undefined near line 10 column 13
error: called from 'gen_laplacian.m' in file /home/ubuntu/deep-photo-styletransfer/gen_laplacian/gen_laplacian.m near line 10, column 11
octave:1>
from deep-photo-styletransfer.
Ah... Yes it is possible. The only Matlab part in this project is to compute the matting Laplacian matrix, Eq. 12 in this paper with their Matlab code. Similar issue to #1.
from deep-photo-styletransfer.
@luke14free I got Octave to work by doing the same things that you described, but the .Mat files it creates don't work in the deepmatting script for me. Do they work for you?
from deep-photo-styletransfer.
Is there a solution for this running on Mac instead of Ubuntu? I'm running into the same 'im2double' undefined
problem trying to run run('gen_laplacian/gen_laplacian.m')
in Octave :(
from deep-photo-styletransfer.
I removed the MATLAB/Octave dependency in my fork: https://github.com/martinbenson/deep-photo-styletransfer
from deep-photo-styletransfer.
@martinbenson Thanks! This is perfect
from deep-photo-styletransfer.
Related Issues (20)
- CUDA runtime error(8),invalid device function HOT 1
- Question : cuda_utils.cu is for CUDA acceleration?
- how can I run it with nodejs
- Lual_openlib problem HOT 2
- performance time
- Has this work been applied in any adobe software?
- Style Transfer for images without segmentation masks HOT 1
- Doesn't work without Matlab HOT 1
- I find it hard to understand the fuction "deepcopy", could you give me some tips please?
- some confuse about covariance formular
- the result is not good when i run my example
- Licence Problem HOT 3
- 大佬,分割网络原来是150类,合并后的文件在哪 HOT 1
- make clean && make includes THC.h but it's not found HOT 2
- I run the project as readMe says,but the results are gray image,how can i do?
- Try Running on Kaggle ?
- 数据在哪儿下载呢,提供的网址里面只有论文没有找到数据呢
- makefile:10: recipe for target 'libcuda_utils.so' failed HOT 1
- 'imresize' undefined near line 15 column 11 HOT 1
- deepmatting_seg.lua:119: attempt to index a nil value HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from deep-photo-styletransfer.