audmax commited on
Commit
1ea7d89
1 Parent(s): fefff98

Fix for device='cuda'

Browse files
Files changed (1) hide show
  1. README.md +1 -1
README.md CHANGED
@@ -85,7 +85,7 @@ class EmotionModel(Wav2Vec2PreTrainedModel):
85
  device = 'cpu'
86
  model_name = 'audeering/wav2vec2-large-robust-12-ft-emotion-msp-dim'
87
  processor = Wav2Vec2Processor.from_pretrained(model_name)
88
- model = EmotionModel.from_pretrained(model_name)
89
 
90
  # dummy signal
91
  sampling_rate = 16000
 
85
  device = 'cpu'
86
  model_name = 'audeering/wav2vec2-large-robust-12-ft-emotion-msp-dim'
87
  processor = Wav2Vec2Processor.from_pretrained(model_name)
88
+ model = EmotionModel.from_pretrained(model_name).to(device)
89
 
90
  # dummy signal
91
  sampling_rate = 16000