Skip to content

Instantly share code, notes, and snippets.

@AmrutaKoshe
Created July 4, 2021 10:18
Show Gist options
  • Save AmrutaKoshe/303eb0b3af94a7fd1361d9cc84d0a5cf to your computer and use it in GitHub Desktop.
Save AmrutaKoshe/303eb0b3af94a7fd1361d9cc84d0a5cf to your computer and use it in GitHub Desktop.
Breed = 'dog breed/Akita dog'
import os
sub_class = os.listdir(Breed)
fig = plt.figure(figsize=(10,5))
for e in range(len(sub_class[:10])):
plt.subplot(2,5,e+1)
img = plt.imread(os.path.join(Breed,sub_class[e]))
plt.imshow(img, cmap=plt.get_cmap('gray'))
plt.axis('off')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment