Dataset card: align with the JOCCH paper and repo contents

#2
README.md CHANGED
@@ -18,6 +18,9 @@ tags:
18
  - fabric
19
  - pattern-recognition
20
  - image
 
 
 
21
  size_categories:
22
  - 10K<n<100K
23
  source_datasets:
@@ -27,66 +30,112 @@ configs:
27
  data_files: "clean_dataset/clean_textiles_dataset.json"
28
  ---
29
 
30
- # TeXMET: Curated Textile Dataset from the Metropolitan Museum of Art
 
 
 
 
31
 
32
  ## Overview
33
- **TeXMET** is a high-quality, manually curated dataset of textile and tapestry objects from the Metropolitan Museum of Art's Open Access collection. This dataset has been carefully cleaned, validated, and optimized for computer vision and deep learning applications.
34
 
35
- ## 🎯 TEXMET FINAL - CURATED DATASET
36
  - **Total Images**: 18,644 high-resolution images
37
- - **Unique Objects**: 1,697 textile/tapestry objects
38
  - **Average Resolution**: 3.3 MP (1557 x 1631 pixels)
39
- - **Average File Size**: 1.35 MB per image
40
- - **Format**: 100% JPEG, 92% RGB mode
41
  - **Quality**: Hand-selected, duplicates removed, visually validated
42
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
43
  ## Dataset Statistics
44
- - **Curation Method**: Manual validation using FiftyOne + CLIP embeddings
45
- - **Original Collection**: 27,373 objects → **Curated to 18,644 premium samples**
46
  - **Quality Control**: Similarity analysis, duplicate removal, visual inspection
47
  - **Coverage**: Global textile traditions spanning 4000+ years
48
- - **Image Quality**: High-resolution, suitable for ML/CV applications
49
 
50
  ## Directory Structure
 
51
  ```
52
  TEXMET/
53
- ├── clean_dataset/ # 🎯 TEXMET FINAL CURATED DATASET
54
- │ ├── clean_textiles_dataset.json # Main dataset (1,697 objects)
55
- │ ├── texmet_metadata.json # Comprehensive metadata
56
- │ ├── images/ # Primary images (~1,697 images)
57
- │ └── additional_images/ # Additional views (~17K images)
58
- ├── FINAL_CORRECTED_MET_TEXTILES_DATASET/ # Original raw data (27,373 objects)
59
- │ └── objects_with_images_only/ # Complete raw collection
60
  └── README.md # This file
61
  ```
62
 
 
 
 
 
 
 
 
 
 
 
 
63
  ## Data Quality & Curation Process
64
- 1. **Initial Collection**: 27,373 objects from MET API (99.274% success rate)
65
  2. **Filtering**: Focus on high-quality textile/tapestry objects
66
  3. **Manual Curation**: Visual inspection and validation using FiftyOne
67
  4. **Duplicate Removal**: CLIP embedding analysis + manual verification
68
  5. **Quality Control**: Removed low-quality, irrelevant, or damaged images
69
- 6. **Final Validation**: **1,697 premium objects** with **18,644 images**
70
 
71
  ## Image Specifications
72
  - **Total Images**: 18,644 images
73
  - **Average Dimensions**: 1557 x 1631 pixels
74
- - **Average Aspect Ratio**: 1.14 (slightly portrait)
75
- - **Average File Size**: 1.35 MB
76
  - **Average Resolution**: 3.3 megapixels
77
  - **Format**: 100% JPEG
78
- - **Color Mode**: 92% RGB, 8% other modes
79
- - **Quality**: High-resolution, ML/CV ready
80
 
81
  ## Research Applications
82
- - ✅ Textile pattern recognition and classification
83
- - ✅ Cultural heritage digitization and analysis
84
- - ✅ Style transfer and generative AI
85
- - ✅ Historical textile dating and attribution
86
- - ✅ Cross-cultural design studies
87
- - ✅ Computer vision algorithm development
88
- - ✅ Digital art and design inspiration
89
- - ✅ Large-scale image analysis and clustering
 
 
90
 
91
  ## Usage Examples
92
  ```python
@@ -98,16 +147,19 @@ with open('clean_dataset/clean_textiles_dataset.json', 'r') as f:
98
  data = json.load(f)
99
 
100
  df = pd.DataFrame(data)
101
- print(f"TeXMET Final: {len(df)} curated objects")
102
 
103
- # Load metadata
104
  with open('clean_dataset/texmet_metadata.json', 'r') as f:
105
  metadata = json.load(f)
106
- print(f"Total images: {metadata['image_statistics']['total_images']}")
 
 
107
  ```
