diff --git a/pysipfenn/core/modelExporters.py b/pysipfenn/core/modelExporters.py index fa90f2a..c161134 100644 --- a/pysipfenn/core/modelExporters.py +++ b/pysipfenn/core/modelExporters.py @@ -29,8 +29,8 @@ def __init__(self, calculator: Calculator): from onnxconverter_common import float16 from onnxsim import simplify except ModuleNotFoundError as e: - raise Exception(str(e) + '\n\nNote: Export Dependencies are not installed by default. If you need them, you have to install ' - 'pySIPFENN in `dev` mode like: `pip install "pysipfenn[dev]"`, or like `pip install -e ".[dev]"` (see pysipfenn.org)') + print('\n\nNote: Export Dependencies are not installed by default. If you need them, you have to install pySIPFENN in ' + '`dev` mode like: `pip install "pysipfenn[dev]"`, or like `pip install -e ".[dev]"` (see pysipfenn.org)') self.simplifiedDict = {model: False for model in calculator.loadedModels.keys()} self.fp16Dict = {model: False for model in calculator.loadedModels.keys()} @@ -242,9 +242,8 @@ def __init__(self, calculator: Calculator): try: import coremltools as ct except ModuleNotFoundError as e: - raise Exception(str(e) + '\n\nNote: Export Dependencies are not installed by default. If you need them, you have to install ' - 'pySIPFENN in `dev` mode like: `pip install "pysipfenn[dev]"`, or like `pip install -e ".[dev]"` (see pysipfenn.org)') - + print('\n\nNote: Export Dependencies are not installed by default. If you need them, you have to install pySIPFENN in ' + '`dev` mode like: `pip install "pysipfenn[dev]"`, or like `pip install -e ".[dev]"` (see pysipfenn.org)') self.calculator = calculator assert len(self.calculator.loadedModels)>0, 'No models loaded in calculator. Nothing to export.'