Skip to content

Commit

Permalink
Quality Fixes add # noqa: F401
Browse files Browse the repository at this point in the history
  • Loading branch information
rahul-tuli committed May 18, 2023
1 parent abb9172 commit 2b2cb28
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/sparseml/openpifpaf/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@


try:
import cv2 as _cv2
import cv2 as _cv2 # noqa: F401

import openpifpaf as _openpifpaf
import openpifpaf as _openpifpaf # noqa: F401
except ImportError:
raise ImportError("Please install sparseml[openpifpaf] to use this pathway")

Expand Down
4 changes: 2 additions & 2 deletions src/sparseml/pytorch/torchvision/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@


try:
import cv2 as _cv2
import torchvision as _torchvision
import cv2 as _cv2 # noqa: F401
import torchvision as _torchvision # noqa: F401
except ImportError:
raise ImportError("Please install sparseml[torchvision] to use this pathway")

Expand Down
2 changes: 1 addition & 1 deletion src/sparseml/yolov8/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@


try:
import ultralytics as _ultralytics
import ultralytics as _ultralytics # noqa: F401
except ImportError:
raise ImportError("Please install sparseml[yolov8] to use this pathway")

Expand Down

0 comments on commit 2b2cb28

Please sign in to comment.