MCPcopy Create free account
hub / github.com/JanghoonChoi/TACT / intersect

Function intersect

model/box_utils.py:30–48  ·  view source on GitHub ↗

We resize both tensors to [A,B,2] without new malloc: [A,2] -> [A,1,2] -> [A,B,2] [B,2] -> [1,B,2] -> [A,B,2] Then we compute the area of intersect between box_a and box_b. Args: box_a: (tensor) bounding boxes, Shape: [A,4]. box_b: (tensor) bounding boxes, Shape: [B,4].

(box_a, box_b)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

jaccardFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected