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

Function boxes_to_layout

PostProcess/g2p/layout.py:31–64  ·  view source on GitHub ↗

Inputs: - vecs: Tensor of shape (O, D) giving vectors - boxes: Tensor of shape (O, 4) giving bounding boxes in the format [x0, y0, x1, y1] in the [0, 1] coordinate space - obj_to_img: LongTensor of shape (O,) mapping each element of vecs to an image, where each element is in the ran

(vecs, boxes, obj_to_img, H, W=None, pooling='sum')

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

layout.pyFile · 0.70
forwardMethod · 0.70

Calls 2

_boxes_to_gridFunction · 0.70
_pool_samplesFunction · 0.70

Tested by

no test coverage detected