Kaori1707 commited on
Commit
6c4e422
·
1 Parent(s): 9820dfe

update app

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -111,7 +111,7 @@ if __name__ == '__main__':
111
  with open('config.yaml') as f:
112
  PARAMS = yaml.load(f, Loader=SafeLoader)
113
  print(PARAMS)
114
- model = WeedModel.load_from_checkpoint("model/epoch=08.ckpt", params=PARAMS)
115
  model.eval()
116
 
117
  transform = transforms.Compose([
 
111
  with open('config.yaml') as f:
112
  PARAMS = yaml.load(f, Loader=SafeLoader)
113
  print(PARAMS)
114
+ model = WeedModel.load_from_checkpoint("model/epoch=08.ckpt", params=PARAMS, map_location=torch.device('cpu'))
115
  model.eval()
116
 
117
  transform = transforms.Compose([