farbverlauf commited on
Commit
6e0def0
·
1 Parent(s): 2bd36d2

trying to fix zero-gpu

Browse files
app.py CHANGED
@@ -16,7 +16,7 @@ import torch
16
  from models.models import BiFormer
17
 
18
 
19
- DEVICE = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
20
  # DEVICE = torch.device('cpu')
21
 
22
  # Configure logging
 
16
  from models.models import BiFormer
17
 
18
 
19
+ DEVICE = torch.device('cuda')
20
  # DEVICE = torch.device('cpu')
21
 
22
  # Configure logging
data_loading/feature_extractor.py CHANGED
@@ -14,7 +14,7 @@ from transformers import (
14
  from data_loading.pretrained_extractors import EmotionModel, get_model_mamba, Mamba
15
 
16
 
17
- DEVICE = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
18
  # DEVICE = torch.device('cpu')
19
 
20
 
 
14
  from data_loading.pretrained_extractors import EmotionModel, get_model_mamba, Mamba
15
 
16
 
17
+ DEVICE = torch.device('cuda')
18
  # DEVICE = torch.device('cpu')
19
 
20
 
data_loading/pretrained_extractors.py CHANGED
@@ -14,7 +14,7 @@ from einops import rearrange, einsum
14
  from torch import Tensor
15
  from einops import rearrange
16
 
17
- DEVICE = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
18
  # DEVICE = torch.device('cpu')
19
 
20
  ## Audio models
 
14
  from torch import Tensor
15
  from einops import rearrange
16
 
17
+ DEVICE = torch.device('cuda')
18
  # DEVICE = torch.device('cpu')
19
 
20
  ## Audio models