nikigoli commited on
Commit
ddb9d72
1 Parent(s): 809b37d

Forced cpu usage

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -104,7 +104,7 @@ def get_args_parser():
104
  # Get counting model.
105
  def build_model_and_transforms(args):
106
  if torch.cuda.is_available():
107
- args.device = torch.device('cuda')
108
  else:
109
  args.device = torch.device('cpu')
110
  normalize = T.Compose(
 
104
  # Get counting model.
105
  def build_model_and_transforms(args):
106
  if torch.cuda.is_available():
107
+ args.device = torch.device('cpu')
108
  else:
109
  args.device = torch.device('cpu')
110
  normalize = T.Compose(