-
Notifications
You must be signed in to change notification settings - Fork 1.9k
/
Copy pathExceptions.py
51 lines (32 loc) · 1.32 KB
/
Exceptions.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
class NoModeLoadedException(Exception):
def __init__(self, framework):
self.framework = framework
def __str__(self):
return repr(f"No model for {self.framework} loaded. Please confirm the model uploaded.")
class HalfPrecisionChangingException(Exception):
def __str__(self):
return repr("HalfPrecision related exception.")
class DeviceChangingException(Exception):
def __str__(self):
return repr("Device changing...")
class NotEnoughDataExtimateF0(Exception):
def __str__(self):
return repr("Not enough data to estimate f0.")
class ONNXInputArgumentException(Exception):
def __str__(self):
return repr("ONNX received invalid argument.")
class DeviceCannotSupportHalfPrecisionException(Exception):
def __str__(self):
return repr("Device cannot support half precision.")
class VoiceChangerIsNotSelectedException(Exception):
def __str__(self):
return repr("Voice Changer is not selected.")
class WeightDownladException(Exception):
def __str__(self):
return repr("Failed to download weight.")
class PipelineCreateException(Exception):
def __str__(self):
return repr("Failed to create Pipeline.")
class PipelineNotInitializedException(Exception):
def __str__(self):
return repr("Pipeline is not initialized.")