Skip to main content

A toolkit for making art with machine learning, including an API for popular deep learning models, recipes for combining them, and a suite of educational examples

Project description


ml4a
Machine Learning for Artists

ml4a is a Python library for making art with machine learning. It features:

Example

ml4a bundles the source code of various open source repositories as git submodules and contains wrappers to streamline and simplify them. For example, to generate sample images with StyleGAN2:

from ml4a import image
from ml4a.models import stylegan

network_pkl = stylegan.get_pretrained_model('ffhq')
stylegan.load_model(network_pkl)

samples = stylegan.random_sample(3, labels=None, truncation=1.0)
image.display(samples)

Every model in ml4a.models, including the stylegan module above, imports all of the original repository's code into its namespace, allowing low-level access.

Support ml4a

Become a sponsor

You can support ml4a by donating through GitHub sponsors.

How to contribute

Start by joining the Slack or following us on Twitter. Contribute to the codebase, or help write tutorials.

License

ml4a itself is licensed MIT, but you are also bound to the licenses of any models you use.

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

ml4a-0.1.3.tar.gz (860.5 kB view details)

Uploaded Source

Built Distribution

ml4a-0.1.3-py3-none-any.whl (1.1 MB view details)

Uploaded Python 3

File details

Details for the file ml4a-0.1.3.tar.gz.

File metadata

  • Download URL: ml4a-0.1.3.tar.gz
  • Upload date:
  • Size: 860.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.1 pkginfo/1.7.0 requests/2.21.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.6.9

File hashes

Hashes for ml4a-0.1.3.tar.gz
Algorithm Hash digest
SHA256 6079a353083754fd4d6634211d613cbcd18b2e5a91c9deffd7c8213ce11a73c0
MD5 daad3db451056e529c7e48b2037cb7c0
BLAKE2b-256 801a7452b2ec23b55f8ad283d99c0ba57ecbcc332262bb2ca74837b78e446622

See more details on using hashes here.

File details

Details for the file ml4a-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: ml4a-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 1.1 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.1 pkginfo/1.7.0 requests/2.21.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.6.9

File hashes

Hashes for ml4a-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 9a182d5c82fe75d4e0a148cfe63500fb8c75896b505447a3a25730f322a0c4c6
MD5 11d9db6f00806a926d9c9548c24e505c
BLAKE2b-256 e9b56c673fd7c69508841c297c57d8a71711c44afda8116bc42c4f80881b2289

See more details on using hashes here.

Supported by

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