Skip to content

Commit

Permalink
Fix minor
Browse files Browse the repository at this point in the history
  • Loading branch information
yhna940 committed Feb 22, 2023
1 parent 3b915d4 commit 7da25d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mmedit/models/common/downsample.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ def pixel_unshuffle(x, scale):
f'with shape: {x.shape}')
h = h // scale
w = w // scale
x = x.view([b, c, h, scale, w, scale])
x = x.view(b, c, h, scale, w, scale)
x = x.permute(0, 1, 3, 5, 2, 4)
return x.reshape(b, -1, h, w)

0 comments on commit 7da25d5

Please sign in to comment.