gaodrew commited on
Commit
a15bc26
·
verified ·
1 Parent(s): 3561d37

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +18 -0
README.md CHANGED
@@ -80,4 +80,22 @@ configs:
80
  data_files:
81
  - split: train
82
  path: data/train-*
 
83
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
80
  data_files:
81
  - split: train
82
  path: data/train-*
83
+ license: apache-2.0
84
  ---
85
+
86
+ from datasets import load_dataset
87
+ from IPython.display import display
88
+ from PIL import Image
89
+
90
+ dataset = load_dataset("gaodrew/gemstone_eval-4by4-256by256px-4shapes-8colors-1k", split='train')
91
+
92
+ #shapes = ["circle", "triangle", "square", "star"]
93
+ #colors = ["red", "orange", "yellow", "green", "blue", "purple", "pink", "black"]
94
+
95
+ print(dataset)
96
+
97
+ # Display the first few images
98
+ for i in range(10):
99
+ image_path = dataset[i]['image']
100
+ print(f"Image {i+1}:")
101
+ display(Image.open(image_path))