Coder Social home page Coder Social logo

Run this without CUDA? about waifu2x HOT 5 CLOSED

kmod-midori avatar kmod-midori commented on July 23, 2024
Run this without CUDA?

from waifu2x.

Comments (5)

nagadomi avatar nagadomi commented on July 23, 2024

No.

from waifu2x.

an-electric-sheep avatar an-electric-sheep commented on July 23, 2024

It may be possible to run this on a CPU by changing all instances of CudaTensor to FloatTensor, replacing cudnn module with nn and replacing various :cuda() method calls in the source.

With additional substitutions OpenCL might work for applying the model but not for training it.

But this will be extremely slow.

from waifu2x.

nagadomi avatar nagadomi commented on July 23, 2024

You are right. In officially, waifu2x supports only cuDNN. but,
You can run on CPU If replace cudnn.SpatialConvolution with nn.SpatialConvolutionMM in lib/srcnn.lua and use https://github.com/soumith/fakecuda .

from waifu2x.

nagadomi avatar nagadomi commented on July 23, 2024

and this code is cool.

waifu2x upscaling, done in 35 lines of Python: https://mrcn.st/t/waifu2x.py  
https://mrcn.st/t/scale2.0x_model.json … PyOpenCL version next? 

from https://twitter.com/marcan42/status/601456859556417536

from waifu2x.

darkdragon-001 avatar darkdragon-001 commented on July 23, 2024

from https://twitter.com/marcan42/status/601456859556417536

OpenCL implementation from the same guy: https://github.com/marcan/cl-waifu2x

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.