2023-04-17 03:45:12 +03:00
|
|
|
class NoModeLoadedException(Exception):
|
|
|
|
def __init__(self, framework):
|
|
|
|
self.framework = framework
|
|
|
|
|
|
|
|
def __str__(self):
|
2023-06-16 10:49:55 +03:00
|
|
|
return repr(f"No model for {self.framework} loaded. Please confirm the model uploaded.")
|
2023-04-18 21:06:45 +03:00
|
|
|
|
|
|
|
|
2023-05-03 07:14:00 +03:00
|
|
|
class HalfPrecisionChangingException(Exception):
|
|
|
|
def __str__(self):
|
|
|
|
return repr("HalfPrecision related exception.")
|
|
|
|
|
|
|
|
|
2023-05-04 11:15:53 +03:00
|
|
|
class DeviceChangingException(Exception):
|
|
|
|
def __str__(self):
|
|
|
|
return repr("Device changing...")
|
|
|
|
|
|
|
|
|
|
|
|
class NotEnoughDataExtimateF0(Exception):
|
|
|
|
def __str__(self):
|
|
|
|
return repr("Not enough data to estimate f0.")
|
|
|
|
|
|
|
|
|
2023-04-18 21:06:45 +03:00
|
|
|
class ONNXInputArgumentException(Exception):
|
|
|
|
def __str__(self):
|
2023-04-28 00:39:51 +03:00
|
|
|
return repr("ONNX received invalid argument.")
|
2023-06-03 09:29:35 +03:00
|
|
|
|
|
|
|
|
|
|
|
class DeviceCannotSupportHalfPrecisionException(Exception):
|
|
|
|
def __str__(self):
|
|
|
|
return repr("Device cannot support half precision.")
|
2023-06-03 11:13:36 +03:00
|
|
|
|
|
|
|
|
|
|
|
class VoiceChangerIsNotSelectedException(Exception):
|
|
|
|
def __str__(self):
|
|
|
|
return repr("Voice Changer is not selected.")
|
2023-06-16 10:49:55 +03:00
|
|
|
|
|
|
|
|
|
|
|
class WeightDownladException(Exception):
|
|
|
|
def __str__(self):
|
|
|
|
return repr("Failed to download weight.")
|
2023-07-26 22:06:25 +03:00
|
|
|
|
|
|
|
|
|
|
|
class PipelineCreateException(Exception):
|
|
|
|
def __str__(self):
|
|
|
|
return repr("Failed to create Pipeline.")
|
|
|
|
|
|
|
|
|
|
|
|
class PipelineNotInitializedException(Exception):
|
|
|
|
def __str__(self):
|
|
|
|
return repr("Pipeline is not initialized.")
|