MCPcopy Create free account
hub / github.com/BICLab/SpikeYOLO / mul

Method mul

ultralytics/utils/instance.py:94–106  ·  view source on GitHub ↗

Args: scale (tuple | list | int): the scale for four coords.

(self, scale)

Source from the content-addressed store, hash-verified

92 # self.normalized = True
93
94 def mul(self, scale):
95 """
96 Args:
97 scale (tuple | list | int): the scale for four coords.
98 """
99 if isinstance(scale, Number):
100 scale = to_4tuple(scale)
101 assert isinstance(scale, (tuple, list))
102 assert len(scale) == 4
103 self.bboxes[:, 0] *= scale[0]
104 self.bboxes[:, 1] *= scale[1]
105 self.bboxes[:, 2] *= scale[2]
106 self.bboxes[:, 3] *= scale[3]
107
108 def add(self, offset):
109 """

Callers 8

fuse_conv_and_bnFunction · 0.45
fuse_deconv_and_bnFunction · 0.45
scaleMethod · 0.45
denormalizeMethod · 0.45
normalizeMethod · 0.45
jit_mulFunction · 0.45
jit_mulFunction · 0.45
stepMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected