saneshashank commited on
Commit
78bc721
·
verified ·
1 Parent(s): e305df2

Update model.py

Browse files
Files changed (1) hide show
  1. model.py +5 -1
model.py CHANGED
@@ -228,4 +228,8 @@ class ResNet(nn.Module):
228
  x = self.fc(x)
229
  x = torch.flatten(x, 1)
230
 
231
- return x
 
 
 
 
 
228
  x = self.fc(x)
229
  x = torch.flatten(x, 1)
230
 
231
+ return x
232
+
233
+
234
+ def resnet50(num_classes=1000, drop_path_rate=0.2, use_blurpool=False):
235
+ return ResNet(BottleneckBlock, [3, 4, 6, 3], num_classes, drop_path_rate, use_blurpool)