Giter Club home page Giter Club logo

imagenet-autoencoder's People

Contributors

siavashk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

imagenet-autoencoder's Issues

Encoder layers cannot learn meaningful things

interesting

Please see the attached screenshot and focus on the things in the red rectangle. The left one are the weights of decoder filters in the last layer. The right one are the weights of encoder filters in the first layer. They get updated every epoch. I added below display code to https://github.com/siavashk/imagenet-autoencoder/blob/master/scripts/train.lua#L44:

eweight = ae.net.modules[1].weight
dweight = ae.net.modules[19].weight
eweight_view = eweight:float():view(12, 3, 5, 5)
dweight_view = dweight:float():view(12, 3, 5, 5)
de = image.toDisplayTensor{input=eweight_view,
padding=2,
nrow=math.floor(math.sqrt(12)),
symmetric=true}
dd = image.toDisplayTensor{input=dweight_view,
padding=2,
nrow=math.floor(math.sqrt(12)),
symmetric=true}
win1 = image.display{image=dd, win=win1, legend='Decoder filters', zoom=2}
win2 = image.display{image=de, win=win2, legend='Encoder filters', zoom=2}

I change kernel size to 5 so we can get a clearer looking. You can find the decoder layer learned something meaningful, but the encoder layer learned just noise. If I stop the training at this time and test the net. I am pretty sure the learned image would be very similar with the original one according to my previous experiments. Can you give me a little comment on this? Is the encoder part normal?

The gap between training and validation errors

Hi Siavash,
I made some changes to imagenet-autoencoder and trained it. After some rounds, I get 0.003 for training error and 0.013 for validation error. I feel the gap between them is big, is the autoencoder in overfitting status?

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.