Update app.py
Browse files
app.py
CHANGED
|
@@ -23,6 +23,7 @@ from torchvision.models import resnet50
|
|
| 23 |
model = resnet50(weights=None)
|
| 24 |
|
| 25 |
# Replace fc with the multi-layer head that matches checkpoint
|
|
|
|
| 26 |
in_ch = model.fc.in_features
|
| 27 |
model.fc = torch.nn.Linear(in_ch, num_classes)
|
| 28 |
# model.fc = torch.nn.Sequential()
|
|
|
|
| 23 |
model = resnet50(weights=None)
|
| 24 |
|
| 25 |
# Replace fc with the multi-layer head that matches checkpoint
|
| 26 |
+
num_classes = 196
|
| 27 |
in_ch = model.fc.in_features
|
| 28 |
model.fc = torch.nn.Linear(in_ch, num_classes)
|
| 29 |
# model.fc = torch.nn.Sequential()
|