Skip to content

Need explanation on weights #48

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
mcolic opened this issue Jul 5, 2016 · 1 comment
Open

Need explanation on weights #48

mcolic opened this issue Jul 5, 2016 · 1 comment

Comments

@mcolic
Copy link

mcolic commented Jul 5, 2016

Can anyone please elaborate on the weights dimensions/shape and explain me those. I have data different than the MNIST, and I am trying to apply this CNN model on it, but I am having hard time understanding these shaping movements. For example:

weights = {
# 5x5 conv, 1 input, 32 outputs
'wc1': tf.Variable(tf.random_normal([5, 5, 1, 32])),
# 5x5 conv, 32 inputs, 64 outputs
'wc2': tf.Variable(tf.random_normal([5, 5, 32, 64])),
# fully connected, 7_7_64 inputs, 1024 outputs
'wd1': tf.Variable(tf.random_normal([7_7_64, 1024])),
#1024 inputs, 10 outputs (class prediction)
'out': tf.Variable(tf.random_normal([1024, n_classes]))

--> The size of the output is defined according to what, then this 7_7_64 in the fully connected layer is defined by what again?
Thank you very much.

@aymericdamien
Copy link
Owner

You can check that course: http://cs231n.github.io/convolutional-networks/#conv They are explaining how it is calculated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants