SefyanKehail commited on
Commit ·
090c400
1
Parent(s): 6bb5d28
debugging..
Browse files
app.py
CHANGED
|
@@ -18,14 +18,14 @@ def get_file_size_in_mb(file_path):
|
|
| 18 |
|
| 19 |
|
| 20 |
# Load the models using torch.hub
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
|
| 25 |
# Load the state dictionaries from the CPU-saved files
|
| 26 |
-
hubert = torch.load("hubert_cpu.pt", map_location=torch.device('cpu'))
|
| 27 |
-
acoustic = torch.load("acoustic_cpu.pt", map_location=torch.device('cpu'))
|
| 28 |
-
hifigan = torch.load("hifigan_cpu.pt", map_location=torch.device('cpu'))
|
| 29 |
|
| 30 |
# Set the state dictionaries to the models
|
| 31 |
# hubert.load_state_dict(hubert_state_dict.state_dict(), strict=False)
|
|
|
|
| 18 |
|
| 19 |
|
| 20 |
# Load the models using torch.hub
|
| 21 |
+
hubert = torch.hub.load("bshall/hubert:main", "hubert_soft", trust_repo=True).to("cpu")
|
| 22 |
+
acoustic = torch.hub.load("bshall/acoustic-model:main", "hubert_soft", trust_repo=True).to("cpu")
|
| 23 |
+
hifigan = torch.hub.load("bshall/hifigan:main", "hifigan_hubert_soft", trust_repo=True).to("cpu")
|
| 24 |
|
| 25 |
# Load the state dictionaries from the CPU-saved files
|
| 26 |
+
# hubert = torch.load("hubert_cpu.pt", map_location=torch.device('cpu'))
|
| 27 |
+
# acoustic = torch.load("acoustic_cpu.pt", map_location=torch.device('cpu'))
|
| 28 |
+
# hifigan = torch.load("hifigan_cpu.pt", map_location=torch.device('cpu'))
|
| 29 |
|
| 30 |
# Set the state dictionaries to the models
|
| 31 |
# hubert.load_state_dict(hubert_state_dict.state_dict(), strict=False)
|