Coder Social home page Coder Social logo

Comments (6)

c0d3rman avatar c0d3rman commented on July 23, 2024

This happened to me too. Adding
require "nn"
at the top of waifu2x.lua (And train.lua and any other files where the error shows up) fixed it.

from waifu2x.

Saren-Arterius avatar Saren-Arterius commented on July 23, 2024

This is new...

/usr/local/bin/luajit: /usr/local/share/lua/5.1/torch/File.lua:260: unknown Torch class <torch.CudaTensor>
stack traceback:
    [C]: in function 'error'
    /usr/local/share/lua/5.1/torch/File.lua:260: in function 'readObject'
    /usr/local/share/lua/5.1/torch/File.lua:282: in function 'readObject'
    /usr/local/share/lua/5.1/torch/File.lua:268: in function 'readObject'
    /usr/local/share/lua/5.1/torch/File.lua:305: in function 'load'
    waifu2x.lua:32: in function 'convert_image'
    waifu2x.lua:116: in function 'waifu2x'
    waifu2x.lua:121: in main chunk
    [C]: in function 'dofile'
    /usr/local/lib/luarocks/rocks/trepl/scm-1/bin/th:131: in main chunk
    [C]: at 0x00404ac0

from waifu2x.

nagadomi avatar nagadomi commented on July 23, 2024

Fixed?

from waifu2x.

Saren-Arterius avatar Saren-Arterius commented on July 23, 2024

I think at least it's my own problem now.

/usr/local/bin/luajit: /usr/local/share/lua/5.1/trepl/init.lua:363: /tmp/luarocks_cutorch-scm-1-178/cutorch/lib/THC/THCGeneral.c(10) : cuda runtime error (38) : no CUDA-capable device is detected at /tmp/luarocks_cutorch-scm-1-178/cutorch/lib/THC/THCGeneral.c:241
stack traceback:
    [C]: in function 'error'
    /usr/local/share/lua/5.1/trepl/init.lua:363: in function 'require'
    /root/waifu2x/lib/portable.lua:2: in main chunk
    [C]: in function 'require'
    waifu2x.lua:1: in main chunk
    [C]: in function 'dofile'
    /usr/local/lib/luarocks/rocks/trepl/scm-1/bin/th:131: in main chunk
    [C]: at 0x00404ac0

from waifu2x.

Saren-Arterius avatar Saren-Arterius commented on July 23, 2024

Yep, confirmed it's my problem. I won't use docker for waifu2x anymore, because torch7 can be installed in Arch from now.

from waifu2x.

glubsy avatar glubsy commented on July 23, 2024

Yeah, your docker image doesn't work, Saren. Just tried it.

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.