brettrenfer commited on
Commit
dd76e01
·
verified ·
1 Parent(s): 4bab509

Update dataset card

Browse files
Files changed (1) hide show
  1. README.md +22 -190
README.md CHANGED
@@ -1,197 +1,29 @@
1
  ---
2
  license: cc0-1.0
3
- language:
4
- - en
5
- pretty_name: The Metropolitan Museum of Art - Open Access CSV
6
-
7
- dataset_info:
8
- features:
9
- - name: Object Name
10
- dtype: string
11
- - name: jpg
12
- dtype: image
13
- - name: Title
14
- dtype: string
15
- - name: Artist Display Name
16
- dtype: string
17
- - name: Object Date
18
- dtype: string
19
- - name: Object ID
20
- dtype: int64
21
- - name: Is Highlight
22
- dtype: bool
23
- - name: Is Timeline Work
24
- dtype: bool
25
- - name: Is Public Domain
26
- dtype: bool
27
- - name: Gallery Number
28
- dtype: string
29
- - name: Department
30
- dtype: string
31
- - name: AccessionYear
32
- dtype: string
33
- - name: Culture
34
- dtype: string
35
- - name: Period
36
- dtype: string
37
- - name: Dynasty
38
- dtype: string
39
- - name: Reign
40
- dtype: string
41
- - name: Portfolio
42
- dtype: string
43
- - name: Constituent ID
44
- dtype: string
45
- - name: Artist Role
46
- dtype: string
47
- - name: Artist Prefix
48
- dtype: string
49
- - name: Artist Display Bio
50
- dtype: string
51
- - name: Artist Suffix
52
- dtype: string
53
- - name: Artist Alpha Sort
54
- dtype: string
55
- - name: Artist Nationality
56
- dtype: string
57
- - name: Artist Begin Date
58
- dtype: string
59
- - name: Artist End Date
60
- dtype: string
61
- - name: Artist Gender
62
- dtype: string
63
- - name: Artist ULAN URL
64
- dtype: string
65
- - name: Artist Wikidata URL
66
- dtype: string
67
- - name: Object Begin Date
68
- dtype: int64
69
- - name: Object End Date
70
- dtype: int64
71
- - name: Medium
72
- dtype: string
73
- - name: Dimensions
74
- dtype: string
75
- - name: Credit Line
76
- dtype: string
77
- - name: Geography Type
78
- dtype: string
79
- - name: City
80
- dtype: string
81
- - name: State
82
- dtype: string
83
- - name: County
84
- dtype: string
85
- - name: Country
86
- dtype: string
87
- - name: Region
88
- dtype: string
89
- - name: Subregion
90
- dtype: string
91
- - name: Locale
92
- dtype: string
93
- - name: Locus
94
- dtype: string
95
- - name: Excavation
96
- dtype: string
97
- - name: River
98
- dtype: string
99
- - name: Classification
100
- dtype: string
101
- - name: Rights and Reproduction
102
- dtype: string
103
- - name: Link Resource
104
- dtype: string
105
- - name: Object Wikidata URL
106
- dtype: string
107
- - name: Metadata Date
108
- dtype: string
109
- - name: Repository
110
- dtype: string
111
- - name: Tags
112
- dtype: string
113
- - name: Tags AAT URL
114
- dtype: string
115
- - name: Tags Wikidata URL
116
- dtype: string
117
- - name: url
118
- dtype: string
119
- - name: key
120
- dtype: string
121
- - name: status
122
- dtype: string
123
- - name: error_message
124
- dtype: string
125
- - name: width
126
- dtype: int32
127
- - name: height
128
- dtype: int32
129
- - name: original_width
130
- dtype: int32
131
- - name: original_height
132
- dtype: int32
133
- - name: exif
134
- dtype: string
135
- - name: sha256
136
- dtype: string
137
  ---
