jadechoghari
commited on
Commit
•
e687074
1
Parent(s):
6ab777e
Update modeling.py
Browse files- modeling.py +1 -1
modeling.py
CHANGED
@@ -45,7 +45,7 @@ class VoiceRestore(PreTrainedModel):
|
|
45 |
|
46 |
# Optimized restoration model
|
47 |
self.optimized_model = OptimizedAudioRestorationModel(device=device, bigvgan_model=self.bigvgan_model)
|
48 |
-
save_path = "./
|
49 |
state_dict = torch.load(save_path, map_location=torch.device(device))
|
50 |
if 'model_state_dict' in state_dict:
|
51 |
state_dict = state_dict['model_state_dict']
|
|
|
45 |
|
46 |
# Optimized restoration model
|
47 |
self.optimized_model = OptimizedAudioRestorationModel(device=device, bigvgan_model=self.bigvgan_model)
|
48 |
+
save_path = "./pytorch_model.bin"
|
49 |
state_dict = torch.load(save_path, map_location=torch.device(device))
|
50 |
if 'model_state_dict' in state_dict:
|
51 |
state_dict = state_dict['model_state_dict']
|