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
2 changes: 1 addition & 1 deletion src/deepforest/predict.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ def across_class_nms(predicted_boxes, iou_threshold=0.15):
if predicted_boxes.shape[0] <= 1:
return predicted_boxes

# move prediciton to tensor
# move prediction to tensor
boxes = torch.tensor(
predicted_boxes[["xmin", "ymin", "xmax", "ymax"]].values, dtype=torch.float32
)
Expand Down
2 changes: 1 addition & 1 deletion src/deepforest/preprocess.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ def split_raster(
numpy_image = numpy_image.transpose(2, 0, 1)

# Check that it's 3 bands
bands = numpy_image.shape[2]
bands = numpy_image.shape[0]
if not bands == 3:
warnings.warn(
f"Input image had non-3 band shape of {numpy_image.shape}, selecting first 3 bands",
Expand Down