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

VGG16 inconsistent input shape #179

Open
sagarvijaygupta opened this issue May 9, 2018 · 2 comments
Open

VGG16 inconsistent input shape #179

sagarvijaygupta opened this issue May 9, 2018 · 2 comments
Labels

Comments

@sagarvijaygupta
Copy link
Collaborator

sagarvijaygupta commented May 9, 2018

With MaxPooling2D with strides, size of image reduces in following manner

(32, 24, 3)
(?, 16, 12, 64)
(?, 8, 6, 128)
(?, 4, 3, 256)
(?, 2, 1, 512)

which in next step generates an error

ValueError: Negative dimension size caused by subtracting 2 from 1 for 'max_pooling2d_5/MaxPool' (op: 'MaxPool') with input shapes: [?,2,1,512].

@marco-c
Copy link
Owner

marco-c commented May 11, 2018

32x24 might be too small, it was chosen arbitrarily. We should investigate what would be the best size.

@sagarvijaygupta
Copy link
Collaborator Author

Generally for pretrained models we use size of 224x224 or 227x227. We can think about it.

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

No branches or pull requests

2 participants