MCPcopy Create free account
hub / github.com/drinkingcoder/FlowFormer-Official / coords_grid

Function coords_grid

core/utils/utils.py:93–96  ·  view source on GitHub ↗
(batch, ht, wd)

Source from the content-addressed store, hash-verified

91 return img
92
93def coords_grid(batch, ht, wd):
94 coords = torch.meshgrid(torch.arange(ht), torch.arange(wd))
95 coords = torch.stack(coords[::-1], dim=0).float()
96 return coords[None].repeat(batch, 1, 1, 1)
97
98
99def upflow8(flow, mode='bilinear'):

Callers 10

initialize_flowMethod · 0.90
initialize_flowFunction · 0.90
forwardMethod · 0.90
forwardMethod · 0.90
forwardMethod · 0.90
forwardMethod · 0.90
forwardMethod · 0.90
forwardMethod · 0.90
forwardMethod · 0.90
forwardMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected