CoolFace
Datasetpublic

marwantosolve/archforge-mamluk-cairo

ArchForge — Mamluk / Islamic Cairo Architecture Dataset A small, curated, licence-documented image dataset of Mamluk and Islamic Egyptian architecture, built for LoRA style adaptation on FLUX.1-dev. 39 images at 512x512px, 33 train / 6 validation. Built as part of ArchForge — a time-boxed proof of concept, not a production dataset. The evaluation, the LoRA adapter and the comparison grid are linked from there. Why this dataset exists The target is a style, not a… See the full description on the dataset page: https://huggingface.co/datasets/marwantosolve/archforge-mamluk-cairo.

sourceHugging Faceotherupdated 2d agoView on Hugging Face
0likes65downloads
Dataset Card

ArchForge — Mamluk / Islamic Cairo Architecture Dataset

A small, curated, licence-documented image dataset of Mamluk and Islamic Egyptian architecture, built for LoRA style adaptation on FLUX.1-dev. 39 images at 512x512px, 33 train / 6 validation.

Built as part of ArchForge — a time-boxed proof of concept, not a production dataset. The evaluation, the LoRA adapter and the comparison grid are linked from there.

Why this dataset exists

The target is a style, not a subject: carved limestone facades, pointed arches, muqarnas vaulting, mashrabiya screens, ablaq striped stonework, domes and minarets of historic Cairo. The curation work was therefore mostly rejection — Wikimedia Commons categories mix architecture with book scans, museum objects, architectural plans, paintings, lithographs, and buildings from other countries entirely.

Provenance and licensing

Every image comes from Wikimedia Commons and retains its original licence. No image was scraped from a source without a checkable licence, and no licence was inferred. Attribution for each file is recorded in metadata.csv and listed below.

LicenceImages
CC BY-SA 4.014
CC BY-SA 3.014
CC BY 3.04
CC BY-SA 2.03
CC BY 2.02
Public domain1
No restrictions1

Reuse obligation: most files are CC BY or CC BY-SA, which require attribution and (for SA) share-alike. If you reuse this dataset, carry the per-image attribution in the table below. Public domain and "no restrictions" files carry no such condition.

Curation method

  1. 1.Collection (scripts/collect_dataset.py) — MediaWiki API enumeration over 36 Mamluk/Islamic Cairo categories, filtering on a 800px minimum edge and JPEG/PNG only.
  2. 2.Review — every candidate was inspected visually on a contact sheet at two zoom levels. 123 candidates were reviewed; 39 were kept.
  3. 3.Rejection — 20 candidates were rejected for a recorded reason. The dominant failure modes were:
  4. 4.Wrong country — Portuguese colonial facades, Agra and Delhi monuments, Aleppo, the Armenian Quarter, all reaching these categories through shared vocabulary ("mashrabiya", "muqarnas").
  5. 5.Not a photograph — 19th-century lithographs (David Roberts), orientalist paintings (J. F. Lewis), book scans, architectural plans.
  6. 6.Modern architecture — 20th/21st-century apartment towers, modern mosques with no Mamluk vocabulary, construction cranes, night shots dominated by LED lighting.
  7. 7.Museum objects — mashrabiya screens photographed as artefacts, not in situ. Each rejection and its reason is recorded in data/exclusions.csv.
  8. 8.Quality control (scripts/build_dataset.py) — corrupted-file drop, perceptual-hash deduplication (64-bit pHash, Hamming distance <= 10), 512px centre-crop and resize, deterministic 85/15 split seeded at 0.

Deduplication found 0 duplicates at that threshold; this was verified rather than assumed, by confirming the hash function separates a JPEG-recompressed copy of an image (distance 0) from a genuinely different image (distance 36).

Structure

data/train/         33 images, 512x512 PNG
data/validation/    6 images, 512x512 PNG
metadata.csv        image_path, caption, source, architectural_style, split,
                    license, license_url, artist, title, category, phash
captions.jsonl      caption, style token, VLM base description, provenance
data/selected.csv   the curated allowlist (pageid + note)
data/exclusions.csv rejected candidates with reasons

Captions

Each caption follows [STYLE TOKEN] + description + structural elements + materials + viewpoint, for example:

mamluk_architecture, historic Islamic courtyard in Cairo, carved limestone facade, pointed arches, geometric stone ornamentation, warm natural light, architectural photography

The architectural vocabulary is grounded in the image's recorded Wikimedia category rather than generated freely, so the template cannot invent a minaret on a doorway.

Limitations

  • —Small (39 images) and heavily weighted toward Cairo. Not a general Islamic architecture dataset.
  • —Wikimedia Commons bias — photographs are skewed toward well-documented, tourist-accessible monuments, and toward the aesthetics of the contributing photographers.
  • —Not deduplicated against the wider web — only against itself.
  • —Some images contain minor modern intrusions (street furniture, signage, vehicles) that were judged not to dominate the frame.

