Skip to content

Commit

Permalink
Initialize should_resize var outside of if
Browse files Browse the repository at this point in the history
  • Loading branch information
SolomonLake committed Jan 17, 2025
1 parent 020c967 commit 84dd437
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions roboflow/models/object_detection.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ def predict( # type: ignore[override]
self.__exception_check(image_path_check=image_path)

original_dimensions = None
should_resize = False
# If image is local image
if not hosted:
import cv2
Expand Down

0 comments on commit 84dd437

Please sign in to comment.