Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion scoutbot/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@
)
'''
import cv2
from PIL import Image
import numpy as np
from os.path import exists

import pooch
Expand Down Expand Up @@ -235,7 +237,8 @@ def pipeline_v3(
)

det_result = tile_batched.get_sliced_prediction_batched(
cv2.imread(filepath),
#cv2.imread(filepath),
np.array(Image.open(filepath).convert("RGB")),
batched_detection_model,
slice_height=slice_height,
slice_width=slice_width,
Expand Down
2 changes: 1 addition & 1 deletion scoutbot/tile_batched/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
from .main import get_sliced_prediction_batched, Yolov8DetectionModel # NOQA
from .main import get_sliced_prediction_batched, Yolov8DetectionModel, HerdNetDetectionModel # NOQA
Loading