Spaces:
Build error
Build error
Commit
·
51c0425
1
Parent(s):
a1c176c
Update app.py
Browse files
app.py
CHANGED
|
@@ -132,7 +132,7 @@ if len(file_upload) == 1:
|
|
| 132 |
model = EfficientNetBN(
|
| 133 |
"efficientnet-b0", spatial_dims=3, in_channels=1, num_classes=3)
|
| 134 |
model.load_state_dict(torch.load(
|
| 135 |
-
'
|
| 136 |
model.eval()
|
| 137 |
prediction = model(test_images.unsqueeze(1))
|
| 138 |
pred = prediction.argmax(dim=1).item()
|
|
@@ -310,7 +310,7 @@ if len(file_upload) > 1:
|
|
| 310 |
model = EfficientNetBN(
|
| 311 |
"efficientnet-b0", spatial_dims=3, in_channels=1, num_classes=3)
|
| 312 |
model.load_state_dict(torch.load(
|
| 313 |
-
'
|
| 314 |
model.eval()
|
| 315 |
prediction = model(test_images.unsqueeze(1))
|
| 316 |
pred = prediction.argmax(dim=1).item()
|
|
|
|
| 132 |
model = EfficientNetBN(
|
| 133 |
"efficientnet-b0", spatial_dims=3, in_channels=1, num_classes=3)
|
| 134 |
model.load_state_dict(torch.load(
|
| 135 |
+
'MCEBNfold2.pth', map_location='cpu'))
|
| 136 |
model.eval()
|
| 137 |
prediction = model(test_images.unsqueeze(1))
|
| 138 |
pred = prediction.argmax(dim=1).item()
|
|
|
|
| 310 |
model = EfficientNetBN(
|
| 311 |
"efficientnet-b0", spatial_dims=3, in_channels=1, num_classes=3)
|
| 312 |
model.load_state_dict(torch.load(
|
| 313 |
+
'MCEBNfold2.pth', map_location='cpu'))
|
| 314 |
model.eval()
|
| 315 |
prediction = model(test_images.unsqueeze(1))
|
| 316 |
pred = prediction.argmax(dim=1).item()
|