MCPcopy
hub / github.com/facebookresearch/detectron2 / clone

Method clone

detectron2/structures/boxes.py:157–164  ·  view source on GitHub ↗

Clone the Boxes. Returns: Boxes

(self)

Source from the content-addressed store, hash-verified

155 self.tensor = tensor
156
157 def clone(self) -> "Boxes":
158 """
159 Clone the Boxes.
160
161 Returns:
162 Boxes
163 """
164 return Boxes(self.tensor.clone())
165
166 def to(self, device: torch.device):
167 # Boxes are assumed float32 and does not support to(dtype)

Callers 15

__init__Method · 0.45
__init__Method · 0.45
build_hooksMethod · 0.45
auto_scale_workersMethod · 0.45
convertMethod · 0.45
batched_nms_rotatedFunction · 0.45
get_cfgFunction · 0.45
upgrade_configFunction · 0.45
downgrade_configFunction · 0.45
fMethod · 0.45

Calls 1

BoxesClass · 0.85