Coder Social home page Coder Social logo

Failing on Mac OS X 10.11 about waifu2x HOT 5 OPEN

nagadomi avatar nagadomi commented on July 23, 2024
Failing on Mac OS X 10.11

from waifu2x.

Comments (5)

nagadomi avatar nagadomi commented on July 23, 2024

Does ./images/miku_small.png exist?
It seems that input file does not exist.
Try

th waifu2x -i path/to/input_image.jpg -o output.png

And I will fix error handling for it.

from waifu2x.

GRMrGecko avatar GRMrGecko commented on July 23, 2024

The file does exist.

waifu2x grmrgecko$ ls ./images/miku_small.png
./images/miku_small.png
waifu2x grmrgecko$ th waifu2x.lua -i ./images/miku_small.png -o output.png
/Users/grmrgecko/torch/install/bin/luajit: .../torch/install/share/lua/5.1/nn/SpatialConvolutionMM.lua:73: attempt to index field 'nn' (a nil value)
stack traceback:
    .../torch/install/share/lua/5.1/nn/SpatialConvolutionMM.lua:73: in function 'updateOutput'
    .../grmrgecko/torch/install/share/lua/5.1/nn/Sequential.lua:44: in function 'forward'
    lib/reconstruct.lua:41: in function 'reconstruct_rgb'
    lib/reconstruct.lua:153: in function 'image_f'
    waifu2x.lua:56: in function 'convert_image'
    waifu2x.lua:198: in function 'waifu2x'
    waifu2x.lua:203: in main chunk
    [C]: in function 'dofile'
    ...ecko/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:145: in main chunk
    [C]: at 0x010b910bc0
waifu2x grmrgecko$ th waifu2x.lua -i /Users/grmrgecko/waifu2x/images/miku_small.png -o output.png
/Users/grmrgecko/torch/install/bin/luajit: .../torch/install/share/lua/5.1/nn/SpatialConvolutionMM.lua:73: attempt to index field 'nn' (a nil value)
stack traceback:
    .../torch/install/share/lua/5.1/nn/SpatialConvolutionMM.lua:73: in function 'updateOutput'
    .../grmrgecko/torch/install/share/lua/5.1/nn/Sequential.lua:44: in function 'forward'
    lib/reconstruct.lua:41: in function 'reconstruct_rgb'
    lib/reconstruct.lua:153: in function 'image_f'
    waifu2x.lua:56: in function 'convert_image'
    waifu2x.lua:198: in function 'waifu2x'
    waifu2x.lua:203: in main chunk
    [C]: in function 'dofile'
    ...ecko/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:145: in main chunk
    [C]: at 0x0105716bc0
waifu2x grmrgecko$ ls /Users/grmrgecko/waifu2x/images/miku_small.png
/Users/grmrgecko/waifu2x/images/miku_small.png

from waifu2x.

nagadomi avatar nagadomi commented on July 23, 2024

I think this issue is caused by PNG loading error.
Did you install libpng?

from waifu2x.

GRMrGecko avatar GRMrGecko commented on July 23, 2024

Yes. libpng is installed. Now, csnappy and lua-csnappy is not as they both fail to compile on OS X.

from waifu2x.

nagadomi avatar nagadomi commented on July 23, 2024

snappy is required in training script only.

from waifu2x.

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.