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

Method wrapper

yolox/data/datasets/datasets_wrapper.py:112–126  ·  view source on GitHub ↗
(self, index)

Source from the content-addressed store, hash-verified

110
111 @wraps(getitem_fn)
112 def wrapper(self, index):
113 if not isinstance(index, int):
114 has_dim = True
115 self._input_dim = index[0]
116 self.enable_mosaic = index[2]
117 index = index[1]
118 else:
119 has_dim = False
120
121 ret_val = getitem_fn(self, index)
122
123 if has_dim:
124 del self._input_dim
125
126 return ret_val
127
128 return wrapper

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected