(self)
| 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 |