Skip to content

Commit

Permalink
update setup.py; removed unused imports
Browse files Browse the repository at this point in the history
  • Loading branch information
dsikka committed Jul 24, 2023
1 parent 19ad588 commit 497b1c0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ def _parse_requirements_file(file_path):
"opencv-python<=4.6.0.66",
]
_yolo_integration_deps = [
"torchvision>=0.3.0,<0.14",
"torchvision>=0.3.0,<=0.15.1",
"opencv-python<=4.6.0.66",
]
_openpifpaf_integration_deps = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@
from deepsparse.yolov8.utils.validation.helpers import schema_to_tensor
from ultralytics.yolo.data.utils import check_det_dataset
from ultralytics.yolo.utils import (
DEFAULT_CFG,
LOGGER,
SETTINGS,
TQDM_BAR_FORMAT,
callbacks,
)
Expand Down Expand Up @@ -40,7 +38,7 @@ def __call__(self, classes: Dict[int, str]):
# for validation when self.training is True
callbacks.add_integration_callbacks(self) # TODO: Missing inputs?
self.run_callbacks("on_val_start")
self.device = select_device(self.args.device, self.args.batch) # TODO: Fix
self.device = select_device(self.args.device, self.args.batch)
# self.args.half &= self.device.type != "cpu" # TODO: not commented out here?
self.data = check_det_dataset(self.args.data)
if isinstance(self.data["path"], str):
Expand Down

0 comments on commit 497b1c0

Please sign in to comment.