108
 
109
  ## Version History
110
- - **TeXMET Final v1.0** (July 2025): **1,697 curated objects, 18,644 images**
 
111
  - **Raw Collection** (July 2025): 27,373 objects collected from MET API
112
 
113
  ## Technical Specifications
@@ -115,24 +167,25 @@ print(f"Total images: {metadata['image_statistics']['total_images']}")
115
  - **Image Format**: 100% JPEG
116
  - **Resolution**: High-resolution (average 3.3 MP)
117
  - **File Organization**: Git LFS for large files
118
- - **Compatibility**: Ready for PyTorch, TensorFlow, OpenCV
119
 
120
  ## Citation and Credits
121
 
122
- ### TeXMET Dataset Citation
 
123
  ```bibtex
124
- @dataset{texmet2025,
125
- title={TeXMET: Curated Textile Images from the Metropolitan Museum of Art},
126
- author={HAMZA},
127
- year={2025},
128
- publisher={Thesis Project},
129
- version={1.0},
130
- note={Manually curated dataset: 1,697 objects, 18,644 images}
 
131
  }
132
  ```
133
 
134
  ### Original Data Source
135
- This dataset (TeXMET) is a curated subset of textiles and tapestries from The Metropolitan Museum of Art's Open Access collection, compiled for research purposes. To the best of our knowledge, this is the first comprehensive compilation of MET's textile and tapestry collections in this format, manually curated and optimized for computer vision applications.
136
 
