Skip to content

Commit

Permalink
[Fix] Fix flow_warp comment (open-mmlab#655)
Browse files Browse the repository at this point in the history
  • Loading branch information
ckkelvinchan authored Dec 14, 2021
1 parent aa0a11b commit 601d388
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mmedit/models/common/flow_warp.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def flow_warp(x,
_, _, h, w = x.size()
# create mesh grid
grid_y, grid_x = torch.meshgrid(torch.arange(0, h), torch.arange(0, w))
grid = torch.stack((grid_x, grid_y), 2).type_as(x) # (w, h, 2)
grid = torch.stack((grid_x, grid_y), 2).type_as(x) # (h, w, 2)
grid.requires_grad = False

grid_flow = grid + flow
Expand Down

0 comments on commit 601d388

Please sign in to comment.