Skip to main content

public domain art nouveau image data: lazy-downloading datasets of Morris, Mucha, and Driscoll

Project description

Art Nouveau Design Data

Public domain lazy-downloading data samples.

Example Use

import nouveau

# random image from all datasets
img = next(nouveau)
>> <PIL Image>

# metadata for the last image returned by next()
nouveau.details
>> {'year': 1897, 'name': 'Zodiac', 'filename': '1897-Zodiac.jpg'}

Indexed access — randomly assigned on first read, cached thereafter

nouveau[0]
>> <PIL Image>
nouveau[0]  # same image
>> <PIL Image>

Sample a finite batch

import itertools
batch = list(itertools.islice(nouveau, 8))

Infinite stream

for img in nouveau:
    process(img)

Collection Access & Sampling

morris   = nouveau.collections.Morris()
mucha    = nouveau.collections.Mucha()
driscoll = nouveau.collections.Driscoll()

# pandas index of metadata
morris.index.head()
>> shows pandas dataframe head with year, name, filename columns

# random image from a specific collection
driscoll.sample()
>> <PIL Image>

# iterate as PIL Images (aligned with index by position)
for i, img in enumerate(morris):
    print(morris.index.iloc[i]['name'], img.size)

# access a single item by position (returns dict with numpy image)
morris[0]
>> {'year': 1862,
>>  'name': 'Fruit-Blue',
>>  'filename': '1862-Fruit-Blue.jpg',
>>  'image': array([[[254, 253, 249], ...

# display by index or name
morris.show(1)
>> <pyplot image>

morris.show('Fruit-Blue')
>> <pyplot image>

# get a PIL Image by index or name
morris.toPIL(0)
>> <PIL Image>

# PyTorch dataset (returns [tensor, name, year] per item)
tensors = morris.to_torch()
tensors[0][0].shape
>> torch.Size([3, 1987, 1586])

license: cc-by-sa-4.0 task_categories:

  • image-classification pretty_name: Art Nouveau Design Data size_categories:
  • n<1K tags:
  • morris
  • mucha
  • driscoll
  • tiffany

Licenses

Collection License
Morris Unlicense
Mucha Unlicense
Driscoll CC BY-SA 4.0

The package code is Unlicense. Image data licenses vary by collection as noted above. The overall dataset is distributed under CC BY-SA 4.0 as the most restrictive license present.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nouveau-1.0.2.tar.gz (8.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nouveau-1.0.2-py3-none-any.whl (8.2 kB view details)

Uploaded Python 3

File details

Details for the file nouveau-1.0.2.tar.gz.

File metadata

  • Download URL: nouveau-1.0.2.tar.gz
  • Upload date:
  • Size: 8.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for nouveau-1.0.2.tar.gz
Algorithm Hash digest
SHA256 c2ff3f9ae0e0f5cc45326b118489e21a29146091a51fa217749000d28a5748cb
MD5 dffc44e1324e7826433768a38cdae9fc
BLAKE2b-256 361862f96bf01a1e0a5095184fc2359aed38ddae47c03d75c10d566ace8551c3

See more details on using hashes here.

Provenance

The following attestation bundles were made for nouveau-1.0.2.tar.gz:

Publisher: publish.yml on dactylroot/nouveau

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file nouveau-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: nouveau-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 8.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for nouveau-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 5d6185a13c7a9b859c828843c8a2c2d1f3f5eadd9a6fd0e967f94dc12d67556d
MD5 ae491c9bfbb17fd422be54d000e36217
BLAKE2b-256 2a691a0139c2e35742809fdec6c3acde51a5f37975ff1c805b149d312caf0e51

See more details on using hashes here.

Provenance

The following attestation bundles were made for nouveau-1.0.2-py3-none-any.whl:

Publisher: publish.yml on dactylroot/nouveau

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page