137
  ```bibtex
138
  @misc{MET_OpenAccess_2024,
@@ -154,20 +207,12 @@ This dataset (TeXMET) is a curated subset of textiles and tapestries from The Me
154
  - **Data Source**: The Metropolitan Museum of Art Open Access Initiative
155
  - **Curation Tools**: FiftyOne, CLIP embeddings, manual validation
156
  - **API Access**: MET Museum Collection API
157
- - **Project**: TeXMET - Textile Analysis Thesis Project
158
  - **Created**: July 2025
159
 
160
- ## Performance & Quality Metrics
161
- - **Image Quality**: 100% JPEG, high resolution
162
- - **Duplicate Removal**: CLIP similarity + manual verification
163
- - **Manual Validation**: Visual inspection of all selected objects
164
- - **Research Ready**: Optimized for ML/CV applications
165
-
166
  **Note**: This is a research compilation and curation of existing open access data. All rights and credits belong to The Metropolitan Museum of Art. We thank the MET for making their collection freely available for research and education.
167
 
168
  ---
169
- **🎯 TeXMET Final: 1,697 Premium Objects, 18,644 High-Quality Images**
170
- Total Dataset Size: 26.5 GB.
171
- **Ready for Computer Vision and Machine Learning Applications!**
172
 
173
- *Last Updated: July 8, 2025*
 
18
  - fabric
19
  - pattern-recognition
20
  - image
21
+ - jigsaw-puzzle
22
+ - archaeology
23
+ - benchmark
24
  size_categories:
25
  - 10K<n<100K
26
  source_datasets:
 
30
  data_files: "clean_dataset/clean_textiles_dataset.json"
31
  ---
32
 
33
+ # TEXMET: Curated Textile Dataset from the Metropolitan Museum of Art
34
+
35
+ > **Paper:** Muhammad Hamza Zafar, Davit Gigilashvili, Jon Yngve Hardeberg. *TEXMET: A Deep Learning Benchmark for Archaeological Textile Reconstruction.* ACM Journal on Computing and Cultural Heritage, 2026 (Just Accepted). [doi.org/10.1145/3846195](https://doi.org/10.1145/3846195)
36
+ >
37
+ > **Code and full download:** [github.com/hamzafer/TEXMET](https://github.com/hamzafer/TEXMET)
38
 
39
  ## Overview
40
+ **TEXMET** is a high-quality, manually curated dataset of textile and tapestry objects from the Metropolitan Museum of Art's Open Access collection. It was built as a benchmark for jigsaw puzzle solving and archaeological textile reconstruction: models trained on TEXMET puzzles are evaluated on fragments of Viking Age textiles from the Oseberg ship burial. It is also usable for general computer vision work on historical textiles.
41
 
42
+ ## Key Facts
43
  - **Total Images**: 18,644 high-resolution images
44
+ - **Unique Objects**: 18,643 textile/tapestry objects (one image per object, except object 21466 with two; see Splits)
45
  - **Average Resolution**: 3.3 MP (1557 x 1631 pixels)
46
+ - **Average File Size**: 1.42 MB per image
47
+ - **Format**: 100% JPEG, 92% RGB, 8% grayscale
48
  - **Quality**: Hand-selected, duplicates removed, visually validated
49
 
50
+ ## Download the Full Dataset
51
+ The images are fetched directly from the Met's Open Access servers with the script in the [TEXMET GitHub repository](https://github.com/hamzafer/TEXMET):
52
+
53
+ ```bash
54
+ git lfs install # the metadata JSON is stored with Git LFS
55
+ git clone https://github.com/hamzafer/TEXMET.git
56
+ cd TEXMET
57
+ pip install -r requirements.txt
58
+ python download.py # writes to TEXMET_DATASET/
59
+ ```
60
+
61
+ - `TEXMET_DATASET/images/` receives the primary image of every object (about 26.5 GB).
62
+ - The script also fetches 17,120 additional views into `TEXMET_DATASET/additional_images/`. These are not part of the benchmark, apart from the one image noted under Splits, so plan for extra disk space.
63
+ - The script uses the same `clean_textiles_dataset.json` as this repository (identical SHA-256).
64
+
65
+ ## Splits
66
+ The [`splits/`](https://huggingface.co/datasets/hzafar/TEXMET/tree/main/splits) folder holds the exact train / validation / test partition used for every TEXMET experiment in the paper.
67
+
68
+ | Split | Images |
69
+ |---|---|
70
+ | train | 14,915 |
71
+ | val | 1,864 |
72
+ | test | 1,865 |
73
+ | **total** | **18,644** |
74
+
75
+ - Image-level random shuffle, `random.seed(42)`, 80/10/10. The three lists are disjoint.
76
+ - `train_files.txt`, `val_files.txt`, `test_files.txt`: one image path per line. The leading number of each filename is the Met `objectID`.
77
+ - `texmet_splits.csv`: one row per image with `objectID`, `split`, `filename` and `imageURL`.
78
+ - See [`splits/README.md`](https://huggingface.co/datasets/hzafar/TEXMET/blob/main/splits/README.md) for details.
79
+
80
+ **Known quirk (one image).** The benchmark image set contains two images of object `21466` (its primary image and its fourth additional view, `21466_..._additional_4.jpg`, Met file `DP307213.jpg`), both in `train`, and no image of object `13562`. That is why 18,644 images cover 18,643 objects. When you use `download.py`, move `21466_..._additional_4.jpg` from `additional_images/` into `images/` and ignore `13562_..._primary.jpg`; the split lists then match the downloaded files exactly.
81
+
82
  ## Dataset Statistics
83
+ - **Curation Method**: Manual validation in FiftyOne using CLIP ViT-B/32 embeddings, UMAP projection and LanceDB similarity search
84
+ - **Original Collection**: 27,360 primary images → **curated to 18,644 images (68.1%)**; 8,716 removed (4,908 poor quality, 3,808 noise, including 2,567 duplicates)
85
  - **Quality Control**: Similarity analysis, duplicate removal, visual inspection
86
  - **Coverage**: Global textile traditions spanning 4000+ years
 
87
 
88
  ## Directory Structure
89
+ This Hugging Face repository holds the metadata, the splits and a small image sample. The full image set (26.5 GB) is not stored here.
90
  ```
91
  TEXMET/
92
+ ├── clean_dataset/
93
+ │ ├── clean_textiles_dataset.json # Met metadata, one record per object (18,644 records)
94
+ │ ├── texmet_metadata.json # Summary statistics
95
+ │ ├── images/ # Sample only: 300 primary images
96
+ │ └── additional_images/ # Sample only: 10 additional views
97
+ ├── splits/ # Train / val / test lists used in the paper
 
98
  └── README.md # This file
