adding code
Browse files
README.md
CHANGED
|
@@ -20,4 +20,41 @@ configs:
|
|
| 20 |
data_files:
|
| 21 |
- split: train
|
| 22 |
path: data/train-*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 23 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 20 |
data_files:
|
| 21 |
- split: train
|
| 22 |
path: data/train-*
|
| 23 |
+
license: cc-by-4.0
|
| 24 |
+
task_categories:
|
| 25 |
+
- image-to-image
|
| 26 |
+
- text-to-image
|
| 27 |
+
language:
|
| 28 |
+
- en
|
| 29 |
+
tags:
|
| 30 |
+
- ar
|
| 31 |
+
size_categories:
|
| 32 |
+
- 1K<n<10K
|
| 33 |
---
|
| 34 |
+
# 🖼️ Image Editing Dataset with Prompts
|
| 35 |
+
|
| 36 |
+
This dataset contains pairs of images and prompts for training or evaluating image-to-image and text-to-image models.
|
| 37 |
+
|
| 38 |
+
## 📁 Dataset Structure
|
| 39 |
+
|
| 40 |
+
Each sample contains:
|
| 41 |
+
- `input_image`: Original image (before editing)
|
| 42 |
+
- `edit_prompt`: Text instruction describing the desired edit
|
| 43 |
+
- `edited_image`: Resulting image after applying the edit
|
| 44 |
+
- `index`: Unique numeric identifier
|
| 45 |
+
|
| 46 |
+
## 🚀 How to Use
|
| 47 |
+
|
| 48 |
+
```python
|
| 49 |
+
from datasets import load_dataset
|
| 50 |
+
|
| 51 |
+
# Replace with your dataset path
|
| 52 |
+
dataset = load_dataset("your-username/your-dataset-name")
|
| 53 |
+
|
| 54 |
+
# Access a sample
|
| 55 |
+
sample = dataset["train"][0]
|
| 56 |
+
print(sample["edit_prompt"])
|
| 57 |
+
|
| 58 |
+
# Show the input image
|
| 59 |
+
input_image = sample["input_image"]
|
| 60 |
+
input_image.show()
|