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:
137137 "dev" : _dev_deps ,
138138 "deepsparse" : _deepsparse_deps ,
139139 "deepsparse-ent" : _deepsparse_ent_deps ,
140+ "openpifpaf" : _open_pif_paf_deps ,
140141 "onnxruntime" : _onnxruntime_deps ,
141142 "torch" : _pytorch_deps ,
142143 "torch_all" : _pytorch_all_deps ,
Original file line number Diff line number Diff line change 1515from sparseml .analytics import sparseml_analytics as _analytics
1616
1717
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+
1826_analytics .send_event ("python__openpifpaf__init" )
Original file line number Diff line number Diff line change 1515from sparseml .analytics import sparseml_analytics as _analytics
1616
1717
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+
1825_analytics .send_event ("python__pytorch__torchvision__init" )
Original file line number Diff line number Diff line change 2323from sparseml .analytics import sparseml_analytics as _analytics
2424
2525
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+
2633_analytics .send_event ("python__transformers__init" )
2734
2835
Original file line number Diff line number Diff line change 2222from sparseml .analytics import sparseml_analytics as _analytics
2323
2424
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+
2533_analytics .send_event ("python__yolov5__init" )
2634
2735_LOGGER = _logging .getLogger (__name__ )
Original file line number Diff line number Diff line change 1616from sparseml .analytics import sparseml_analytics as _analytics
1717
1818
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+
1925_analytics .send_event ("python__yolov8__init" )
2026
2127if "8.0.30" not in ultralytics .__version__ :
You can’t perform that action at this time.
0 commit comments