Spaces:
Sleeping
Sleeping
bug fix
Browse files
app.py
CHANGED
|
@@ -10,7 +10,7 @@ from typing import Tuple, Dict
|
|
| 10 |
class_names = ['daisy', 'dandelion', 'rose', 'sunflower', 'tulip']
|
| 11 |
### model and transforms preparation
|
| 12 |
#create vit model
|
| 13 |
-
vit, vit_transforms = create_vit_model(num_classes=5)
|
| 14 |
#load saved weights
|
| 15 |
vit.load_state_dict(torch.load(f="pretrained_vit_festure_extractor_flower_classification.pth",
|
| 16 |
map_location=torch.device('cpu')))
|
|
|
|
| 10 |
class_names = ['daisy', 'dandelion', 'rose', 'sunflower', 'tulip']
|
| 11 |
### model and transforms preparation
|
| 12 |
#create vit model
|
| 13 |
+
vit, vit_transforms = create_vit_model(num_classes=5)
|
| 14 |
#load saved weights
|
| 15 |
vit.load_state_dict(torch.load(f="pretrained_vit_festure_extractor_flower_classification.pth",
|
| 16 |
map_location=torch.device('cpu')))
|