Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/actions' into actions
Browse files Browse the repository at this point in the history
  • Loading branch information
glenn-jocher committed Jan 10, 2024
2 parents 825df0a + 69861af commit ba6a9de
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -180,5 +180,4 @@ close-quotes-on-newline = true

[tool.codespell]
ignore-words-list = "crate,nd,ned,strack,dota,ane,segway,fo,gool,winn,commend,bloc,nam,afterall"
skip = "*.pt,*.pth,*.torchscript,*.onnx,*.tflite,*.pb,*.bin,*.param,*.mlmodel,*.engine,*.npy,*.data*,*.csv,*pnnx*,*venv*,__pycache__*,*.ico,*.jpg,*.png,*.mp4,*.mov,/runs,/.git,./docs/??/*.md,./docs/mkdocs_??.yml"
skip = '*.pt,*.pth,*.torchscript,*.onnx,*.tflite,*.pb,*.bin,*.param,*.mlmodel,*.engine,*.npy,*.data*,*.csv,*pnnx*,*venv*,*translat*,__pycache__*,*.ico,*.jpg,*.png,*.mp4,*.mov,/runs,/.git,./docs/??/*.md,./docs/mkdocs_??.yml'
2 changes: 1 addition & 1 deletion ultralytics/models/yolo/obb/predict.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def postprocess(self, preds, img, orig_imgs):
orig_imgs = ops.convert_torch2numpy_batch(orig_imgs)

results = []
for i, (pred, orig_img, img_path) in enumerate(zip(preds, orig_imgs, self.batch[0])):
for pred, orig_img, img_path in zip(preds, orig_imgs, self.batch[0]):

Check warning on line 47 in ultralytics/models/yolo/obb/predict.py

View check run for this annotation

Codecov / codecov/patch

ultralytics/models/yolo/obb/predict.py#L47

Added line #L47 was not covered by tests
pred[:, :4] = ops.scale_boxes(img.shape[2:], pred[:, :4], orig_img.shape, xywh=True)
# xywh, r, conf, cls
obb = torch.cat([pred[:, :4], pred[:, -1:], pred[:, 4:6]], dim=-1)
Expand Down

0 comments on commit ba6a9de

Please sign in to comment.