Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -35,12 +35,12 @@ cfg.MODEL.DEVICE= 'cpu' # move to cpu
|
|
35 |
predictor = DefaultPredictor(cfg) # create model
|
36 |
|
37 |
# -- load design modernity model for classification --------------------------------------------------------------
|
38 |
-
DesignModernityModel = torch.load("
|
39 |
|
40 |
DesignModernityModel.eval() # set state of the model to inference
|
41 |
|
42 |
# Set class labels
|
43 |
-
LABELS = ['2000-2003', '2006-
|
44 |
n_labels = len(LABELS)
|
45 |
|
46 |
# define maéan and std dev for normalization
|
|
|
35 |
predictor = DefaultPredictor(cfg) # create model
|
36 |
|
37 |
# -- load design modernity model for classification --------------------------------------------------------------
|
38 |
+
DesignModernityModel = torch.load("DesignModernityModelBonus.pt")
|
39 |
|
40 |
DesignModernityModel.eval() # set state of the model to inference
|
41 |
|
42 |
# Set class labels
|
43 |
+
LABELS = ['2000-2003', '2004-2006', '2007-2009', '2010-2012', '2013-2015', '2016-2019']
|
44 |
n_labels = len(LABELS)
|
45 |
|
46 |
# define maéan and std dev for normalization
|