GithubHelp home page GithubHelp logo

Comments (4)

vedaldi avatar vedaldi commented on May 2, 2024

Hi, the problem is that the intermediate models are saved either in GPU or CPU format, depending on the initial setting. The solution would be to use vl_simplenn_move() right after loading the intermediate model. We should add this to a future version.

On 8 Jan 2015, at 18:05, guanggz [email protected] wrote:

When i interrupt the example code, say cnn_mnist with opts.train.useGpu = false, and change it to GPU mode by doing opts.train.useGpu = true, it gives errors like

resuming by loading epoch 59
training: epoch 60: processing batch 1 of 600 ...Error using vl_nnconv
DATA and FILTERS are not both CPU or GPU arrays.
Also, if I complete run can_mnist in GPU mode, it will skip to run again in CPU mode.
Any idea that I can switch btw CPU and GPU freely and start from the beginning as I wish?

Thanks in advance.


Reply to this email directly or view it on GitHub #37.

from matconvnet.

 avatar commented on May 2, 2024

Hi Andrea, thanks for quick reply.
It is a great function for notebooks to carry on with unfinished jobs. But as for now, could you suggest some quick fix/hints for this problem? thx.
On 08 Jan 2015, at 19:22, Andrea Vedaldi [email protected] wrote:

Hi, the problem is that the intermediate models are saved either in GPU or CPU format, depending on the initial setting. The solution would be to use vl_simplenn_move() right after loading the intermediate model. We should add this to a future version.

On 8 Jan 2015, at 18:05, guanggz [email protected] wrote:

When i interrupt the example code, say cnn_mnist with opts.train.useGpu = false, and change it to GPU mode by doing opts.train.useGpu = true, it gives errors like

resuming by loading epoch 59
training: epoch 60: processing batch 1 of 600 ...Error using vl_nnconv
DATA and FILTERS are not both CPU or GPU arrays.
Also, if I complete run can_mnist in GPU mode, it will skip to run again in CPU mode.
Any idea that I can switch btw CPU and GPU freely and start from the beginning as I wish?

Thanks in advance.


Reply to this email directly or view it on GitHub #37.


Reply to this email directly or view it on GitHub.

from matconvnet.

vedaldi avatar vedaldi commented on May 2, 2024

Hi, yes of course. Simply use vl_simplenn_move() to convert the model to GPU or CPU as needed right after the load instruction in cnn_Train.m

On 8 Jan 2015, at 18:33, guanggz [email protected] wrote:

The solution would be to use vl_simplenn_move() right after loading the intermediate model.

from matconvnet.

 avatar commented on May 2, 2024

Thanks! good to go again :D
On 08 Jan 2015, at 19:40, Andrea Vedaldi [email protected] wrote:

vl_simplenn_move()

from matconvnet.

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.