mirror of
https://github.com/w-okada/voice-changer.git
synced 2025-01-23 13:35:12 +03:00
19 lines
508 B
Python
19 lines
508 B
Python
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 ONNXInputArgumentException(Exception):
|
|
def __str__(self):
|
|
return repr("ONNX received invalid argument.")
|