Skip to content

Commit 2d06b26

Browse files
glenn-jocherClay Januhowski
authored andcommitted
Remove else: from load_image() (ultralytics#8692)
1 parent 6ee492a commit 2d06b26

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

utils/dataloaders.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -682,8 +682,7 @@ def load_image(self, i):
682682
interp = cv2.INTER_LINEAR if (self.augment or r > 1) else cv2.INTER_AREA
683683
im = cv2.resize(im, (int(w0 * r), int(h0 * r)), interpolation=interp)
684684
return im, (h0, w0), im.shape[:2] # im, hw_original, hw_resized
685-
else:
686-
return self.ims[i], self.im_hw0[i], self.im_hw[i] # im, hw_original, hw_resized
685+
return self.ims[i], self.im_hw0[i], self.im_hw[i] # im, hw_original, hw_resized
687686

688687
def cache_images_to_disk(self, i):
689688
# Saves an image as an *.npy file for faster loading

0 commit comments

Comments
 (0)