Fix for device='cuda'
Browse files
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
|