Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -1,9 +1,5 @@
|
|
| 1 |
---
|
| 2 |
configs:
|
| 3 |
-
- config_name: default
|
| 4 |
-
data_files:
|
| 5 |
-
- split: split_20250822_230610
|
| 6 |
-
path: data/split_20250822_230610-*
|
| 7 |
- config_name: split_20250821_120925
|
| 8 |
data_files:
|
| 9 |
- split: train
|
|
@@ -144,6 +140,10 @@ configs:
|
|
| 144 |
data_files:
|
| 145 |
- split: train
|
| 146 |
path: data/split_20250822_225145.parquet
|
|
|
|
|
|
|
|
|
|
|
|
|
| 147 |
dataset_info:
|
| 148 |
features:
|
| 149 |
- name: media_hash
|
|
@@ -158,17 +158,54 @@ dataset_info:
|
|
| 158 |
dtype: float32
|
| 159 |
- name: media_image
|
| 160 |
dtype: image
|
| 161 |
-
splits:
|
| 162 |
-
- name: train
|
| 163 |
-
num_bytes: 0
|
| 164 |
-
num_examples: 0
|
| 165 |
-
- name: split_20250822_230610
|
| 166 |
-
num_bytes: 93688.0
|
| 167 |
-
num_examples: 3
|
| 168 |
-
download_size: 95788
|
| 169 |
-
dataset_size: 93688.0
|
| 170 |
---
|
| 171 |
|
| 172 |
# BitMind Image Benchmarks
|
| 173 |
|
| 174 |
-
AI-generated image
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
configs:
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
- config_name: split_20250821_120925
|
| 4 |
data_files:
|
| 5 |
- split: train
|
|
|
|
| 140 |
data_files:
|
| 141 |
- split: train
|
| 142 |
path: data/split_20250822_225145.parquet
|
| 143 |
+
- config_name: split_20250822_230610
|
| 144 |
+
data_files:
|
| 145 |
+
- split: train
|
| 146 |
+
path: data/split_20250822_230610.parquet
|
| 147 |
dataset_info:
|
| 148 |
features:
|
| 149 |
- name: media_hash
|
|
|
|
| 158 |
dtype: float32
|
| 159 |
- name: media_image
|
| 160 |
dtype: image
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 161 |
---
|
| 162 |
|
| 163 |
# BitMind Image Benchmarks
|
| 164 |
|
| 165 |
+
This dataset contains AI-generated image samples.
|
| 166 |
+
|
| 167 |
+
## Dataset Structure
|
| 168 |
+
|
| 169 |
+
Each config represents a batch upload with:
|
| 170 |
+
- Parquet files in `data/` containing image data and metadata
|
| 171 |
+
|
| 172 |
+
## Loading the Dataset
|
| 173 |
+
|
| 174 |
+
```python
|
| 175 |
+
from datasets import load_dataset
|
| 176 |
+
|
| 177 |
+
# List available configs (timestamps)
|
| 178 |
+
configs = ['split_20250821_110436', 'split_20250821_112432', ...]
|
| 179 |
+
|
| 180 |
+
# Load specific config
|
| 181 |
+
dataset = load_dataset('bitmind/bm-image-benchmarks', 'split_20250821_110436')
|
| 182 |
+
|
| 183 |
+
# Access data
|
| 184 |
+
for sample in dataset['train']:
|
| 185 |
+
print(f"Model: {sample['model_name']}")
|
| 186 |
+
print(f"Label: {sample['label']}")
|
| 187 |
+
# sample['media_image'] contains the PIL Image
|
| 188 |
+
image = sample['media_image']
|
| 189 |
+
image.show() # Display the image
|
| 190 |
+
```
|
| 191 |
+
|
| 192 |
+
## Processing Images
|
| 193 |
+
|
| 194 |
+
```python
|
| 195 |
+
from datasets import load_dataset
|
| 196 |
+
from PIL import Image
|
| 197 |
+
|
| 198 |
+
# Load dataset (images and metadata)
|
| 199 |
+
config = 'split_20250821_110436' # Use your desired config
|
| 200 |
+
dataset = load_dataset('bitmind/bm-image-benchmarks', config)
|
| 201 |
+
|
| 202 |
+
# Process images with metadata
|
| 203 |
+
for sample in dataset['train']:
|
| 204 |
+
image = sample['media_image'] # PIL Image object
|
| 205 |
+
print(f"Model: {sample['model_name']}")
|
| 206 |
+
print(f"Label: {sample['label']}")
|
| 207 |
+
print(f"Hash: {sample['media_hash']}")
|
| 208 |
+
|
| 209 |
+
# Your image processing code here
|
| 210 |
+
# image.save(f"{sample['media_hash']}.png")
|
| 211 |
+
```
|