Skip to content

Commit

Permalink
style(models): fix style error (#1566)
Browse files Browse the repository at this point in the history
style(models): fix style error
  • Loading branch information
Joker316701882 committed Nov 30, 2022
1 parent e80063b commit f44fcdd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
strategy:
matrix:
python-version: [3.6, 3.7, 3.8]
Expand Down
6 changes: 5 additions & 1 deletion yolox/models/yolo_head.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,11 @@ def decode_outputs(self, outputs, dtype):
grids = torch.cat(grids, dim=1).type(dtype)
strides = torch.cat(strides, dim=1).type(dtype)

outputs = torch.cat([(outputs[..., 0:2] + grids) * strides, torch.exp(outputs[..., 2:4]) * strides, outputs[..., 4:]], dim=-1)
outputs = torch.cat([
(outputs[..., 0:2] + grids) * strides,
torch.exp(outputs[..., 2:4]) * strides,
outputs[..., 4:]
], dim=-1)
return outputs

def get_losses(
Expand Down

0 comments on commit f44fcdd

Please sign in to comment.