138
- The Metropolitan Museum of Art Open Access on HuggingFace
139
- ===================
140
-
141
- The [Metropolitan Museum of Art](http://www.metmuseum.org) presents over 5,000 years of art from around the world for everyone to experience and enjoy. The Museum lives in two iconic sites in New York City-The Met Fifth Avenue and The Met Cloisters. Millions of people also take part in The Met experience online.
142
-
143
- Since it was founded in 1870, The Met has always aspired to be more than a treasury of rare and beautiful objects. Every day, art comes alive in the Museum's galleries and through its exhibitions and events, revealing both new ideas and unexpected connections across time and across cultures.
144
-
145
- The Metropolitan Museum of Art provides select datasets of information on more than 470,000 artworks in its Collection for unrestricted commercial and noncommercial use. To the extent possible under law, The Metropolitan Museum of Art has waived all rights to the work worldwide under copyright law, including all related and neighboring rights, to the extent allowed by law, using [Creative Commons Zero](https://creativecommons.org/publicdomain/zero/1.0/). This work is published from: The United States Of America. You can also find the text of the CC Zero deed in the file [LICENSE](https://huggingface.co/datasets/metmuseum/openaccess/blob/main/LICENSE.txt) in this repository. These select datasets are now available for use in any media without permission or fee; they also include identifying data for artworks under copyright. The datasets support the search, use, and interaction with the Museum's collection.
146
-
147
- ## Documentation in progress
148
- This data is provided “as is” and you use this data at your own risk. The Metropolitan Museum of Art makes no representations or warranties of any kind. Documentation of the Museum’s collection is an ongoing process and parts of the datasets are incomplete.
149
-
150
- We plan to update the datasets with new and revised information on a regular basis. You are advised to regularly update your copy of the datasets to ensure you are using the best available information.
151
-
152
- ## Pull requests
153
- Because these datasets are generated from our internal database, we do not accept pull requests. If you have identified errors or have extra information to share, please email us at openaccess@metmuseum.org and we will forward to the appropriate department for review.
154
-
155
- ## Attribution
156
- Please consider attributing or citing The Metropolitan Museum of Art's CC0 select datasets, especially with respect to research or publication. Attribution supports efforts to release other datasets in the future. It also reduces the amount of "orphaned data," helping to retain source links.
157
-
158
- ## Do not misrepresent the dataset
159
- Do not mislead others or misrepresent the datasets or their source. You must not use The Metropolitan Museum of Art’s trademarks or otherwise claim or imply that the Museum or any other third party endorses you or your use of the dataset.
160
-
161
- Whenever you transform, translate or otherwise modify the dataset, you must make it clear that the resulting information has been modified. If you enrich or otherwise modify the dataset, consider publishing the derived dataset without reuse restrictions.
162
-
163
- The writers of these guidelines thank the [The Museum of Modern Art](https://www.moma.org/), the [Tate](https://www.tate.org.uk/), [Cooper-Hewitt](https://www.cooperhewitt.org/), and [Europeana](https://www.europeana.eu/en).
164
 
165
- ## Additional usage guidelines
166
- For more details on how to use images of artworks in The Metropolitan Museum of Art’s collection, please visit our [Open Access](http://www.metmuseum.org/about-the-met/policies-and-documents/image-resources) page.
167
 
168
- ---------------------
169
- ## Notes on HuggingFace-specific Data
170
- * This dataset includes images in the ```url``` column, and additional data generated by [img2dataset](https://github.com/rom1504/img2dataset)
171
- * We include all data, including rows that do *not* have images
172
- * You can filter by "Is Public Domain=True" or is "url" blank
173
- * These images are the ```primaryImageSmall``` field via our API, i.e., they are not full-res, and have some compression
174
- * See below and our [Collection API](https://metmuseum.github.io/) if you would like to recreate the data and include larger images (```primaryImage```) or additional views (```additionalImages```)
175
- * This would require edits to ```add_images.py```
176
 
177
- ## Updating or recreating the CSV + images
178
- Right now, this is a manual process. This will eventually be automated.
 
 
179
 
180
- 1. Download or clone the CSV from our [github](https://github.com/metmuseum/openaccess)
181
- 2. (Optional) Create a compressed CSV
182
- * Since some operating systems or machines choke on our huge CSV, it can be convenient to compress the file.
183
- * Easiest: ```gzip MetObjects.csv```
184
- 3. Process the CSV
185
- * Right now, there are many ```\n``` characters in the CSV. Some Python interpreters don't like this.
186
- * Use ```clean.py``` to create a cleaned version, now called ```metadata.csv.gz```
187
- 4. (Optional) add images to the CSV
188
- * Run ```add_images.py```
189
- * It will take a while
190
- * CAUTION: be very careful with the ```do_verify``` variable. Some networks do SSL redirects that Python does not like. Disabling this will not verify SSL certs. This is a quick band-aid to bypass this, but totally unsafe.
191
- 5. Install [img2dataset](https://github.com/rom1504/img2dataset)
192
- * ```pip install img2dataset```
193
- 6. Run ```img2dataset``` with the following options:
194
- * ```img2dataset --processes_count 10 --thread_count 64 --url_list "cleaned_metadata_images.csv.gz" --input_format "csv.gz" --output_format "parquet" --output_folder "data/train" --url_col "primaryImageSmall" --disable_all_reencoding "True" --max_shard_retry 10 --retries 10 --save_additional_columns "['Is Highlight', 'Is Timeline Work', 'Is Public Domain', 'Object ID', 'Gallery Number', 'Department', 'AccessionYear', 'Object Name', 'Title', 'Culture', 'Period', 'Dynasty', 'Reign', 'Portfolio', 'Constituent ID', 'Artist Role', 'Artist Prefix', 'Artist Display Name', 'Artist Display Bio', 'Artist Suffix', 'Artist Alpha Sort', 'Artist Nationality', 'Artist Begin Date', 'Artist End Date', 'Artist Gender', 'Artist ULAN URL', 'Artist Wikidata URL', 'Object Date', 'Object Begin Date', 'Object End Date', 'Medium', 'Dimensions', 'Credit Line', 'Geography Type', 'City', 'State', 'County', 'Country', 'Region', 'Subregion', 'Locale', 'Locus', 'Excavation', 'River', 'Classification', 'Rights and Reproduction', 'Link Resource', 'Object Wikidata URL', 'Metadata Date', 'Repository', 'Tags', 'Tags AAT URL', 'Tags Wikidata URL']"```
195
- * See img2dataset's docs for details on the above. You may want to remove the ```disable_all_reencoding``` option... As-is, it does not downsize or compress images at all
196
- * This will take some time
197
- 7. Voila! You should have a large data folder with many json and parquet files. You should be able to load this in the huggingface client library as a dataset, etc.
 
1
  ---
2
  license: cc0-1.0
3
+ pretty_name: The Met Open Access
4
+ tags:
5
+ - art
6
+ - museum
7
+ - cultural-heritage
8
+ - image
9
+ configs:
10
+ - config_name: default
11
+ data_files:
12
+ - split: train
13
+ path: data/openaccess-*.parquet
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
14
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
15
 
16
+ # metmuseum/openaccess
 
17
 
18
+ Public-domain artworks from The Metropolitan Museum of Art's Open Access initiative,
19
+ joined with image bytes from the Collection API. Generated by the
20
+ [`et-openaccess-embeddings`](https://github.com/metmuseum/et-openaccess-embeddings) toolset.
 
 
 
 
 
21
 
22
+ - **Source metadata:** <https://github.com/metmuseum/openaccess>
23
+ - **Source images / extra fields:** <https://collectionapi.metmuseum.org/public/collection/v1/objects/{id}>
24
+ - **License:** CC0 1.0 (per The Met's Open Access program)
25
+ - **Shards:** 52
26
 
27
+ Each row carries the full set of fields returned by the Collection API
28
+ (`primaryImage`, `title`, `artistDisplayName`, `creditLine`, `objectURL`, `tags`, ...)
29
+ and an `image` struct `{bytes, path}` that the HF dataset viewer renders directly.