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

Compute padding when pad: 1 #17

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

miquelmarti
Copy link

  • Fix ReLU layer typo
  • pad=1 in Darknet .cfg files means that there is padding if necessary to maintain the same size output. Here it was taken directly as the number of pixels it pads by. From this answer.

Padding always by 1 pixel changed the output size when converting to Caffe from Darknet in cases as 1x1 convolutions, which do not need any padding at all. Darknet19 with input size 224x224 gives now the correct size of 7x7 for the last feature map as in YOLO9000.

@kevinkit
Copy link

This is a major issue and should be included

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

Successfully merging this pull request may close these issues.

3 participants