MCPcopy Create free account
hub / github.com/HanHan55/Graph2plan / _boxes_to_grid

Function _boxes_to_grid

PostProcess/g2p/layout.py:92–129  ·  view source on GitHub ↗

Input: - boxes: FloatTensor of shape (O, 4) giving boxes in the [x0, y0, x1, y1] format in the [0, 1] coordinate space - H, W: Scalars giving size of output Returns: - grid: FloatTensor of shape (O, H, W, 2) suitable for passing to grid_sample

(boxes, H, W)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 4

boxes_to_layoutFunction · 0.70
masks_to_layoutFunction · 0.70
masks_to_segFunction · 0.70
boxes_to_segFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected