Skip to content

Commit 555eb31

Browse files
authored
Merge pull request #1228 from luxonis/sdk_offline_models
Enabling NNComponent to work offline when models are cached
2 parents a1723f9 + dfe8184 commit 555eb31

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

depthai_sdk/src/depthai_sdk/components/nn_component.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,11 @@ def _parse_model(self, model):
240240
self._parse_config(model)
241241
else: # SDK supported model
242242
models = getSupportedModels(printModels=False)
243-
zoo_models = blobconverter.zoo_list()
243+
244+
try:
245+
zoo_models = blobconverter.zoo_list()
246+
except Exception as e:
247+
LOGGER.warning("No internet access, can't load models from depthai zoo.")
244248

245249
if str(model) in models:
246250
model = models[str(model)] / 'config.json'

0 commit comments

Comments
 (0)