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
Machine Learning for Artists
ml4a is a Python library for making art with machine learning. It features:
- an API wrapping popular deep learning models with creative applications, including StyleGAN2, SPADE, Neural Style Transfer, DeepDream, and many others.
- a collection of Jupyter notebooks explaining the basics of deep learning for beginners, and providing recipes for using the materials creatively.
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6079a353083754fd4d6634211d613cbcd18b2e5a91c9deffd7c8213ce11a73c0 |
|
MD5 | daad3db451056e529c7e48b2037cb7c0 |
|
BLAKE2b-256 | 801a7452b2ec23b55f8ad283d99c0ba57ecbcc332262bb2ca74837b78e446622 |
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9a182d5c82fe75d4e0a148cfe63500fb8c75896b505447a3a25730f322a0c4c6 |
|
MD5 | 11d9db6f00806a926d9c9548c24e505c |
|
BLAKE2b-256 | e9b56c673fd7c69508841c297c57d8a71711c44afda8116bc42c4f80881b2289 |