Back to Trending
Dataset
biglam

biglam/british-library-book-images

British Library Book Images 1,080,814 images cut out of 49,455 digitised books (65,227 volumes, ~25 million pages) published between c. 1510 and c. 1900, digitised by the British Library in partnership with Microsoft and released by British Library Labs on Flickr Commons as the "1 Million Images from Scanned Books" release. The books cover geography, philosophy, history, poetry and literature, in several languages. The four image types British Library Labs… See the full description on the dataset page: https://huggingface.co/datasets/biglam/british-library-book-images.

65likes
4.6kdownloads
1views

Featured achievements

The project's latest awards

1
TINIX TRENDING·Topic: digital-humanities-research

#1 Repository of the week

1
TINIX TRENDING·Topic: glam

#1 Repository of the week

1
TINIX TRENDING·Topic: book-illustration

#1 Repository of the week

British Library Book Images

1,080,814 images cut out of 49,455 digitised books (65,227 volumes, ~25 million pages) published between c. 1510 and c. 1900, digitised by the British Library in partnership with Microsoft and released by British Library Labs on Flickr Commons as the "1 Million Images from Scanned Books" release. The books cover geography, philosophy, history, poetry and literature, in several languages.

The four image types

British Library Labs deposited these as four separate records, split by an algorithmic estimate of what each cut-out region is. Each is a config here:

configimagesearliest date
embellishments416,9351510
plates385,2311528
medium217,1001567
covers61,5481510

The type labels are algorithmic, not curatorial. The deposit states the images were "algorithmically gathered" but does not state the method, so plates / medium / embellishments are best read as size-and-position heuristics over the page, not as an art-historical taxonomy. Expect the boundary between medium and plates in particular to be fuzzy. Filter on your own classifier if the distinction matters to your task.

from datasets import load_dataset

# pick a config — the whole thing is ~621 GB, so stream unless you mean it
ds = load_dataset("biglam/british-library-book-images", "covers", split="train", streaming=True)
print(next(iter(ds)))

Images per decade

decadeembellishmentsplatesmediumcoverstotal
1510s60017
1520s32016
1540s1100011
1550s42017
1560s60219
1570s00011
1580s10113
1590s185404193
1600s47461168
1610s42201256
1620s4901959
1630s783132100898
1640s2826145334
1650s1702039211
1660s220101370313
1670s257122118389
1680s228271995369
1690s33861144264
1700s3239383157
1710s776507495995
1720s1,66357106631,889
1730s1,64434881331,899
1740s9686663941,191
1750s7682028135951
1760s1,044133551871,419
1770s1,13875512811,545
1780s1,278127653211,791
1790s64889694261,232
1800s1,9244,6821,2821,3909,278
1810s1,8435,1381,6712,18310,835
1820s3,5855,1831,7012,34312,812
1830s6,12911,8363,9822,39624,343
1840s17,81919,66410,1943,67251,349
1850s28,86831,49315,4595,69281,512
1860s40,03531,23417,3477,28095,896
1870s70,75255,66531,8578,607166,881
1880s102,32093,51549,20910,853255,897
1890s128,075123,45482,63714,136348,302

The 1890s alone hold a third of the corpus, and everything before 1800 together holds about 1.6% of it. Anything trained on the whole set is overwhelmingly a model of late-Victorian book illustration.

Note the plates column before and after 1800: 86 images in the entire 1690s against 4,682 in the 1800s. Full-page plates are a 19th-century printing phenomenon here, not an even feature of the date range.

Data fields

  • image — the JPEG, at source resolution
  • date — publication year as a string, not an integer. 5,291 rows (0.5%) carry "Unknown", and 2,151 rows carry a date after 1900 — up to 1946 — which the deposit's own c. 1510–c. 1900 framing marks as catalogue errors rather than genuinely 20th-century books. Cast and filter before doing anything arithmetic with it.
  • fname — the original filename. The leading digits are the British Library system number (see below), and the rest encodes volume/page position plus the book title. The exact layout differs between image types, so parse defensively.
  • image_type — one of the four above, redundant with the config but kept so the configs can be concatenated.

