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

Method __iter__

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

Source from the content-addressed store, hash-verified

77 self._world_size = world_size
78
79 def __iter__(self):
80 start = self._rank
81 yield from itertools.islice(
82 self._infinite_indices(), start, None, self._world_size
83 )
84
85 def _infinite_indices(self):
86 g = torch.Generator()

Callers 1

__iter__Method · 0.45

Calls 1

_infinite_indicesMethod · 0.95

Tested by

no test coverage detected