in mapillary_sls/datasets/generic_dataset.py [0:0]
6 lines of code
3 McCabe index (conditional complexity)
def __getitem__(self, idx):
img = [Image.open(im) for im in self.images[idx].split(",")]
img = [self.transform(im) for im in img]
if len(img) == 1:
img = img[0]
return img, idx