Joining images to their page text

The leading digits of fname are the British Library system number, which is the record_id in biglam/blbooks-parquet — the OCR text from the same digitisation programme. In a 20,000-row sample, 8,497 of 8,846 distinct system numbers (96%) matched a record there, so most images can be traced back to the book they were cut from and its text.

# system number -> the book this image came from
fname = "002543810_3_Dzieje Narodu Polskiego...jpg"
record_id = fname.split("_")[0]   # "002543810"

The 4% that don't match are books present in the image deposit but absent from the OCR release. The join is at book level, not page level — fname encodes a page position, but it is not guaranteed to align with the pg column in the OCR corpus, so treat page-level alignment as something to verify rather than assume.

What was selected, and by whom

The date range is not a sampling frame. The corpus is what the British Library and Microsoft chose to digitise from what the Library had acquired from what happened to survive — three selection layers stacked before any image reached this dataset — and digitisation programmes of this era were driven partly by preservation priorities and out-of-copyright status rather than by any attempt at representativeness. The 19th century dominates. Treat the collection as a record of what a large British institution digitised in the early 2010s, not as a sample of printed illustration.

Colonial-era publishing is heavily represented, and images carry the depictions, captions and categories of their period. Nothing here has been reviewed for offensive content.

The OCR text from the same digitisation programme is biglam/blbooks-parquet (14,011,953 pages).

Licensing

The images were published on Flickr Commons under no known copyright restrictions — the British Library placed them in the public domain, and the underlying works are out of copyright. Tagged cc0-1.0 here for machine-readability; the deposit's own statement is the Public Domain Mark.

No licence attaches to the images themselves that would restrict reuse. Attribution to the British Library is expected practice rather than a legal condition.

Credit

Mirrored and repackaged by Daniel van Strien (Machine Learning Librarian, Hugging Face); all source data created by the British Library, digitised in partnership with Microsoft and released by British Library Labs.

The four image types were deposited as four separate records on the British Library Research Repository (bl.iro.bl.uk), which is intermittently unavailable — this dataset is the more reliable route to the images.

Against the counts those deposits state, this dataset is a handful of images short: 6 fewer plates, 1 fewer medium, 13 fewer covers. The shortfall predates this repackaging and no cause has been established for it.

Point of contact for the original deposit: labs@bl.uk

Maintenance: Limited Maintenance — this is a mirror of a static 2014 deposit and is not expected to change.

Citation