Per-image attribution

#FileSourceLicenceAuthor
1Ayyubid Wall Al-Azhar Park Cairo 01-2006.jpgCommonsCC BY 3.0Błażej Pindor
2Islamic Cairo63.jpgCommonsCC BY-SA 4.0Mohamed Ouda
3A small mosque in the center of Cairo, Egypt, North Africa.jpgCommonsCC BY-SA 3.0Mstyslav Chernov
4Qaytbay sabil exterior decoration2.jpgCommonsCC BY-SA 4.0Robert Prazeres
5The Mausoleum of Sultan Qalawun.jpgCommonsCC BY-SA 3.0Bassem Abdelaziz
6Islamic Cairo60.jpgCommonsCC BY-SA 4.0Mohamed Ouda
7Sultan Qalawun Mosque at Mu'izz street.jpgCommonsCC BY-SA 3.0Mariam Mohamed Kamal
8بسطام.jpgCommonsCC BY-SA 4.0Peymanpourkoushki
9Cairo (4015028718).jpgCommons.jpg)CC BY-SA 2.0M M from Switzerland
10Al-Azhar 2006.jpgCommonsPublic domainTentoila
11Cairo. Mameluke House.jpgCommonsNo restrictionsCornell University Library
12Hard work in el darb el asfar (old cairo).jpgCommons.jpg)CC BY-SA 4.0Eslamashrafrefaat
13Mosque of Gawhar al-Lala DSCF3441.jpgCommonsCC BY-SA 4.0R Prazeres
14Cairo - Islamic district - Cemetery.JPGCommonsCC BY-SA 4.0Daniel Mayer
15Bayn al-Qasrayn2.JPGCommonsCC BY-SA 3.0Casual Builder
16Flickr - HuTect ShOts - Dome of Madrasa and Masjid of Sultan Qaytbay مدرسة ومسجد السلطان قايتباي - Cairo - Egypt - 28 05 2010.jpgCommonsCC BY-SA 2.0Ahmed Al.Badawy from Cairo, Egypt
17Museo gayer anderson, cortile 03.JPGCommonsCC BY 3.0Sailko
18Cairo2761.JPGCommonsCC BY-SA 3.0Samir I. Sharbaty
19Al-Nasir Muhammad Mosque BW 1.jpgCommonsCC BY 3.0Berthold Werner
20احدى غرف سكن المماليك بالحطابة.JPGCommonsCC BY-SA 3.0Hanyfawwaz
21Qaytbay sabil-kuttab.jpgCommonsCC BY-SA 4.0Robert Prazeres
22An alley in Muizz street..JPGCommonsCC BY-SA 3.0SalmaMSan
23Sultan Hassan Mosque, Cairo.jpgCommonsCC BY-SA 4.0Bekriah Mawasi
24City of the Dead (south).jpgCommons.jpg)CC BY-SA 4.0Casual Builder
25Complex of Al Sultan Al Zahir Barquq 011.jpgCommonsCC BY-SA 4.0Keladawy
26Flickr - HuTect ShOts - Masjid Qanibay Al Ramah مسجد قاني باي الرماح - Cairo - Egypt - 17 04 2010.jpgCommonsCC BY-SA 2.0Ahmed Al.Badawy from Cairo, Egypt
27Tomb of az-Zahir Qansuh.JPGCommonsCC BY-SA 3.0Tekisch
28Cairo, the Mosque of Sultan Hassan and the Ar-Rif (6201079985).jpgCommons.jpg)CC BY 2.0Arian Zwegers from Brussels, Belgium
29A small mosque in the center of Cairo, Egypt, North Africa-3.jpgCommonsCC BY-SA 3.0Mstyslav Chernov
30الزخارف العباسية.jpgCommonsCC BY-SA 4.0Mohammed Harith Khalil
31Cairo, madrasa del sultano qalaun, 01.JPGCommonsCC BY 3.0Sailko
32Cairouni.jpgCommonsCC BY-SA 3.0user:mmustafa
33Door in Al-Gamaliya street, photo by Hatem Moushir 01.jpgCommonsCC BY-SA 4.0Hatem Moushir
34Une vue en hauteur du caire.JPGCommonsCC BY-SA 3.0Papillus
35Flickr - Gaspa - Cairo, una casa storica.jpgCommonsCC BY 2.0Francesco Gasparetti from Senigallia, Italy
36Aqmar Mosque.jpgCommonsCC BY-SA 3.0Md iet ( talk )
37Cairo,Qarafa1.jpgCommonsCC BY-SA 3.0Bertramz
38QalaunMosque.JPGCommonsCC BY-SA 3.0المصري الأصيل
39Door in Al-Gamaliya street, photo by Hatem Moushir 02.jpgCommonsCC BY-SA 4.0Hatem Moushir