Skip to content

Instantly share code, notes, and snippets.

@amankharwal
Created Dec 22, 2020
Embed
What would you like to do?
index = list(set(df.image_id))
image = random.choice(index)
print("Image ID: %s"%(image))
img = cv2.imread(f'/kaggle/input/car-object-detection/data/training_images/{image}.jpg')
image = random.choice(index)
Image(filename=f'/kaggle/input/car-object-detection/data/training_images/{image}.jpg',width=600)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment