Hector Lopez commited on
Commit
f6654ff
1 Parent(s): 9fbf078

Fixed map location

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -12,7 +12,7 @@ print('Creating the model')
12
  model = get_model('checkpoint.ckpt')
13
  print('Loading the classifier')
14
  classifier = CustomEfficientNet(target_size=7, pretrained=False)
15
- classifier.load_state_dict(torch.load('class_efficientB0_taco_7_class.pth'))
16
 
17
  def plot_img_no_mask(image, boxes, labels):
18
  colors = {
 
12
  model = get_model('checkpoint.ckpt')
13
  print('Loading the classifier')
14
  classifier = CustomEfficientNet(target_size=7, pretrained=False)
15
+ classifier.load_state_dict(torch.load('class_efficientB0_taco_7_class.pth', map_location='cpu'))
16
 
17
  def plot_img_no_mask(image, boxes, labels):
18
  colors = {