@misc{bl_labs_book_images,
  title  = {Digitised Books. c. 1510 - c. 1900. JPG},
  author = {{British Library Labs}},
  year   = {2014},
  publisher = {British Library},
  howpublished = {\url{https://bl.iro.bl.uk/}}
}

SigLIP2 embeddings (siglip2_embeddings config)

Every image in this dataset, embedded with google/siglip2-so400m-patch16-256 (1152-d float32, images resized to 256x256 before encoding — the model's own preprocessing shape). One split per image config; rows are sorted to match the source parquet exactly, so row N of split plates is row N of config plates. Each row also carries source_filename and file_row_number, the direct coordinates of its image in this repository.

from datasets import load_dataset
emb = load_dataset("biglam/british-library-book-images", "siglip2_embeddings", split="plates")

Because SigLIP2 is a dual encoder, text queries embed into the same space — encode a phrase with the model's text tower and rank rows by cosine similarity for free-text search over the collection.

Notes: embeddings were produced with vLLM serving SigLIP2 as a pooling model on Hugging Face Jobs; all 1,080,814 images are covered, one embedding each. 768 image pairs (1,536 filenames) are near-duplicates differing only in title spacing (same system number/volume/page/block) — these are distinct rows here, as in the source configs.

Crop masks (crop_masks config)

Model-predicted instance masks and bounding boxes for 1,019,266 images — every image in the embellishments, plates and medium configs (covers is excluded: the model cannot abstain, and covers are overwhelmingly not illustrations). The ABBYY-derived crops in this dataset are loose — a medium crop typically carries lines of body text above the art and a printed caption below — and these masks are the tightening layer: 3,022,916 instances, one row per image, joinable on fname.

Each row carries objects (index-aligned lists: bbox as [x, y, w, h] in source-frame pixels, score, area, rectangularity) and masks_rle (a JSON string of COCO RLE dicts in the same order; the RLE frame is the full-resolution source image, src_width x src_height).

Filter by score before display use. Predictions were kept down to a deliberately low threshold of 0.10 so that consumers can choose their own operating point, and 59.7% of instances score below 0.3 — at 0.10, dense pages can carry dozens of low-confidence instances. score >= 0.3 is a sensible display default; the confident singletons that dominate the corpus (76% of images have exactly one instance) are unaffected.

import json
from datasets import load_dataset
from pycocotools import mask as maskutil

masks = load_dataset("biglam/british-library-book-images", "crop_masks", split="plates")
row = masks[0]
rles = json.loads(row["masks_rle"])
keep = [i for i, s in enumerate(row["objects"]["score"]) if s >= 0.3]
m = maskutil.decode(rles[keep[0]])  # HxW numpy array, source frame

To join masks against the image configs' metadata, DuckDB reads both sides straight off the Hub with column pruning — no image bytes are fetched unless you select the image column:

import duckdb

duckdb.sql("""
SELECT i.fname, i.date, m.objects, m.masks_rle
FROM 'hf://datasets/biglam/british-library-book-images/plates/*.parquet' i
JOIN 'hf://datasets/biglam/british-library-book-images/crop-masks/plates-*.parquet' m
USING (fname)
""")

Provenance: predicted by davanstrien/bl-crop-tighten-rfdetrseg-clip10, an RF-DETR-Seg student distilled from Falcon-Perception weak labels on 8,400 of these crops. On a 40-image random human check, 97.4% of the student's predictions were judged acceptable — matching its teacher, at roughly 12x the throughput. Every row is stamped with model_id and model_sha.

Similar Projects

Discover other similar projects and AI models.

Dataset
ILSVRC/imagenet-1k

Dataset Card for ImageNet Dataset Summary ILSVRC 2012, commonly known as 'ImageNet' is an image dataset organized according to the WordNet hierarchy. Each meaningful concept in WordNet, possibly described by multiple words or word phrases, is called a "synonym set" or "synset". There are more than 100,000 synsets in WordNet, majority of them are nouns (80,000+). ImageNet aims to provide on average 1000 images to illustrate each synset. Images of each concept are… See the full description on the dataset page: https://huggingface.co/datasets/ILSVRC/imagenet-1k.

♥0
102.0k
Sep 17, 2025
Dataset
HuggingFaceFW/fineweb

🍷 FineWeb 15 trillion tokens of the finest data the 🌐 web has to offer What is it? The 🍷 FineWeb dataset consists of more than 18.5T tokens (originally 15T tokens) of cleaned and deduplicated english web data from CommonCrawl. The data processing pipeline is optimized for LLM performance and ran on the 🏭 datatrove library, our large scale data processing library. 🍷 FineWeb was originally meant to be a fully open replication of 🦅 RefinedWeb, with a… See the full description on the dataset page: https://huggingface.co/datasets/HuggingFaceFW/fineweb.

♥0
419.5k
Jul 11, 2025
Dataset
Open-Orca/OpenOrca

🐋 The OpenOrca Dataset! 🐋 We are thrilled to announce the release of the OpenOrca dataset! This rich collection of augmented FLAN data aligns, as best as possible, with the distributions outlined in the Orca paper. It has been instrumental in generating high-performing model checkpoints and serves as a valuable resource for all NLP researchers and developers! Official Models Mistral-7B-OpenOrca Our latest model, the first 7B to score better overall than all… See the full description on the dataset page: https://huggingface.co/datasets/Open-Orca/OpenOrca.

♥0
12.1k
Feb 19, 2025
Dataset
HuggingFaceFW/fineweb-edu

📚 FineWeb-Edu 1.3 trillion tokens of the finest educational data the 🌐 web has to offer Paper: https://arxiv.org/abs/2406.17557 What is it? 📚 FineWeb-Edu dataset consists of 1.3T tokens and 5.4T tokens (FineWeb-Edu-score-2) of educational web pages filtered from 🍷 FineWeb dataset. This is the 1.3 trillion version. To enhance FineWeb's quality, we developed an educational quality classifier using annotations generated by LLama3-70B-Instruct. We… See the full description on the dataset page: https://huggingface.co/datasets/HuggingFaceFW/fineweb-edu.

♥0
524.8k
Jul 11, 2025
Dataset
Salesforce/wikitext

Dataset Card for "wikitext" Dataset Summary The WikiText language modeling dataset is a collection of over 100 million tokens extracted from the set of verified Good and Featured articles on Wikipedia. The dataset is available under the Creative Commons Attribution-ShareAlike License. Compared to the preprocessed version of Penn Treebank (PTB), WikiText-2 is over 2 times larger and WikiText-103 is over 110 times larger. The WikiText dataset also features a far… See the full description on the dataset page: https://huggingface.co/datasets/Salesforce/wikitext.

♥0
3.1M
Jan 4, 2024
Dataset
roneneldan/TinyStories

Dataset containing synthetically generated (by GPT-3.5 and GPT-4) short stories that only use a small vocabulary. Described in the following paper: https://arxiv.org/abs/2305.07759. The models referred to in the paper were trained on TinyStories-train.txt (the file tinystories-valid.txt can be used for validation loss). These models can be found on Huggingface, at roneneldan/TinyStories-1M/3M/8M/28M/33M/1Layer-21M. Additional resources: tinystories_all_data.tar.gz - contains a superset of… See the full description on the dataset page: https://huggingface.co/datasets/roneneldan/TinyStories.

♥0
296.8k
Aug 12, 2024
Dataset
bigcode/the-stack

Dataset Card for The Stack Changelog Release Description v1.0 Initial release of the Stack. Included 30 programming languages and 18 permissive licenses. Note: Three included licenses (MPL/EPL/LGPL) are considered weak copyleft licenses. The resulting near-deduplicated dataset is 3TB in size. v1.1 The three copyleft licenses ((MPL/EPL/LGPL) were excluded and the list of permissive licenses extended to 193 licenses in total. The list of programming… See the full description on the dataset page: https://huggingface.co/datasets/bigcode/the-stack.

♥0
116.9k
Aug 3, 2026
Dataset
lmsys/lmsys-chat-1m

LMSYS-Chat-1M: A Large-Scale Real-World LLM Conversation Dataset This dataset contains one million real-world conversations with 25 state-of-the-art LLMs. It is collected from 210K unique IP addresses in the wild on the Vicuna demo and Chatbot Arena website from April to August 2023. Each sample includes a conversation ID, model name, conversation text in OpenAI API JSON format, detected language tag, and OpenAI moderation API tag. User consent is obtained through the "Terms of… See the full description on the dataset page: https://huggingface.co/datasets/lmsys/lmsys-chat-1m.

♥0
8.1k
Jul 27, 2024
Dataset
HuggingFaceFW/finepdfs

Liberating 3T of the finest tokens from PDFs What is this? As we run out of web pages to process, the natural question has always been: what to do next? Only a few knew about a data source that everyone avoided for ages, due to its incredible extraction cost and complexity: PDFs. 📄 FinePDFs is exactly that. It is the largest publicly available corpus sourced exclusively from PDFs, containing about 3 trillion tokens across 475 million documents in 1733 languages. Compared to… See the full description on the dataset page: https://huggingface.co/datasets/HuggingFaceFW/finepdfs.

♥0
80.8k
Apr 3, 2026