MCPcopy Create free account
hub / github.com/FoundationVision/ByteTrack / __iter__

Method __iter__

yolox/data/samplers.py:27–31  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

25 self.mosaic = mosaic
26
27 def __iter__(self):
28 self.__set_input_dim()
29 for batch in super().__iter__():
30 yield [(self.input_dim, idx, self.mosaic) for idx in batch]
31 self.__set_input_dim()
32
33 def __set_input_dim(self):
34 """ This function randomly changes the the input dimension of the dataset. """

Callers

nothing calls this directly

Calls 2

__set_input_dimMethod · 0.95
__iter__Method · 0.45

Tested by

no test coverage detected