Skip to content

Commit

Permalink
fix flow_warp comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ckkelvinchan committed Dec 14, 2021
1 parent cd8a62e commit 82c5192
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 82c5192

Please sign in to comment.