Giter Club home page Giter Club logo

Comments (8)

mrubashkin-svds avatar mrubashkin-svds commented on June 18, 2024 7

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.

luke14free avatar luke14free commented on June 18, 2024 3

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 imageand 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.

ProGamerGov avatar ProGamerGov commented on June 18, 2024 1

@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.

luanfujun avatar luanfujun commented on June 18, 2024

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.

martinbenson avatar martinbenson commented on June 18, 2024

@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.

NewETown avatar NewETown commented on June 18, 2024

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.

martinbenson avatar martinbenson commented on June 18, 2024

I removed the MATLAB/Octave dependency in my fork: https://github.com/martinbenson/deep-photo-styletransfer

from deep-photo-styletransfer.

NewETown avatar NewETown commented on June 18, 2024

@martinbenson Thanks! This is perfect

from deep-photo-styletransfer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.