GithubHelp home page GithubHelp logo

Comments (8)

ebenolson avatar ebenolson commented on June 2, 2024

I assume you replaced the Conv2DDNNLayer with a Conv2DLayer to run on CPU. In this case, you need to flip the filter kernels, because Conv2DDNNLayer by default performs a correlation rather than a convolution.

try running this after loading the parameters:

for layer in net.values():
    if type(layer) == ConvLayer:
        W = layer.W.get_value()
        W = W[:, :, ::-1, ::-1]
        layer.W.set_value(W)

from recipes.

NetzerEitan avatar NetzerEitan commented on June 2, 2024

Thank

I tried as you suggested, but it did not help.

from recipes.

ebenolson avatar ebenolson commented on June 2, 2024

I had a typo, should be W = W[:, :, ::-1, ::-1].

from recipes.

NetzerEitan avatar NetzerEitan commented on June 2, 2024

Yes I noticed tried both...

from recipes.

ebenolson avatar ebenolson commented on June 2, 2024

Have you made any other changes to the code? What versions of Theano and Lasagne are you using?

from recipes.

NetzerEitan avatar NetzerEitan commented on June 2, 2024

No, I have not changed anything.

theano.version = 0.7.0.dev-15c90dd36c95ea2989a2c0085399147d15a6a477
lasagne.version = 0.2.dev1

from recipes.

ebenolson avatar ebenolson commented on June 2, 2024

Hmm.. it works for me: https://gist.github.com/ebenolson/e41398fe067d42fc16d8, if you still see a different result try running the Lasagne test suite, perhaps there is something wrong with your installation.

from recipes.

NetzerEitan avatar NetzerEitan commented on June 2, 2024

Thank you very much I will try.

from recipes.

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.