Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -26,7 +26,7 @@ class_names = ['CRVO',
|
|
26 |
resnet50, resnet50_transforms = create_resnet50_model(
|
27 |
num_classes=len(class_names), # actual value would also work
|
28 |
)
|
29 |
-
|
30 |
|
31 |
# Load saved weights
|
32 |
resnet50.load_state_dict(
|
|
|
26 |
resnet50, resnet50_transforms = create_resnet50_model(
|
27 |
num_classes=len(class_names), # actual value would also work
|
28 |
)
|
29 |
+
resnet50.fc = nn.Linear(2048, 10)
|
30 |
|
31 |
# Load saved weights
|
32 |
resnet50.load_state_dict(
|