Update app.py
Browse files
app.py
CHANGED
@@ -12,7 +12,8 @@ img_transform = transforms.Compose([
|
|
12 |
transforms.Normalize(mean=[0.485, 0.456, 0.406], std=[0.229, 0.224, 0.225]),
|
13 |
])
|
14 |
#Loading the model
|
15 |
-
|
|
|
16 |
model.eval()
|
17 |
|
18 |
#Mushroom Classes
|
|
|
12 |
transforms.Normalize(mean=[0.485, 0.456, 0.406], std=[0.229, 0.224, 0.225]),
|
13 |
])
|
14 |
#Loading the model
|
15 |
+
model_pth = Path("model\MobileNet_v3.pt")
|
16 |
+
model = torch.load(model_pth, map_location=torch.device('cpu'))
|
17 |
model.eval()
|
18 |
|
19 |
#Mushroom Classes
|