forked from w-okada/voice-changer
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathExceptions.py
More file actions
38 lines (25 loc) · 1017 Bytes
/
Exceptions.py
File metadata and controls
38 lines (25 loc) · 1017 Bytes
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
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.")