99
  ```
100
 
101
+ ## Department Distribution
102
+ TEXMET covers 14 Met curatorial departments.
103
+
104
+ | Department | Images | % |
105
+ |---|---:|---:|
106
+ | European Sculpture and Decorative Arts | 8,516 | 45.7 |
107
+ | Asian Art | 5,229 | 28.0 |
108
+ | Islamic Art | 3,029 | 16.2 |
109
+ | Other departments (11) | 1,870 | 10.0 |
110
+ | **Total** | **18,644** | **100.0** |
111
+
112
  ## Data Quality & Curation Process
113
+ 1. **Initial Collection**: 33,588 objects queried from the MET API, 27,373 with images; 55,007 images downloaded (99.95% success rate)
114
  2. **Filtering**: Focus on high-quality textile/tapestry objects
115
  3. **Manual Curation**: Visual inspection and validation using FiftyOne
116
  4. **Duplicate Removal**: CLIP embedding analysis + manual verification
117
  5. **Quality Control**: Removed low-quality, irrelevant, or damaged images
118
+ 6. **Final Validation**: **18,644 images** of **18,643 objects**
119
 
120
  ## Image Specifications
121
  - **Total Images**: 18,644 images
122
  - **Average Dimensions**: 1557 x 1631 pixels
123
+ - **Average File Size**: 1.42 MB
 
124
  - **Average Resolution**: 3.3 megapixels
125
  - **Format**: 100% JPEG
126
+ - **Color Mode**: 92% RGB, 8% grayscale
 
127
 
128
  ## Research Applications
129
+ - Jigsaw puzzle solving and fragment reassembly (the benchmark task in the paper)
130
+ - Archaeological textile reconstruction
131
+ - Textile pattern recognition and classification
132
+ - Cultural heritage digitization and analysis
133
+ - Style transfer and generative AI
134
+ - Historical textile dating and attribution
135
+ - Cross-cultural design studies
136
+ - Computer vision algorithm development
137
+ - Digital art and design inspiration
138
+ - Large-scale image analysis and clustering
139
 
140
  ## Usage Examples
141
  ```python
 
147
  data = json.load(f)
148
 
149
  df = pd.DataFrame(data)
150
+ print(f"TEXMET Final: {len(df)} curated images")
151
 
152
+ # Load summary statistics
153
  with open('clean_dataset/texmet_metadata.json', 'r') as f:
154
  metadata = json.load(f)
155
+ stats = metadata['dataset_statistics']
156
+ print(f"Objects with a primary image: {stats['objects_with_primary_images']}")
157
+ print(stats['department_distribution'])
158
  ```
159
 
160
  ## Version History
161
+ - **September 2026**: added `splits/`, restored the complete `texmet_metadata.json`, card aligned with the JOCCH paper
162
+ - **TEXMET Final v1.0** (July 2025): **18,644 curated images of 18,643 objects**
163
  - **Raw Collection** (July 2025): 27,373 objects collected from MET API
164
 
165
  ## Technical Specifications
 
167
  - **Image Format**: 100% JPEG
168
  - **Resolution**: High-resolution (average 3.3 MP)
169
  - **File Organization**: Git LFS for large files
 
170
 
171
  ## Citation and Credits
172
 
173
+ ### TEXMET Citation
174
+ If you use TEXMET, please cite the paper:
175
  ```bibtex
176
+ @article{zafar2026texmet,
177
+ author = {Zafar, Muhammad Hamza and Gigilashvili, Davit and Hardeberg, Jon Yngve},
178
+ title = {{TEXMET}: A Deep Learning Benchmark for Archaeological Textile Reconstruction},
179
+ journal = {ACM Journal on Computing and Cultural Heritage},
180
+ year = {2026},
181
+ publisher = {Association for Computing Machinery},
182
+ doi = {10.1145/3846195},
183
+ note = {Just Accepted}
184
  }
185
  ```
186
 
187
  ### Original Data Source
188
+ This dataset (TEXMET) is a curated subset of textiles and tapestries from The Metropolitan Museum of Art's Open Access collection, compiled for research purposes. To the best of our knowledge, this is the first comprehensive compilation of MET's textile and tapestry collections in this format, manually curated and optimized for computer vision applications.
189
 
190
  ```bibtex
