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

Uploaded Python 3

File details

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

File metadata

  • Download URL: nouveau-1.0.0.tar.gz
  • Upload date:
  • Size: 9.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for nouveau-1.0.0.tar.gz
Algorithm Hash digest
SHA256 7136fdce50b75cc5da995ffad30cbfcc6e1ab37003cfab1ef6de43f4724cb49a
MD5 f6d58fd6a24938ecae976bf0450140bf
BLAKE2b-256 e4a5f9271cb430f2ca06b6d9a687119e1b94d2b12d8b7b48f791622fba4631a0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: nouveau-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 8.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for nouveau-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9fc306e52bf983fae2adf4b718737f9ab48aaa469e886e00e9abd3e345853c1e
MD5 bcd012b08f92b29da35b35b73f286b0a
BLAKE2b-256 de8bb21e802d8bd41888d64a748f8fca96ce1a974a0d0a849f9c4b49cecfdc3e

See more details on using hashes here.

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