PDG commited on
Commit
6586467
·
1 Parent(s): 656caf6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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("DesignModernityModel.pt")
39
 
40
  DesignModernityModel.eval() # set state of the model to inference
41
 
42
  # Set class labels
43
- LABELS = ['2000-2003', '2006-2008', '2009-2011', '2012-2014', '2015-2018']
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