Skip to content

noticed hardcoded inplanes under ResNet implementation #751

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
wants to merge 1 commit into
base: pytorch-1.0
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
noticed hardcoded inplanes under ResNet implementation
If you compare this with the PyTorch implementation of ResNet, you notice the hardcoding
  • Loading branch information
Erik authored Jan 13, 2020
commit 60555f6b27c8396fb92b50c10902347fb0addcc1
2 changes: 1 addition & 1 deletion lib/model/faster_rcnn/resnet.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ class ResNet(nn.Module):
def __init__(self, block, layers, num_classes=1000):
self.inplanes = 64
super(ResNet, self).__init__()
self.conv1 = nn.Conv2d(3, 64, kernel_size=7, stride=2, padding=3,
self.conv1 = nn.Conv2d(3, self.inplanes, kernel_size=7, stride=2, padding=3,
bias=False)
self.bn1 = nn.BatchNorm2d(64)
self.relu = nn.ReLU(inplace=True)
Expand Down