Spaces:
Sleeping
Sleeping
Update model.py
Browse files
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)
|