MCPcopy Create free account
hub / github.com/drinkingcoder/NeuralMarker / random_select

Method random_select

core/datasets.py:195–199  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

193 self.images_list = glob(os.path.join(root,'*/*/*/*/*.jpg'))
194
195 def random_select(self):
196 index = random.randint(0, len(self.images_list)-1)
197 im_path = self.images_list[index]
198 im = cv2.imread(im_path, cv2.IMREAD_UNCHANGED)
199 return im, im_path
200
201 def __getitem__(self, index):
202 pass

Callers 1

__getitem__Method · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected