Skip to content

Commit

Permalink
remove deci-common (#1887)
Browse files Browse the repository at this point in the history
  • Loading branch information
ofrimasad authored Mar 5, 2024
1 parent 2b601b8 commit e7caf6c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
1 change: 0 additions & 1 deletion requirements.pro.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
deci-platform-client>=5.0.0
deci-common>=12.0.0
8 changes: 2 additions & 6 deletions src/super_gradients/common/plugins/deci_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
HardwareType,
QuantizationLevel,
)
from deci_common.data_interfaces.files_data_interface import FileDownloadFailedException
from deci_platform_client.models import AutoNACFileName
from deci_platform_client.exceptions import ApiException, ApiTypeError

Expand All @@ -51,10 +50,7 @@ class DeciClient:

def __init__(self):
if not client_enabled:
logger.error(
"deci-platform-client or deci-common are not installed. Model cannot be loaded from deci lab."
"Please install deci-platform-client>=5.0.0 and deci-common>=12.0.0"
)
logger.error("deci-platform-client is not installed. Model cannot be loaded from deci lab." "Please install deci-platform-client>=5.0.0")
return

self.lab_client = DeciPlatformClient()
Expand Down Expand Up @@ -111,7 +107,7 @@ def _download_file_to_cache_dir(self, file_url: str, file_path: str, timeout_sec
try:
urlretrieve(file_url, file_path)
except urllib.error.ContentTooShortError as ex:
raise FileDownloadFailedException("File download did not finish correctly " + str(ex))
raise RuntimeError("File download did not finish correctly " + str(ex))
return file_path

def get_model_arch_params(self, model_name: str) -> Optional[DictConfig]:
Expand Down

0 comments on commit e7caf6c

Please sign in to comment.