MCPcopy Create free account
hub / github.com/aigc3d/LHM / __init__

Method __init__

engine/SegmentAPI/base.py:70–75  ·  view source on GitHub ↗
(self, box, mode="whwh")

Source from the content-addressed store, hash-verified

68
69class Bbox:
70 def __init__(self, box, mode="whwh"):
71
72 assert len(box) == 4
73 assert mode in ["whwh", "xywh"]
74 self.box = box
75 self.mode = mode
76
77 def to_xywh(self):
78

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected