Jenthe commited on
Commit
12b7958
·
1 Parent(s): b3cc3d5

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -0
README.md CHANGED
@@ -38,6 +38,8 @@ from huggingface_hub import hf_hub_download
38
 
39
  # automatically checks for cached file
40
  model_file = hf_hub_download(repo_id='Jenthe/ECAPA2', filename='model.pt')
 
 
41
  ecapa2_model = torch.jit.load(model_file, map_location='cpu')
42
 
43
  # input audio should have a sample rate of 16 kHz
 
38
 
39
  # automatically checks for cached file
40
  model_file = hf_hub_download(repo_id='Jenthe/ECAPA2', filename='model.pt')
41
+
42
+ # change map_location to 'cuda' for GPU inference (recommended)
43
  ecapa2_model = torch.jit.load(model_file, map_location='cpu')
44
 
45
  # input audio should have a sample rate of 16 kHz