Git Product home page Git Product logo

Comments (3)

soumith avatar soumith commented on July 30, 2024

image.scale will help scale up the visualization.
image.save (as you have seen) will help visualize outside interactive notebook.
Otherwise, the display package will also work, as seen in the dcgan.torch code

from dcgan.torch.

aferriss avatar aferriss commented on July 30, 2024

I think I am misunderstanding how these weights can be visualized. Is the image I posted above the entire set of kernels for that layer? I'm not sure I understand exactly how to project the other layers into pixel space. For instance if I take the first conv layer (weight:size = 100x1024x4x4), does it need to be narrowed to a three channel mapping as:

filters=net:get(1).weight
filters=filters:narrow(2, 1, 3)
image.toDisplayTensor{input=filters}
image.save("filters.png", filters)

And then, how would I visualize the features that are maximally activated by the training data? I guess I am looking at the deconvnet paper and wonder if there are any examples of this in torch?

from dcgan.torch.

soumith avatar soumith commented on July 30, 2024

the filters from other layers have to be visualized as single-channel images.
so, reshape weight to become size: 100 * 1024 x 4 x 4

from dcgan.torch.

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.