|
|
@ -149,7 +149,7 @@ class TTS_Config:
|
|
|
|
print(f"Warning: CUDA is not available, set device to CPU.")
|
|
|
|
print(f"Warning: CUDA is not available, set device to CPU.")
|
|
|
|
self.device = torch.device("cpu")
|
|
|
|
self.device = torch.device("cpu")
|
|
|
|
|
|
|
|
|
|
|
|
# self.is_half = self.configs.get("is_half", False)
|
|
|
|
self.is_half = self.configs.get("is_half", False)
|
|
|
|
# if str(self.device) == "cpu" and self.is_half:
|
|
|
|
# if str(self.device) == "cpu" and self.is_half:
|
|
|
|
# print(f"Warning: Half precision is not supported on CPU, set is_half to False.")
|
|
|
|
# print(f"Warning: Half precision is not supported on CPU, set is_half to False.")
|
|
|
|
# self.is_half = False
|
|
|
|
# self.is_half = False
|
|
|
|