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

Method pull_item

yolox/data/datasets/mot.py:93–104  ·  view source on GitHub ↗
(self, index)

Source from the content-addressed store, hash-verified

91 return self.annotations[index][0]
92
93 def pull_item(self, index):
94 id_ = self.ids[index]
95
96 res, img_info, file_name = self.annotations[index]
97 # load image and preprocess
98 img_file = os.path.join(
99 self.data_dir, self.name, file_name
100 )
101 img = cv2.imread(img_file)
102 assert img is not None
103
104 return img, res.copy(), img_info, np.array([id_])
105
106 @Dataset.resize_getitem
107 def __getitem__(self, index):

Callers 3

__getitem__Method · 0.95
__getitem__Method · 0.45
mixupMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected