Spaces:
Sleeping
Sleeping
Forced cpu usage
Browse files
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('
|
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(
|