We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 29f2604 commit 64f820eCopy full SHA for 64f820e
dlclivegui/services/dlc_processor.py
@@ -14,7 +14,8 @@
14
from typing import Any
15
16
import numpy as np
17
-from dlclive import DLCLive
+
18
+# from dlclive import DLCLive
19
from PySide6.QtCore import QObject, Signal
20
21
from dlclivegui.config import DLCProcessorSettings, ModelType
@@ -23,6 +24,15 @@
23
24
25
logger = logging.getLogger(__name__)
26
27
+try: # pragma: no cover - optional dependency
28
+ from dlclive import (
29
+ DLCLive, # type: ignore
30
+ )
31
+except Exception as e: # pragma: no cover - handled gracefully
32
+ logger.error(f"dlclive package could not be imported: {e}")
33
+ DLCLive = None # type: ignore[assignment]
34
35
36
# Enable profiling to get more detailed timing metrics for debugging and optimization.
37
ENABLE_PROFILING = True
38
0 commit comments