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.1.tar.gz (9.5 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.1-py3-none-any.whl (8.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: nouveau-1.0.1.tar.gz
  • Upload date:
  • Size: 9.5 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.1.tar.gz
Algorithm Hash digest
SHA256 28a7f5c4b1bda18ca8759a094464ceee86c326892ae2372144809bba79d830d9
MD5 e44e180cbb8d0d636a9bd4cbd737716e
BLAKE2b-256 a43d9e94276e76e88df6c5ed7c8d1e884b184a6ea79388745703dd531ffeed21

See more details on using hashes here.

Provenance

The following attestation bundles were made for nouveau-1.0.1.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.1-py3-none-any.whl.

File metadata

  • Download URL: nouveau-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 8.5 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2868ac0c010d6c9518a3c93ac79442a651e3913fef36365444acfa83d5c7941e
MD5 eb456d1e9845eb142c54386c46861a1d
BLAKE2b-256 352950ac56cfe1e12dfa0466680374968ed93da8563e4818a6f26f62fa63f9b7

See more details on using hashes here.

Provenance

The following attestation bundles were made for nouveau-1.0.1-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