MCPcopy Create free account
hub / github.com/OpenGVLab/HumanBench / clone

Method clone

PATH/core/models/ops/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 12

vreduceFunction · 0.80
__call__Method · 0.80
__getitem__Method · 0.80
__call__Method · 0.80
convertMethod · 0.80
custom_replaceFunction · 0.80
_scale_targetMethod · 0.80
calculate_uncertaintyFunction · 0.80
__init__Method · 0.80
prep_param_listsFunction · 0.80
inv_normalize_batchFunction · 0.80

Calls 1

BoxesClass · 0.85

Tested by

no test coverage detected