Skip to content
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

How to remove one fully connected layer? #6

Open
laur1s opened this issue Mar 10, 2017 · 5 comments
Open

How to remove one fully connected layer? #6

laur1s opened this issue Mar 10, 2017 · 5 comments

Comments

@laur1s
Copy link

laur1s commented Mar 10, 2017

I only have one fully connected layer in my conv net. However, when I try to remove it from list num_list = [1, 500] I get add_layer(patches, colors, size=size_list[ind], num=num_show_list[ind], IndexError: list index out of range How do I solve this problem?

@laur1s laur1s closed this as completed Mar 10, 2017
@laur1s laur1s changed the title How do I create my own structure of the network? How to remove one fully connected layer? Mar 10, 2017
@laur1s laur1s reopened this Mar 10, 2017
@gwding
Copy link
Owner

gwding commented Mar 10, 2017

size_list and num_list should have same size, change the line above to

size_list = [fc_unit_size, fc_unit_size]

would fix the error

@laur1s
Copy link
Author

laur1s commented Mar 10, 2017

convnet_fig

Thanks! However, now I am getting a huge gap between conv and fully connected layers and no directed links between convolutional layers.

@gwding
Copy link
Owner

gwding commented Mar 10, 2017 via email

@laur1s
Copy link
Author

laur1s commented Mar 10, 2017

Thank you, downgrading the matplotlib fixed the connections. Could you tell me what parameter controls the distance between fully connected and hidden layers? That huge gap remained and doesn't look very good

@gwding
Copy link
Owner

gwding commented Mar 21, 2017

@laur1s actually I'm not able to generate the huge gap you've shown , if i set

    size_list = [fc_unit_size, fc_unit_size]
    num_list = [500, 2]

if you still have the problem you might play with x_diff_list to see if it fixes the problem

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