191
  @misc{MET_OpenAccess_2024,
 
207
  - **Data Source**: The Metropolitan Museum of Art Open Access Initiative
208
  - **Curation Tools**: FiftyOne, CLIP embeddings, manual validation
209
  - **API Access**: MET Museum Collection API
210
+ - **Project**: TEXMET benchmark (ACM JOCCH 2026)
211
  - **Created**: July 2025
212
 
 
 
 
 
 
 
213
  **Note**: This is a research compilation and curation of existing open access data. All rights and credits belong to The Metropolitan Museum of Art. We thank the MET for making their collection freely available for research and education.
214
 
215
  ---
216
+ **TEXMET Final:** 18,644 images of 18,643 objects, 26.5 GB.
 
 
217
 
218
+ *Last Updated: September 15, 2026*
clean_dataset/texmet_metadata.json CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:9e7d8b2ee71550f6e01eab552122c9268e6eddd943f4de96cdbf02a118e3fce8
3
- size 765
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c12224c1758d7c4ba3e75fe0661da524271d10bc8dbb69ed5f9485d966ff4b71
3
+ size 3599
splits/README.md CHANGED
@@ -23,6 +23,7 @@ Image-level random shuffle with `random.seed(42)`, 80/10/10. The three lists are
23
 
24
  ## Notes
25
 
26
- - Each image is the primary image of a distinct museum object, so the split is also object-level, with one exception: object `21466` contributes two images (its primary image and an additional view, `..._additional_4.jpg`), and both are in `train`, so no object crosses splits. Its `imageURL` is left empty in the CSV because the additional-view index is ambiguous. This gives 18,643 unique objects for 18,644 images.
 
27
  - Distinct Met objects can come from related historical textiles (for example several catalogued fragments of one source fabric); no metadata-level grouping was applied for such cases.
28
  - Images are CC0 (Metropolitan Museum of Art Open Access). Use the `download.py` script in https://github.com/hamzafer/TEXMET to fetch them.
 
23
 
24
  ## Notes
25
 
26
+ - Each image is the primary image of a distinct museum object, so the split is also object-level, with one exception: object `21466` contributes two images (its primary image and an additional view, `..._additional_4.jpg`), and both are in `train`, so no object crosses splits. Its `imageURL` is the Met file `DP307213.jpg` (checked byte-for-byte against the benchmark copy). Object `13562` is in `clean_textiles_dataset.json` but has no image in the benchmark. This gives 18,643 unique objects for 18,644 images.
27
+ - With `download.py`, move `21466_..._additional_4.jpg` from `additional_images/` into `images/` and ignore `13562_..._primary.jpg`; the three lists then match the downloaded filenames exactly.
28
  - Distinct Met objects can come from related historical textiles (for example several catalogued fragments of one source fabric); no metadata-level grouping was applied for such cases.
29
  - Images are CC0 (Metropolitan Museum of Art Open Access). Use the `download.py` script in https://github.com/hamzafer/TEXMET to fetch them.
splits/texmet_splits.csv CHANGED
@@ -12994,7 +12994,7 @@ objectID,split,filename,imageURL
12994
  66855,train,66855_Piece_primary.jpg,https://images.metmuseum.org/CRDImages/as/original/DP11347.jpg
12995
  224187,train,224187_Sample_primary.jpg,https://images.metmuseum.org/CRDImages/es/original/117292.jpg
12996
  463277,train,463277_Textile_Fragment_primary.jpg,https://images.metmuseum.org/CRDImages/md/original/133182.jpg
12997
- 21466,train,21466_Hanging_depicting_a_European_conflict_in_South_Ind_additional_4.jpg,
12998
  221874,train,221874_Leda_and_the_Swan_primary.jpg,https://images.metmuseum.org/CRDImages/es/original/DP-34105-001.jpg
12999
  227588,train,227588_Music_primary.jpg,https://images.metmuseum.org/CRDImages/es/original/DT815.jpg
13000
  216875,train,216875_Piece_primary.jpg,https://images.metmuseum.org/CRDImages/es/original/6783.jpg
 
12994
  66855,train,66855_Piece_primary.jpg,https://images.metmuseum.org/CRDImages/as/original/DP11347.jpg
12995
  224187,train,224187_Sample_primary.jpg,https://images.metmuseum.org/CRDImages/es/original/117292.jpg
12996
  463277,train,463277_Textile_Fragment_primary.jpg,https://images.metmuseum.org/CRDImages/md/original/133182.jpg
12997
+ 21466,train,21466_Hanging_depicting_a_European_conflict_in_South_Ind_additional_4.jpg,https://images.metmuseum.org/CRDImages/es/original/DP307213.jpg
12998
  221874,train,221874_Leda_and_the_Swan_primary.jpg,https://images.metmuseum.org/CRDImages/es/original/DP-34105-001.jpg
12999
  227588,train,227588_Music_primary.jpg,https://images.metmuseum.org/CRDImages/es/original/DT815.jpg
13000
  216875,train,216875_Piece_primary.jpg,https://images.metmuseum.org/CRDImages/es/original/6783.jpg