parquet-converter commited on
Commit
b3dd820
1 Parent(s): 8acfecc

Update parquet files

Browse files
README.md DELETED
@@ -1,148 +0,0 @@
1
- ---
2
- annotations_creators:
3
- - machine-generated
4
- language_creators:
5
- - expert-generated
6
- language:
7
- - en
8
- license:
9
- - mit
10
- multilinguality:
11
- - monolingual
12
- size_categories:
13
- - 10K<n<100K
14
- source_datasets:
15
- - original
16
- task_categories:
17
- - image-to-text
18
- - text-to-image
19
- task_ids:
20
- - image-captioning
21
- pretty_name: ShahNegar
22
- ---
23
-
24
- # ShahNegar (A Plotted version of The Shahnameh)
25
-
26
- This dataset is a plotted version of Ferdowsi's Shahnameh (which is a highly-regarded ancient set of Farsi poems) generated using DALL-E mini (aka [craiyon](https://www.craiyon.com/)). You can use this dataset using the code below:
27
-
28
- ```python
29
- from datasets import load_dataset
30
-
31
- dataset = load_dataset("sadrasabouri/ShahNegar")
32
- ```
33
-
34
- ## Table of Contents
35
- - [Table of Contents](#table-of-contents)
36
- - [Dataset Description](#dataset-description)
37
- - [Dataset Summary](#dataset-summary)
38
- - [Supported Tasks and Leaderboards](#supported-tasks-and-leaderboards)
39
- - [Languages](#languages)
40
- - [Dataset Structure](#dataset-structure)
41
- - [Data Instances](#data-instances)
42
- - [Data Fields](#data-fields)
43
- - [Data Splits](#data-splits)
44
- - [Dataset Creation](#dataset-creation)
45
- - [Annotations](#annotations)
46
- - [Personal and Sensitive Information](#personal-and-sensitive-information)
47
- - [Considerations for Using the Data](#considerations-for-using-the-data)
48
- - [Social Impact of Dataset](#social-impact-of-dataset)
49
- - [Discussion of Biases](#discussion-of-biases)
50
- - [Other Known Limitations](#other-known-limitations)
51
- - [Additional Information](#additional-information)
52
- - [Dataset Curators](#dataset-curators)
53
- - [Licensing Information](#licensing-information)
54
- - [Citation Information](#citation-information)
55
- - [Contributions](#contributions)
56
-
57
- ## Dataset Description
58
-
59
- - **Paper:**
60
- - **Point of Contact:** [Sadra Sabouri](mailto:sabouri.sadra@gmail.com)
61
-
62
- ### Dataset Summary
63
-
64
- This dataset contains more than 30K images with their corresponding text from the Shahnameh. For each Shahnameh paragraph, we generated at most 9 images. Images corresponding to the same paragraphs have the same `id` field. There was a human annotation post-process in which we removed some harmful/private generated images from the dataset. After all we reached to more than 30K, 256 * 256 images.
65
-
66
- ### Supported Tasks and Leaderboards
67
-
68
- The main purpose of making this dataset open source is because of its artistic value, but it can also be used for the below tasks:
69
- + text-to-image
70
- + image-to-text (image captioning)
71
-
72
- ### Languages
73
-
74
- The Shahnameh was generally written in Farsi (Persian) but the translated version we used for this dataset - [satoor](https://www.sattor.com/english/Shahnameh.pdf) - was completely in English with no alignments for the corresponding Farsi poem. We are planning to add another field to dataset entries which is the corresponding Farsi poem as soon as possible.
75
-
76
- ## Dataset Structure
77
-
78
- ### Data Fields
79
-
80
- Here is an instance of our dataset:
81
-
82
- ```json
83
- {
84
- "image": <PIL Image Bytes>,
85
- "id": 0,
86
- "text": "He took up his abode in the mountains, and clad himself and his people in tiger-skins, and from him sprang all kindly nurture and the arts of clothing, till then unknown."
87
- }
88
- ```
89
- + `image`: the image for given text.
90
- + `id`: the id for the text (**Not for the image**).
91
- + `text`: the English text for the image.
92
-
93
-
94
- ### Data Splits
95
-
96
- This dataset has only a split (`train` split).
97
-
98
- ## Dataset Creation
99
-
100
- The translated version of the Shahnameh was generally derived from the [satoor](https://www.sattor.com/english/Shahnameh.pdf) website. We first extracted texts from the pdf. After that, we divided paragraphs into sentences and give each sentence to the DALL-E mini model through its online API. It generated nine images for each sentence. After a few annotations, we came up with more than 30000 images.
101
-
102
- ### Annotations
103
-
104
- #### Annotation process
105
-
106
- Through the process of image generation, we noticed a bias in the DALL-E models towards the word `iran`. It was biased so that each sentence with this given word would have pictures from Iran's political figures which were usually totally irrelevant. The annotation process mainly focused to deal with these pictures. We removed those images which seems to be harmful to those figures and/or were irrelevant to the context.
107
-
108
- #### Who are the annotators?
109
-
110
- Mahsa Namdar and Sadra Sabouri were the annotators of this dataset.
111
-
112
- ### Personal and Sensitive Information
113
-
114
- Since the textual data is easily downloadable and the images were generated through an image generation model there shouldn't be any personal information in this dataset. Just in case you find something harmful or violating of one's personal information please let us know. We will take proper action as soon as possible.
115
-
116
- ## Considerations for Using the Data
117
-
118
- ### Social Impact of Dataset
119
-
120
- This dataset is mainly aimed to release for its artistic value. The process of generating images for the Shahnameh - which is one of the most important Farsi poem books - is our precious contribution. This dataset is not only used for this purpose but also can as a dataset in image-to-text and text-to-image tasks.
121
-
122
- ### Discussion of Biases
123
-
124
- The dataset's possible biases would come from the DALL-E mini biases. It's actually a good practice to check the dataset entries in order to find biases in that model. One it's worth mentioning in this work is the DALL-E mini model's bias for the word `iran` which nearly always comes up with images from political figures of this country.
125
-
126
- ### Other Known Limitations
127
-
128
- There are constant debates in the literature about the limitations of machine-generated datasets. Some believe that since nowadays models are not perfect - and so do their output, it wouldn't be a good idea to use these artificially generated datasets as input to the new model. They suggest that by doing so we are actually limiting our accuracy by the model's accuracy which provided the primary dataset.
129
-
130
- ## Additional Information
131
-
132
- ### Dataset Curators
133
-
134
- + Emad Fatemizadeh: The general idea for generating a graphical version of Farsi poems was firstly introduced by him.
135
- + Sadra Sabouri: He looked up a translated version of the Shahnameh, extract and tokenized poems from it, and used the online DALL-E mini API to generate images from poems.
136
- + Mahsa Namdar: The process of annotation as a post-process on data has been held by her.
137
-
138
- ### Licensing Information
139
-
140
- MIT
141
-
142
- ### Citation Information
143
-
144
- [More Information Needed]
145
-
146
- ### Contributions
147
-
148
- Thanks to [@sadrasabouri](https://github.com/sadrasabouri) for adding this dataset.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
dataset_infos.json DELETED
@@ -1,42 +0,0 @@
1
- {"sadrasabouri--ShahNegar": {
2
- "description": "",
3
- "citation": "",
4
- "homepage": "",
5
- "license": "",
6
- "features": {
7
- "image": {
8
- "decode": true,
9
- "id": null,
10
- "_type": "Image"
11
- },
12
- "id": {
13
- "dtype": "int64",
14
- "id": null,
15
- "_type": "Value"
16
- },
17
- "text": {
18
- "dtype": "string",
19
- "id": null,
20
- "_type": "Value"
21
- }
22
- },
23
- "post_processed": null,
24
- "supervised_keys": null,
25
- "task_templates": null,
26
- "builder_name": null,
27
- "config_name": null,
28
- "version": null,
29
- "splits": {
30
- "train": {
31
- "name": "train",
32
- "num_bytes": 772781750.593,
33
- "num_examples": 31759,
34
- "dataset_name": "ShahNegar"
35
- }
36
- },
37
- "download_checksums": null,
38
- "download_size": 704309973,
39
- "post_processing_size": null,
40
- "dataset_size": 772781750.593,
41
- "size_in_bytes": 1477091723.593
42
- }}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
data/train-00000-of-00002-418810a476293108.parquet → sadrasabouri--ShahNegar/parquet-train-00000-of-00002.parquet RENAMED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:e70eadb9bdec6cc6da298f6acc7cb0d4198931a2f7a75c8c32c29a308afcc228
3
- size 350686083
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:20e55313f418d9711f017f3aea65113bad021fd8d38bd85cc65676f463b84a31
3
+ size 574021366
data/train-00001-of-00002-66d21b2b9734c69f.parquet → sadrasabouri--ShahNegar/parquet-train-00001-of-00002.parquet RENAMED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:a9447e1f23263b5f6a5342b25df1605b751b79c1f81c706a9608f9d6e0473c8d
3
- size 353623890
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c6524dbed4fa7974308df5196fe44b018c423d768c00d98ce873b26738e4bdb2
3
+ size 130386117