File size: 9,931 Bytes
44f2997 1c3f728 44f2997 38fa5d1 bfd7f2b 23243a7 2539316 44f2997 7a9ab81 44f2997 c9ef186 44f2997 c9ef186 acc4eb3 edef993 acc4eb3 c9ef186 44f2997 c9ef186 44f2997 acc4eb3 44f2997 acc4eb3 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 |
---
license: cc0-1.0
language:
- en
pretty_name: The Metropolitan Museum of Art - Open Access CSV
dataset_info:
features:
- name: Object Name
dtype: string
- name: jpg
dtype: image
- name: Title
dtype: string
- name: Artist Display Name
dtype: string
- name: Object Date
dtype: string
- name: Object ID
dtype: int64
- name: Is Highlight
dtype: bool
- name: Is Timeline Work
dtype: bool
- name: Is Public Domain
dtype: bool
- name: Gallery Number
dtype: string
- name: Department
dtype: string
- name: AccessionYear
dtype: string
- name: Culture
dtype: string
- name: Period
dtype: string
- name: Dynasty
dtype: string
- name: Reign
dtype: string
- name: Portfolio
dtype: string
- name: Constituent ID
dtype: string
- name: Artist Role
dtype: string
- name: Artist Prefix
dtype: string
- name: Artist Display Bio
dtype: string
- name: Artist Suffix
dtype: string
- name: Artist Alpha Sort
dtype: string
- name: Artist Nationality
dtype: string
- name: Artist Begin Date
dtype: string
- name: Artist End Date
dtype: string
- name: Artist Gender
dtype: string
- name: Artist ULAN URL
dtype: string
- name: Artist Wikidata URL
dtype: string
- name: Object Begin Date
dtype: int64
- name: Object End Date
dtype: int64
- name: Medium
dtype: string
- name: Dimensions
dtype: string
- name: Credit Line
dtype: string
- name: Geography Type
dtype: string
- name: City
dtype: string
- name: State
dtype: string
- name: County
dtype: string
- name: Country
dtype: string
- name: Region
dtype: string
- name: Subregion
dtype: string
- name: Locale
dtype: string
- name: Locus
dtype: string
- name: Excavation
dtype: string
- name: River
dtype: string
- name: Classification
dtype: string
- name: Rights and Reproduction
dtype: string
- name: Link Resource
dtype: string
- name: Object Wikidata URL
dtype: string
- name: Metadata Date
dtype: string
- name: Repository
dtype: string
- name: Tags
dtype: string
- name: Tags AAT URL
dtype: string
- name: Tags Wikidata URL
dtype: string
- name: url
dtype: string
- name: key
dtype: string
- name: status
dtype: string
- name: error_message
dtype: string
- name: width
dtype: int32
- name: height
dtype: int32
- name: original_width
dtype: int32
- name: original_height
dtype: int32
- name: exif
dtype: string
- name: sha256
dtype: string
---
The Metropolitan Museum of Art Open Access on HuggingFace
===================
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.
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.
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.
## Documentation in progress
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.
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.
## Pull requests
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 [email protected] and we will forward to the appropriate department for review.
## Attribution
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.
## Do not misrepresent the dataset
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.
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.
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).
## Additional usage guidelines
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.
---------------------
## Notes on HuggingFace-specific Data
* This dataset includes images in the ```url``` column, and additional data generated by [img2dataset](https://github.com/rom1504/img2dataset)
* We include all data, including rows that do *not* have images
* You can filter by "Is Public Domain=True" or is "url" blank
* These images are the ```primaryImageSmall``` field via our API, i.e., they are not full-res, and have some compression
* 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```)
* This would require edits to ```add_images.py```
## Updating or recreating the CSV + images
Right now, this is a manual process. This will eventually be automated.
1. Download or clone the CSV from our [github](https://github.com/metmuseum/openaccess)
2. (Optional) Create a compressed CSV
* Since some operating systems or machines choke on our huge CSV, it can be convenient to compress the file.
* Easiest: ```gzip MetObjects.csv```
3. Process the CSV
* Right now, there are many ```\n``` characters in the CSV. Some Python interpreters don't like this.
* Use ```clean.py``` to create a cleaned version, now called ```metadata.csv.gz```
4. (Optional) add images to the CSV
* Run ```add_images.py```
* It will take a while
* 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.
5. Install [img2dataset](https://github.com/rom1504/img2dataset)
* ```pip install img2dataset```
6. Run ```img2dataset``` with the following options:
* ```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']"```
* 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
* This will take some time
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. |