This repository was archived by the owner on Jun 3, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 6 files changed +37
-0
lines changed Expand file tree Collapse file tree 6 files changed +37
-0
lines changed Original file line number Diff line number Diff line change @@ -137,6 +137,7 @@ def _setup_extras() -> Dict:
137
137
"dev" : _dev_deps ,
138
138
"deepsparse" : _deepsparse_deps ,
139
139
"deepsparse-ent" : _deepsparse_ent_deps ,
140
+ "openpifpaf" : _open_pif_paf_deps ,
140
141
"onnxruntime" : _onnxruntime_deps ,
141
142
"torch" : _pytorch_deps ,
142
143
"torch_all" : _pytorch_all_deps ,
Original file line number Diff line number Diff line change 15
15
from sparseml .analytics import sparseml_analytics as _analytics
16
16
17
17
18
+ try :
19
+ import cv2 as _cv2 # noqa: F401
20
+
21
+ import openpifpaf as _openpifpaf # noqa: F401
22
+ except ImportError :
23
+ raise ImportError ("Please install sparseml[openpifpaf] to use this pathway" )
24
+
25
+
18
26
_analytics .send_event ("python__openpifpaf__init" )
Original file line number Diff line number Diff line change 15
15
from sparseml .analytics import sparseml_analytics as _analytics
16
16
17
17
18
+ try :
19
+ import cv2 as _cv2 # noqa: F401
20
+ import torchvision as _torchvision # noqa: F401
21
+ except ImportError :
22
+ raise ImportError ("Please install sparseml[torchvision] to use this pathway" )
23
+
24
+
18
25
_analytics .send_event ("python__pytorch__torchvision__init" )
Original file line number Diff line number Diff line change 23
23
from sparseml .analytics import sparseml_analytics as _analytics
24
24
25
25
26
+ try :
27
+ import datasets as _datasets
28
+ import transformers as _transformers
29
+ except ImportError :
30
+ raise ImportError ("Please install sparseml[transformers] to use this pathway" )
31
+
32
+
26
33
_analytics .send_event ("python__transformers__init" )
27
34
28
35
Original file line number Diff line number Diff line change 22
22
from sparseml .analytics import sparseml_analytics as _analytics
23
23
24
24
25
+ try :
26
+ import cv2 as _cv2
27
+ import torchvision as _torchvision
28
+
29
+ import yolov5 as _yolov5
30
+ except ImportError :
31
+ raise ImportError ("Please install sparseml[yolov5] to use this pathway" )
32
+
25
33
_analytics .send_event ("python__yolov5__init" )
26
34
27
35
_LOGGER = _logging .getLogger (__name__ )
Original file line number Diff line number Diff line change 16
16
from sparseml .analytics import sparseml_analytics as _analytics
17
17
18
18
19
+ try :
20
+ import ultralytics as _ultralytics # noqa: F401
21
+ except ImportError :
22
+ raise ImportError ("Please install sparseml[yolov8] to use this pathway" )
23
+
24
+
19
25
_analytics .send_event ("python__yolov8__init" )
20
26
21
27
if "8.0.30" not in ultralytics .__version__ :
You can’t perform that action at this time.
0 commit comments