Supermaxman commited on
Commit
e408c48
1 Parent(s): 41ef26c

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +52 -55
README.md CHANGED
@@ -77,8 +77,10 @@ size_categories:
77
  # Dataset Card for ESA Hubble Deep Space Images & Captions
78
 
79
  ## Table of Contents
 
80
  - [Dataset Description](#dataset-description)
81
  - [Dataset Summary](#dataset-summary)
 
82
  - [Supported Tasks and Leaderboards](#supported-tasks-and-leaderboards)
83
  - [Languages](#languages)
84
  - [Dataset Structure](#dataset-structure)
@@ -103,65 +105,67 @@ size_categories:
103
  ## Dataset Description
104
 
105
  - **Homepage:** [ESA Hubble](https://esahubble.org/)
106
- - **Repository:** [Hubble Diffuser repository](https://github.com/Supermaxman/HubbleDiffuser)
107
  - **Point of Contact:** [Maxwell Weinzierl](mailto:maxwell.weinzierl@utdallas.edu)
108
 
109
  ### Dataset Summary
110
- The ESA Hubble Deep Space Images & Captions dataset is composed primarily of Hubble deep space scans as high-resolution images,
 
111
  along with textual descriptions written by ESA/Hubble. Metadata is also included, which enables more detailed filtering and understanding of massive space scans.
112
  The purpose of this dataset is to enable text-to-image generation methods for generating high-quality deep space scans from prompts.
 
113
 
114
- #### Examples
115
-
116
- ![opo9941a](https://cdn.spacetelescope.org/archives/images/thumb700x/opo9941a.jpg)
117
- > A grazing encounter between two spiral galaxies: In the direction of the constellation Canis Major, two spiral galaxies pass by each other like majestic ships in the night. The near-collision has been caught in images taken by the NASA/ESA Hubble Space Telescope and its Wide Field Planetary Camera 2.
118
 
 
119
 
 
 
 
120
  > Credit: NASA/ESA and The Hubble Heritage Team (STScI)
121
 
 
122
 
123
- ![heic0604a](https://cdn.spacetelescope.org/archives/images/screen/heic0604a.jpg)
124
- > The magnificent starburst galaxy Messier 82: This mosaic image of the magnificent starburst galaxy, Messier 82 (M82) is the sharpest wide-angle view ever obtained of M82. It is a galaxy remarkable for its webs of shredded clouds and flame-like plumes of glowing hydrogen blasting out from its central regions where young stars are being born 10 times faster than they are inside in our Milky Way Galaxy.
125
-
126
-
127
  > Credit: NASA, ESA and the Hubble Heritage Team (STScI/AURA). Acknowledgment: J. Gallagher (University of Wisconsin), M. Mountain (STScI) and P. Puxley (NSF).
128
 
 
129
 
130
- ![heic0715a](https://cdn.spacetelescope.org/archives/images/screen/heic0715a.jpg)
131
- > Extreme star cluster bursts into life in new Hubble image: The star-forming region NGC 3603 - seen here in the latest Hubble Space Telescope image - contains one of the most impressive massive young star clusters in the Milky Way. Bathed in gas and dust the cluster formed in a huge rush of star formation thought to have occurred around a million years ago. The hot blue stars at the core are responsible for carving out a huge cavity in the gas seen to the right of the star cluster in NGC 3603's centre.
132
-
133
-
134
  > Credit: NASA, ESA and the Hubble Heritage (STScI/AURA)-ESA/Hubble Collaboration
135
 
136
-
137
  #### Statistics
138
 
139
- * There are a total of 2,706 deep space images
140
- * The complete uncompressed size of the dataset is 120 GB, so definitely make use of [Streaming](https://huggingface.co/docs/datasets/stream)
141
- * The average image is 44 MB, while the max image size is 432 MB
142
- * The average image has a height of 2,881 pixels, and an average width of 3,267 pixels
143
 
144
  ### Supported Tasks and Leaderboards
145
- - `text-to-image`: The dataset can be used to train a model for conditional image generation from text. A conditional text-to-image generation model is presented with a text prompt, and is asked to generate an image which aligns with that text prompt. Model performance is typically measured by human judgement, as it is difficult to automatically measure the quality of generated images and how closely they match the text prompt. An example of a text-to-image model is [Stable Diffusion v2-1](stabilityai/stable-diffusion-2-1).
146
 
147
- ### Languages
148
 
149
- The text in the dataset is in English, as written by the writers from ESA/Hubble at [https://esahubble.org/](https://esahubble.org/). The associated BCP-47 code is `en`.
150
 
 
151
 
152
  ## Dataset Structure
153
 
154
  ### Data Instances
155
 
156
- A typical data point comprises a high-quality deep space scan as an image, along with a textual description of that image produced by ESA/Hubble.
157
  The textual description was derived by combining the `title` and the `description` of the image from the ESA/Hubble website.
158
  Additionally, each data point also contains significant metadata about the image, such as the type of image, credits, the URL, the release date, and more.
159
 
160
-
161
  An example looks as follows:
162
- ```
 
163
  {
164
- 'image': <encoded image>,
165
  "text":"A grazing encounter between two spiral galaxies: In the direction of the constellation Canis Major, two spiral galaxies pass by each other like majestic ships in the night. The near-collision has been caught in images taken by the NASA/ESA Hubble Space Telescope and its Wide Field Planetary Camera 2.",
166
  "id":"opo9941a",
167
  "title":"A grazing encounter between two spiral galaxies",
@@ -217,57 +221,54 @@ An example looks as follows:
217
  - `crop_h`: height starting point of image if cropped, otherwise 0
218
  - `cropped`: whether this image needed to be cropped or not
219
 
220
-
221
  ### Data Splits
222
 
223
- The data is only provided in a single training split.
224
-
225
 
226
  ## Dataset Creation
227
 
228
  ### Curation Rationale
229
- The ESA Hubble Deep Space Images & Captions dataset was built to provide ease of access to extremely high-quality Hubble deep space scans.
 
230
  Images from the Hubble telescope have already inspired millions, and the hope is that this dataset can be used to create inspiring models and approaches to further push interest in space & cosmology.
231
 
232
  ### Source Data
233
 
234
  #### Initial Data Collection
235
- All images were collected from [https://esahubble.org/](https://esahubble.org/).
236
- Fullsize Original images & metadata were crawled from the ESA Hubble website using [Scrapy](https://scrapy.org/).
237
- Images were downloaded as `.tiff` files with the following [code](https://github.com/Supermaxman/SpaceGAN), while
238
- additional metadata was later collected for each image using the following [code](https://github.com/Supermaxman/HubbleDiffuser).
239
 
 
 
 
 
240
 
241
  As the ESA Hubble website collects images from a wide variety of sources, images were filtered to try to avoid any non-space scan images as follows:
242
  The ESA Hubble [Advanced Image Search](http://esahubble.org/images/archive/search) enables the following filtering parameters:
243
- * images with Minimum size greater than or equal to 400x300
244
- * Ranking greater than or equal to Fair or better
245
- * Type containing 'Observation'
246
 
 
 
 
247
 
248
  This reduced significantly the number of images which had nothing to do with Hubble deep space scans.
249
  A total of around 3,000 space images were collected with this method.
250
 
251
-
252
  #### Filtering
253
 
254
  Further automatic and manual filtering was performed to remove the following:
255
- * improperly classified images
256
- * space renders
257
- * diagrams with text
258
- * images of celestial bodies within our solar system
259
 
 
 
 
 
 
260
 
261
  This brought the total number of deep space images down to 2,593.
262
  This process was not perfect, and there likely remain some images in the dataset that should be removed in the future.
263
 
264
-
265
-
266
  #### Preprocessing
267
 
268
- Some of the deep space scans were as large as 34,372x19,345, with a bit depth of 24 (nearly 2 GB).
269
- Unfortunately, these images were too large to upload easily.
270
- Therefore, images were automatically subdivided in half if they were above 12,000 pixels in either height or width.
271
  Subdivided images were also tagged with additional metadata, such that users can reconstruct the original images if they would prefer.
272
  Otherwise, metadata was copied across subdivided images.
273
  Additionally, images were converted from RGB/RGBX `.tiff` to RGB `.png` files to avoid encoding issues.
@@ -299,13 +300,11 @@ A system that succeeds at text-to-image generation would be able to generate ins
299
 
300
  ### Discussion of Biases
301
 
302
- It is unfortunate that we currently only have English captions for these deep space scans.
303
  In the future, expanding these captions to more languages could help spread interest in astronomy far and wide.
304
 
305
-
306
  Additionally, these captions may be too technical for the average person to effectively utilize for a text-to-image model.
307
 
308
-
309
  ### Other Known Limitations
310
 
311
  [N/A]
@@ -317,19 +316,17 @@ Additionally, these captions may be too technical for the average person to effe
317
  The dataset was initially created by all the wonderful researchers, engineers, scientists, and more behind the Hubble Telescope, NASA, and the ESA.
318
  Maxwell Weinzierl collected, filtered, and preprocessed this data for ease of use.
319
 
320
-
321
  ### Licensing Information
322
 
323
- ESA/Hubble images, videos and web texts are released under the [Creative Commons Attribution 4.0 International license](https://creativecommons.org/licenses/by/4.0/)
324
  and may on a non-exclusive basis be reproduced without fee provided they are clearly and visibly credited.
325
  See [https://esahubble.org/copyright/](https://esahubble.org/copyright/) for additional conditions for reproduction and copyright.
326
 
327
-
328
  ### Citation Information
329
 
330
  If you use this dataset, please cite it as:
331
 
332
- ```
333
  @misc{weinzierl2023hubble,
334
  author = {Weinzierl, Maxwell A.},
335
  title = {ESA Hubble Deep Space Images & Captions},
@@ -340,4 +337,4 @@ If you use this dataset, please cite it as:
340
 
341
  ### Contributions
342
 
343
- Thanks to [@supermaxman](https://github.com/supermaxman) for adding this dataset.
 
77
  # Dataset Card for ESA Hubble Deep Space Images & Captions
78
 
79
  ## Table of Contents
80
+
81
  - [Dataset Description](#dataset-description)
82
  - [Dataset Summary](#dataset-summary)
83
+ - [Examples](#examples)
84
  - [Supported Tasks and Leaderboards](#supported-tasks-and-leaderboards)
85
  - [Languages](#languages)
86
  - [Dataset Structure](#dataset-structure)
 
105
  ## Dataset Description
106
 
107
  - **Homepage:** [ESA Hubble](https://esahubble.org/)
108
+ - **Repository:** [Hubble Diffusion repository](https://github.com/Supermaxman/hubble-diffusion)
109
  - **Point of Contact:** [Maxwell Weinzierl](mailto:maxwell.weinzierl@utdallas.edu)
110
 
111
  ### Dataset Summary
112
+
113
+ The ESA Hubble Deep Space Images & Captions dataset is composed primarily of Hubble deep space scans as high-resolution images,
114
  along with textual descriptions written by ESA/Hubble. Metadata is also included, which enables more detailed filtering and understanding of massive space scans.
115
  The purpose of this dataset is to enable text-to-image generation methods for generating high-quality deep space scans from prompts.
116
+ Check out [Hubble Diffusion v2](https://huggingface.co/Supermaxman/hubble-diffusion-2) for an example of a model trained on this dataset!
117
 
118
+ ### Examples
 
 
 
119
 
120
+ #### A grazing encounter between two spiral galaxies
121
 
122
+ > In the direction of the constellation Canis Major, two spiral galaxies pass by each other like majestic ships in the night. The near-collision has been caught in images taken by the NASA/ESA Hubble Space Telescope and its Wide Field Planetary Camera 2.
123
+ >![opo9941a](https://cdn.spacetelescope.org/archives/images/thumb700x/opo9941a.jpg)
124
+ >
125
  > Credit: NASA/ESA and The Hubble Heritage Team (STScI)
126
 
127
+ #### The magnificent starburst galaxy Messier 82
128
 
129
+ > This mosaic image of the magnificent starburst galaxy, Messier 82 (M82) is the sharpest wide-angle view ever obtained of M82. It is a galaxy remarkable for its webs of shredded clouds and flame-like plumes of glowing hydrogen blasting out from its central regions where young stars are being born 10 times faster than they are inside in our Milky Way Galaxy.
130
+ >![heic0604a](https://cdn.spacetelescope.org/archives/images/screen/heic0604a.jpg)
131
+ >
 
132
  > Credit: NASA, ESA and the Hubble Heritage Team (STScI/AURA). Acknowledgment: J. Gallagher (University of Wisconsin), M. Mountain (STScI) and P. Puxley (NSF).
133
 
134
+ #### Extreme star cluster bursts into life in new Hubble image
135
 
136
+ > The star-forming region NGC 3603 - seen here in the latest Hubble Space Telescope image - contains one of the most impressive massive young star clusters in the Milky Way. Bathed in gas and dust the cluster formed in a huge rush of star formation thought to have occurred around a million years ago. The hot blue stars at the core are responsible for carving out a huge cavity in the gas seen to the right of the star cluster in NGC 3603's centre.
137
+ >![heic0715a](https://cdn.spacetelescope.org/archives/images/screen/heic0715a.jpg)
138
+ >
 
139
  > Credit: NASA, ESA and the Hubble Heritage (STScI/AURA)-ESA/Hubble Collaboration
140
 
 
141
  #### Statistics
142
 
143
+ - There are a total of 2,706 deep space images
144
+ - The complete uncompressed size of the dataset is 120 GB, so definitely make use of [Streaming](https://huggingface.co/docs/datasets/stream)
145
+ - The average image is 44 MB, while the max image size is 432 MB
146
+ - The average image has a height of 2,881 pixels, and an average width of 3,267 pixels
147
 
148
  ### Supported Tasks and Leaderboards
 
149
 
150
+ - `text-to-image`: The dataset can be used to train a model for conditional image generation from text. A conditional text-to-image generation model is presented with a text prompt, and is asked to generate an image which aligns with that text prompt. Model performance is typically measured by human judgement, as it is difficult to automatically measure the quality of generated images and how closely they match the text prompt. An example of a text-to-image model is [Stable Diffusion v2-1](https://huggingface.co/stabilityai/stable-diffusion-2-1). An example of a text-to-image model trained on this dataset is [Hubble Diffusion v2](https://huggingface.co/Supermaxman/hubble-diffusion-2).
151
 
152
+ ### Languages
153
 
154
+ The text describing the images in the dataset is in English, as written by the writers from ESA/Hubble at [https://esahubble.org/](https://esahubble.org/). The associated BCP-47 code is `en`.
155
 
156
  ## Dataset Structure
157
 
158
  ### Data Instances
159
 
160
+ A typical data point comprises a high-quality deep space scan as an image, along with a textual description of that image produced by ESA/Hubble.
161
  The textual description was derived by combining the `title` and the `description` of the image from the ESA/Hubble website.
162
  Additionally, each data point also contains significant metadata about the image, such as the type of image, credits, the URL, the release date, and more.
163
 
 
164
  An example looks as follows:
165
+
166
+ ```json
167
  {
168
+ "image": "<encoded image>",
169
  "text":"A grazing encounter between two spiral galaxies: In the direction of the constellation Canis Major, two spiral galaxies pass by each other like majestic ships in the night. The near-collision has been caught in images taken by the NASA/ESA Hubble Space Telescope and its Wide Field Planetary Camera 2.",
170
  "id":"opo9941a",
171
  "title":"A grazing encounter between two spiral galaxies",
 
221
  - `crop_h`: height starting point of image if cropped, otherwise 0
222
  - `cropped`: whether this image needed to be cropped or not
223
 
 
224
  ### Data Splits
225
 
226
+ The data is only provided in a single training split, as the purpose of the dataset is additional fine-tuning for the task of `text-to-image` generation.
 
227
 
228
  ## Dataset Creation
229
 
230
  ### Curation Rationale
231
+
232
+ The ESA Hubble Deep Space Images & Captions dataset was built to provide ease of access to extremely high-quality Hubble deep space scans.
233
  Images from the Hubble telescope have already inspired millions, and the hope is that this dataset can be used to create inspiring models and approaches to further push interest in space & cosmology.
234
 
235
  ### Source Data
236
 
237
  #### Initial Data Collection
 
 
 
 
238
 
239
+ All images were collected from [https://esahubble.org/](https://esahubble.org/).
240
+ Fullsize Original images & metadata were crawled from the ESA Hubble website using [Scrapy](https://scrapy.org/).
241
+ Images were downloaded as `.tiff` files with the following [code](https://github.com/Supermaxman/SpaceGAN), while
242
+ additional metadata was later collected for each image using the following [code](https://github.com/Supermaxman/hubble-diffusion).
243
 
244
  As the ESA Hubble website collects images from a wide variety of sources, images were filtered to try to avoid any non-space scan images as follows:
245
  The ESA Hubble [Advanced Image Search](http://esahubble.org/images/archive/search) enables the following filtering parameters:
 
 
 
246
 
247
+ - images with Minimum size greater than or equal to 400x300
248
+ - Ranking greater than or equal to Fair or better
249
+ - Type containing 'Observation'
250
 
251
  This reduced significantly the number of images which had nothing to do with Hubble deep space scans.
252
  A total of around 3,000 space images were collected with this method.
253
 
 
254
  #### Filtering
255
 
256
  Further automatic and manual filtering was performed to remove the following:
 
 
 
 
257
 
258
+ - improperly classified images
259
+ - space renders
260
+ - diagrams with text
261
+ - images of celestial bodies within our solar system
262
+ - images with too low a resolution
263
 
264
  This brought the total number of deep space images down to 2,593.
265
  This process was not perfect, and there likely remain some images in the dataset that should be removed in the future.
266
 
 
 
267
  #### Preprocessing
268
 
269
+ Some of the deep space scans were as large as 34,372x19,345, with a bit depth of 24 (nearly 2 GB).
270
+ Unfortunately, these images were too large to upload easily
271
+ Therefore, images were automatically subdivided in half if they were above 12,000 pixels in either height or width.
272
  Subdivided images were also tagged with additional metadata, such that users can reconstruct the original images if they would prefer.
273
  Otherwise, metadata was copied across subdivided images.
274
  Additionally, images were converted from RGB/RGBX `.tiff` to RGB `.png` files to avoid encoding issues.
 
300
 
301
  ### Discussion of Biases
302
 
303
+ It is unfortunate that we currently only have English captions for these deep space scans.
304
  In the future, expanding these captions to more languages could help spread interest in astronomy far and wide.
305
 
 
306
  Additionally, these captions may be too technical for the average person to effectively utilize for a text-to-image model.
307
 
 
308
  ### Other Known Limitations
309
 
310
  [N/A]
 
316
  The dataset was initially created by all the wonderful researchers, engineers, scientists, and more behind the Hubble Telescope, NASA, and the ESA.
317
  Maxwell Weinzierl collected, filtered, and preprocessed this data for ease of use.
318
 
 
319
  ### Licensing Information
320
 
321
+ ESA/Hubble images, videos and web texts are released under the [Creative Commons Attribution 4.0 International license](https://creativecommons.org/licenses/by/4.0/)
322
  and may on a non-exclusive basis be reproduced without fee provided they are clearly and visibly credited.
323
  See [https://esahubble.org/copyright/](https://esahubble.org/copyright/) for additional conditions for reproduction and copyright.
324
 
 
325
  ### Citation Information
326
 
327
  If you use this dataset, please cite it as:
328
 
329
+ ```bibtex
330
  @misc{weinzierl2023hubble,
331
  author = {Weinzierl, Maxwell A.},
332
  title = {ESA Hubble Deep Space Images & Captions},
 
337
 
338
  ### Contributions
339
 
340
+ Thanks to [@supermaxman](https://github.com/supermaxman) for adding this dataset.